Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [tikz-pgf]

TikZ is a higher-level drawing language built on top of the PGF graphics framework. For questions specifically about the PGF layer use {pgf-core} instead. Both tags are possible on the same question. The tag {diagrams} is also compatible with this tag.

2
votes
1answer
69 views

How to adjust Venn Diagram for A^c and A - B

How can I adjust this venn Diagram so it becomes like what I wrote on the Image below? I need to Color the "M" rectangle on the third Diagram and to remove the intersection between A and B on the ...
2
votes
1answer
65 views

Drawing a simple plane in 3D space

I'm trying to produce this simple 3d picture, but, since it's the first time I draw a 3d pic, I'm not sure about how to get the plane passing through the line X. The following code shows a first ...
0
votes
3answers
109 views

2d Grid with Tikz and Nodes

I'd like to create the following graph: But I can't figure it out. I'm pretty new to Tikz and nodes in general, so a simple solution is appreciated. Here is another grid but I can't figure out how ...
1
vote
1answer
45 views

Title box in tikz pgfplot showing wrong RGB color?

I have the following graph: created by the following code: \documentclass{article} \usepackage{pgfplots} \pgfplotsset{compat=1.16} \begin{document} \begin{figure}[h] \caption{Time series median of ...
3
votes
2answers
120 views

Placing rectangle box above tikz figure?

I was wondering if there is a way to make a rectangle box slightly above a tikzfigure, used for labelling purposes? I have demonstrated what I thought it should look like, as: where the dark grey box ...
8
votes
2answers
467 views

TikZ/PGF draw algorithm

I have TikZ code that draws an ellipse. Here is the code that, AFAIK, draws the actual ellipse: \draw [rotate around={0.:(0.,0.)},line width=0.8pt] (0.,0.) ellipse (5.cm and 4.cm); Can anyone tell ...
4
votes
3answers
96 views

How can I draw a rectangle around venn Diagrams?

I have tried some of the solutions to similar questions, but none of them included minipages, which seems to be the problem (I`m fairly new to LaTeX) So, here's the coding: % Definition of circles \...
2
votes
1answer
51 views

Making a checkerboard with `foreach`

Why are these two diagrams different? \documentclass{amsart} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{tikz} \usetikzlibrary{calc,intersections} \begin{document} \begin{tikzpicture} \...
0
votes
0answers
21 views

Multiple and letter arguments for tikz axis from csv?

Would it be possible to create a preconfigured axis for tikz to understand a file like this as an input (.txt/.csv) Term J Level (eV) "1S" "0" " 0.0000000" "3P*" "0" " 4.6673829" "...
0
votes
0answers
38 views

Instant Compiler for .tex [duplicate]

I am using Overleaf to compile .tex files but sometimes it take too much time. Is there a software that can compile .tex files instantly??
2
votes
3answers
76 views

Drawing Ellipse and Half-Ellipse in LaTeX

how can I draw some ellipses being "cut" by a half-ellipse like in the image (and also being able to write some labels on the ellipses)? And also, what should I do if I want to have a circle/ellipse ...
2
votes
1answer
41 views

Why assignment of path aliases and names through `every path` fails?

every node test-run: \documentclass[border=5mm,varwidth=100mm]{standalone} \usepackage{tikz} \newcounter{myCounter} % following properly creates aliases and names in "every NODE" \tikzset { ...
1
vote
1answer
50 views

How to plot line graphs in tikZ

Hello fellows and folks! Could you give me a hint/hand with this plot? Then I can use it as a template for further plots :) I have the y coordinates, they are like 25 values. But the x coordinates ...
3
votes
1answer
38 views

How to get both transparency and rounded corners in tikz picture without using additional packages?

I am trying to create a tikz image that has rounded corners and transparency at the same time. The problem I face with the MWE given below is I can have either transparency or rounded corners, but not ...
5
votes
2answers
259 views

Is there any other simpler way to draw the following cross section?

Given that a regular pyramid T.ABCD in which P is on TC such that TP:PC = 1:3 R is on the extension of BC such that BR:BC = 1:3 Q is arbitrarily on the plane TAD but neither outside nor on the ...
0
votes
1answer
44 views

Drawing two surfaces which intersect at a point or made a surface [closed]

Is it possible to draw a similar kind of diagram in Latex or in other software? This picture is there in Differential topology by Guillemin and Pollack. I need to give a similar sort of pictures ...
4
votes
2answers
147 views

Intersections in Tikz

The following code produces , however I would like to highlight the intersection area between the line through the coordinates A and B and that perpendicular to the vector x.3, defined in the \...
-2
votes
1answer
48 views

How to define a special hashtable with tikz? [duplicate]

Is there a way to create something that looks like this?
1
vote
1answer
45 views

How to remove thin, black line which forms border in pgfgantt

How do I remove the box around the tasks in the gantt chart shown in the following code. How can I then make the bar and group descriptions nice and snug with the tasks? \NeedsTeXFormat{LaTeX2e} \...
0
votes
0answers
19 views

tikz: label offset insied axis environment

I have trouble with label offset insied axis environment. This is my minimal example: I used no paste service to avoid flood text. In particular, the problem lies in line 258: \node[left=1pt of {(...
1
vote
2answers
30 views

More white space - only to the left and to the right - about a label in a node

I want a bit more white space to the left and right of the labels 7 and the same white space above and below the labels 4. (Is the default shape of nodes squares?) \documentclass{amsart} \...
6
votes
2answers
140 views

Motion-trail-like lines

Is it possible to automate the following with tikz styles? \documentclass[tikz,border=1cm]{standalone} \usetikzlibrary{calc} \begin{document} \begin{tikzpicture}[ plotmark/.style = {% ...
5
votes
3answers
344 views

Drawing an hexagonal cone in TikZ 2D

I am trying to create a hexagonal cone via 2D and not using 3d-plot library. I wish to achieve the following: I have achieved the following so far: I see there is lot of gap when connecting the ...
6
votes
1answer
164 views

Draw death star

How to add the typical grid cells (image modified from https://en.wikipedia.org/wiki/Death_Star) to the following sketch of the death star? This is what I have so far \documentclass{standalone} \...
5
votes
2answers
123 views

How to draw a stack in drawstack/TiKz?

I'm trying to replicate this picture (without the airplane) I googled online and found the package drawstack but I couldn't find any documentation on how to use it. The closest I got to a minimal ...
2
votes
3answers
48 views

Tikz for drawing box flowchart, absolute beginner

how can I draw something like this in Latex? Here is my actual Code \begin{tikzpicture}[node distance=.6cm, start chain=going below,] \node[punktchain, join] (Roh) {Rohdaten}; \node[...
0
votes
0answers
46 views

How can I make the diagram similar to the attached in LaTeX? [duplicate]

I want to make a detailed timeline of life events in a similar fashion of the attached photo, can someone share code?
0
votes
2answers
76 views

Where can I find TikZ Syringe [duplicate]

Anyone know of a place/repository that has done a TikZ syringe? A syringe is complicated, so I don't want to recreate it, but it has to have been done before. Looking for a 10 mL glass syringe type.
5
votes
5answers
220 views

How in the world do I place line of text EVENLY between two horizontal tikz lines?

Vertical spacing is killing me lately. First I had to learn how to get rid of automatically-generated vertical-spacing after center environment because it was off (\partopsep+\topsep), then I had to ...
1
vote
1answer
31 views

How to get vertical-mode math-expression inside tikz node?

I am aware that \boxed automatically invokes display-mode math, so \boxed{2+2=4} is equivalent to frame drawn around $2+2=4$. But how do I get vertical-mode math expression inside tikzpicture node to ...
1
vote
1answer
36 views

Arrows in a commutative diagram are slanted in TikZ

I have the following commutative diagram in TikZ: \begin{tikzpicture} \matrix (b) [matrix of math nodes, row sep=2em, column sep=2em] { D(0) & D(1) ...
2
votes
1answer
75 views

A new and better aesthetic look for figures and captions with vertical braces

Starting for the question Center a rounded square into a green line with the excellent @marmot's answer, using your MWE, \documentclass[12pt]{book} \usepackage{newtxtext} %%\usepackage{classico}%%%%%...
2
votes
1answer
47 views

Draw a circle with a fixed but unknown radius

I want to draw a circle centered at a point O and passing through a second point A. This is easy if we have an explicit formula for the distance |OA|. In many cases, these two points are given as the ...
2
votes
1answer
25 views

Change color of page numbering for single pages or a period of pages

I used tikz and fancyhdr to have my pagenumbering in colored circles. Now I want to change the color of the circle for one page. For example the 2nd page should have a blue color. Would it also be ...
1
vote
1answer
74 views

How to draw the following graph in Latex using curvy line

In the figure at $w_1,w_2,w_k$, I want to replace those dashed lines by curvy lines to denote that there are some components. But I have not been able to do this. I have tried the code: \begin{figure}...
3
votes
1answer
62 views

Drawing lines using \foreach

I'd like to get a picture similar to that uploaded below. Basically, I'm trying to add perpendicular lines to every ray on the positive orthant. This is my attempt, could you tell me what is wrong in ...
2
votes
1answer
27 views

pgfplots: Change names of weekdays to German language?

The user Torbjørn T. has posted a nice approach on how to display the names of the days of the week in dateplots. Minimum Working Example (MWE): \documentclass{standalone} \usepackage{pgfplots} \...
10
votes
3answers
502 views

Correct way of drawing empty, half-filled and fully filled circles?

I am trying to draw simple empty, half-filled and fully filled circles using tikz. Here is what my code: \documentclass[12pt]{article} \usepackage{tikz} \newcommand*\emptycirc{\tikz\draw (0,0) ...
6
votes
5answers
302 views

Nested loops to process groups of pictures

The following MWE processes groups of pictures, placing them on a slide with a caption below the picture. The slides are made using the pdfscreen package, and the picture and caption placement is done ...
2
votes
1answer
54 views

error from pgflibraryfadings when adding tcolorbox with new tex4ht tikz driver. TL 2019

Just installed fresh TL 2019. I was trying the new tikz driver for tex4ht. I found this error. Here is a MWE. This error only shows up in tex4ht and not in lualatex and it shows up only when adding ...
2
votes
2answers
1k views

3D Volume in TIKZ

I need to make the square base volume below any function in a three-dimensional space. It can be any function. I need help getting this job started. The image is bad, but that's the idea.
2
votes
2answers
106 views

How to adjust tikz picture so it fits to current size of a table cell?

I already tried solutions given in 2 similar questions: TikZ Picture in Table and Tikz Inside Table Cell but they do not seem to work for me. Below I give MWE and what I tried. I have a tikz picture ...
2
votes
1answer
65 views

wrong calculation of incircles in tkz-euclide?

In redrawing a geometric figure with TikZ, it seems that some wrong calculation in tkz-euclide with incircles (the red color below). The command \tkzDrawCircle[in,color=red](A2,B2,C2) give ...
0
votes
1answer
90 views

Sketch of Sets in Tikz [on hold]

I'm writing a Script for a math lecture. The professor draws some sketches and there are a few of sets, sometimes including other sets or points. There would be a way I know by seting some points and ...
3
votes
1answer
36 views

pgfplots: How to add names of the days of the week to dateplot?

Assumed we have the following code: Minimum Working Example (MWE): \documentclass{standalone} \usepackage{pgfplots} \usepackage{filecontents} \usepgfplotslibrary{dateplot} \begin{filecontents}{data....
1
vote
1answer
58 views

Graphic of Richardson Number

I was inspired by the graphic Moon Synodic Period, created by Tangent Plane. I insert the code here. I tried to create scale definitions, so I could scale the graph and the text, but I'm not entirely ...
2
votes
1answer
54 views

Different settings for figures in Tikz

I have a beamer with many figures. The problem is that now I want something that requires settings that are in contradiction with what was defined beforehand. I have : - A main file where all the ...
0
votes
0answers
31 views

Tikz x labels as images creates asymmetrical spacing

I sort of stumbled upon the idea of using pictures as x-axis labels for my graph in a thesis. However, I have run into the problem of the last label being further away (not symmetric) to the other ...
4
votes
1answer
102 views

Field lines in a parallel plate capacitor with border effect

I am drawing qualitatively the field lines bending near the edges of a parallel plate capacitor with tikz. The code is: \documentclass[margin=10pt]{standalone} \usepackage{tikz} \usepackage{bm} %\...
1
vote
2answers
90 views

Tips for improving a code

I'm trying to replicate the following figure. This is my attempt, but I want to get something more precise. \documentclass[12pt,a4paper]{article} \usepackage{tikz} \usetikzlibrary{calc} \begin{...