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.

learn more… | top users | synonyms (3)

8
votes
3answers
144 views

tikzlibrary chains misbehaving

The example below is straight out of the TikZ manual (section 46.3 page 537) and produces 'Unknown chain "chain" error'. I have noticed in a previous example that my PGF\TikZ does not like {[start ...
3
votes
2answers
24 views

Calculate TikZ coordinate with Koma's BCOR

I use the KOMA scrreprt document class and I specify a BCOR. Now I want to draw with a TikZ overlay, which respects the BCOR. My command to get the BCOR setting is the following. Maybe that can be ...
2
votes
2answers
42 views

How to use colors from a pgfplots colormap in pie chart?

I like the pie chart from http://www.texample.net/tikz/examples/pie-chart/, but it's in grey color. Then I found the modified version to add colors by "Sigur" here:How to give different color to each ...
7
votes
1answer
733 views

TikZ: Arrowhead color defined by an option for another command [on hold]

I was studying the PGF manual when I faced the following behaviour. Referring to the code below, I specified a latex arrowhead after the \filldraw element and the arrowhead is drawn of the same ...
1
vote
0answers
34 views

Drawing automata paths step by step with TikZ and \onslide command

I have an oral presentation on friday, where I will have to explain the determinization process for transducers. To save time, and make the whole thing clearer, I'd like to do a step by step ...
3
votes
1answer
89 views

How to add arrows before box

I would like to add lines outside 2 short lines as input to the T^-1 box, see the attached figure. The code is listed below: \documentclass[tikz,border=2mm]{standalone} \usepackage{circuitikz} ...
1
vote
0answers
24 views

How to coordinate axis span from the data?

It is necessary to get out of it. This: \begin{tikzpicture} \begin{axis}[xticklabel style={anchor=east,rotate=90}, date coordinates in=x, xticklabel={\day.\month.\year}, ...
2
votes
1answer
63 views

Curved edges in flow diagram

I used TikZ package to create the flow chart as in the figure on the left (the code I used is below). I would like to add to the curved edges flow diagram and loops so that it was as in the right ...
2
votes
3answers
66 views

Having a line with general intervals

I have a script provided to me to generate a line with 10 intervals. I now want the same figure but for a general case. It applies tikzpicture, something that I'm not familiar with. \begin{figure} ...
4
votes
2answers
65 views

Position of node misplaced in pgfplots

I have the plot of a parabola. Its vertex (2,16) is grossly misplaced. \documentclass{amsart} \usepackage{amsmath} \usepackage{tikz} \usepackage{pgfplots} \pgfplotsset{compat=1.11} ...
5
votes
2answers
137 views

TikZ — rolling logarithmic spiral

I've got almost no time for this image, so the code is just a mess and probably the best example for never-ever-do-it-this-way-code in TikZ, but it works: \documentclass[12pt, ...
7
votes
2answers
269 views

How to create a table automatically for a homework in statistics?

I want to create a long table containing some statistical data, such as the sample, the average, and the variance, etc. I am using the pgf package and its various extensions to do this. Here is a ...
5
votes
1answer
48 views

Bullet points in Mindmap annotation

I want to have bullet points in front of the two items in the blue annotation. I tried it with easy list, but it didn't work. Is there a way to use bullet points in annotations? ...
1
vote
1answer
42 views

lighter mesh grid line (faceted) color

For certain colormaps, the mesh grid line color is too dark. I would like to make it less dark. However not a fixed color as set with faceted color=blue,. My approach was to adjust the opacity as in ...
1
vote
1answer
48 views

balance with circles and lines in tikzpicture

I am trying to recreate the following However I face a problem with the placement and the size of circles. My code: \tikzset{ my circle/.pic={ \node [draw, very thick, circle, minimum ...
10
votes
0answers
120 views

Cannot use pgf-blur twice with XeLaTex

The following code \documentclass{article} %\def\pgfsysdriver{pgfsys-dvipdfmx.def} %this line does not matter \usepackage{tikz}\usetikzlibrary{shadows.blur} \begin{document} \begin{tikzpicture} ...
4
votes
1answer
65 views

How to draw two grids with inner grids with Tikz or any other package

I am trying to draw two grids side by side, each of size 8 by 8. Also these grids have one smaller grid 6 by 6 inside them. I want to do as nicely as possible, with clear border colors. I need major ...
24
votes
4answers
6k views

List of TikZ Editor

After mentioning TikZ in academia, I tried to have a look here for recommended editors for TikZ. I found no list, and thus here's the question: What TikZ editors/front-ends do you know? What can you ...
1
vote
1answer
26 views

Horizontal lines in dataplot

I want to add only horizontal help lines in my plot and not a grid. So I decided to add lines with \draw[very thin] but somehow these lines are different from each other. I want them to be all the ...
0
votes
0answers
24 views

Editor for creating Tikz [duplicate]

I'm writing a technical report and I would like to include some graphics. Of course I could do them in TikZ but I don't know it and thus it is very time consuming. Another option would be to do it ...
2
votes
2answers
55 views

How to use \tikz\pic in \caption and “normal” Latex-text-environment

As an advancement to How to use a \pic in a node's text area {}?. What to do or avoid to let work the pic "lightning" in a caption and normal latex text? \documentclass[]{scrartcl} ...
2
votes
0answers
25 views

Mark local maximum and calculate gradient in PGFplots

I'm using data from a tensometer to generate a stress-strain curve, but I want to find the yield point and the gradient between the start of testing and that point to calculate Young's modulus. Can ...
4
votes
1answer
23 views

Box Plots in tikzpicture - Two Plots per y tick

I need a Box plot with two boxes on each ytick. Any ideas? \begin{tikzpicture} \begin{axis} [ title=Scenario 1, height=6.0cm, width=8.0cm, xmin=6, xmax=20, ...
5
votes
4answers
67 views

Small corrections needed for game tree

I've drawn what I would like the result to be: The current game tree looks like this: With the current code: \documentclass[12pt,twoside]{book}%{book} \usepackage[a4paper, hmargin={2.5cm, ...
26
votes
3answers
1k views

Polaroid photo effect in tikz

Is there any way to make a polaroid photo effect in TikZ? I am thinking of something like this A computer font as the caption might be better in fact but I couldn't find a suitable example online. ...
0
votes
1answer
80 views

Putting labels on a complete graph

Hi guys I have this picture and I want to make it better by putting names on the edge. For example I wanted to make the edge connecting 1 and 4 to say $\theta_1 \theta_4$ and so on for all the ...
2
votes
0answers
40 views

Pgfplot fill between error [duplicate]

for some reasons, this code doesn't work in my document: \documentclass{article} \usepackage{fancyhdr} % Required for custom headers \usepackage{lastpage} % Required to determine the last page for ...
0
votes
3answers
165 views
6
votes
1answer
319 views

After MiKTeX update when using LuaLaTeX: Package pgf Error: Driver file ``pgfsys-luatex.def'' not found

I just updated my MiKTeX instance to the latest packages and am using the LuaLaTeX compiler. Whenever a document relies on pgf I get the following error: ! Package pgf Error: Driver file ...
1
vote
1answer
30 views

TikZ arrow displaces intersection point

I am trying to join a curved path to another (two bent edges) using an intersection point as joint, but when adding an arrow with style "-latex" to the second path, the curve is sightly displaced and ...
5
votes
1answer
109 views

Changing color in foreach using arrayjob

I am trying to change the color within a foreach statement. Here a way is described how to do it depending on the foreach variable. However, I want to use HTML color code, so I decided to use ...
6
votes
2answers
200 views

Why is there a green border around the annotation?

I wanted to have a blue annotation to explain one of the points, but it has a green outline, like the color of my mind map. How can I fix that \documentclass[12pt]{article} ...
2
votes
1answer
60 views

Tikz and text specific / dependent relationships

I have seen some people do some mind boggling things on this site using powerful packages (and standalone code) based on pgf and tikz. This question (How to get intersection point(s) of two glyphs?) ...
33
votes
6answers
5k views

What's the easiest way to draw the arc defined by three points in TikZ?

An ordered set of three points uniquely defines a circular arc, and I'd like to be able to draw that arc in TikZ. I know about the arc drawing command, which does the job given a radius, two angles, ...
0
votes
1answer
77 views

Image overlay generator - How to annotate sub-images in the center of each overlay box? (caption-diagram next to original image)

The LaTeX Overlay Generator is a great tool to annotate sub-images of an image in a LaTeX-caption way. It names itself "Visual Overlay Generator v0.0.1", as it creates a visual overlay: a diagram ...
0
votes
0answers
34 views

How to overlay (annotate) sub-images (rectangles; but not straight, maybe chopped off) an image

The LaTeX Overlay Generator is a great tool to annotate images which contain sub-images like this (where the sub-images are all rectangles and all "horizontal with the screen"): However, some ...
6
votes
4answers
914 views

Bessel function with pgfplots

I want to plot a vibrating membrane and therefor I need the bessel functions. As I'm using pgfplots, I wondered if there is anything pgf-related that can be used to create a corresponding output. I'm ...
2
votes
2answers
30 views

'minimum width' no effect on node with horizontal multipart

I have a multi-parts node N1, below it a node N2,I wish N1 to have same width as N2. I have set minimum width=3cm for every node but this did not have any impact on N1 node !? ...
1
vote
0answers
14 views

pgfplot connects first and last point of line in the surf plot [duplicate]

I'm plotting a surface from data file arranged in columns x,y and value. The result looks like this: As you can see, first and last point of every line is connected. Relevant code: ...
3
votes
1answer
43 views

How to use a \pic in a node's text area {}?

How can I achieve that the \pic "lightning" will appear in the node's text area? I cannot use it there, so I have commented it out. I know or think it's a completely different "environment" (a text ...
12
votes
2answers
589 views

Use Tikz to draw this beautiful symmetric tree

To illustrate a problem I need to make this figure. I can to do: \documentclass[12pt,fleqn]{article} \usepackage[portuguese,brazil]{babel} \usepackage[latin1]{inputenc} ...
5
votes
3answers
2k views

How to draw the cards of a deck?

How to draw the cards from a deck using a Latex package, as TikZ?
0
votes
0answers
50 views

Plotting connected oriented graphs in tikz?

Oriented graph is a digraph without symmetric pair of directed edges. The below contains the first graphs but I am interested in the next graphs: the number of connected oriented graphs increases ...
1
vote
2answers
72 views

How to draw a square and its diagonals with arrows?

I dno't know how to draw arrows as the above figure, and the code I wrote for the four points don't even show up on a result. Why my points don't appear? And what should be added for the arrows? ...
2
votes
1answer
50 views

How to color an semiplane delimited by one axis?

In my code below I made an complex plane with the real axis and imaginary axis CODE: \documentclass{article} \usepackage[brazilian]{babel} \usepackage{tikz} \begin{document} ...
3
votes
3answers
40 views

how do I put a line break among multiple tikzpictures?

If I do this: \documentclass{standalone} \usepackage{tikz} \begin{document} \begin{tikzpicture}[scale=3,>=latex, font=\sffamily] \draw [->](0,0) -- (0,1) node[at end, above left, rotate=90] ...
2
votes
2answers
2k views

Convert TikZ to EPS using pdfLaTeX

I would like to convert my TikZ images to EPS format and save in a separate file while pdfLaTeX compiles my document, ideally. Note I am using MikTeX and TeXstudio. Otherwise, I would like to be able ...
3
votes
2answers
60 views

Row sep in Tikz for a single row of a legend

I'm using the legend-only solution from Using a pgfplots-style legend in a plain-old tikzpicture How can I get a style for a single row? I'm trying to have row sep = 5pt for example for all rows, but ...
3
votes
2answers
124 views

TikZ: Perpendicular bisector of a line

Given two coordinates A and B, I'd like to draw the perpendicular bisector (of any length) of the line joining A and B. I am not given any extra information, and A and B can be any two coordinates ...
2
votes
1answer
46 views

Spy glasses in a group plot

I have a group plot in which the graphs have common x axis and are stacked one over the other- like the one givenhere. Now, I want to have a spy glass on each of these plots in the group. But when I ...