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)

4
votes
2answers
75 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 ...
2
votes
1answer
5 views

Pgfplots: Scope inside axis environment or other relative positioning

I want to place an external figure inside a pgfplots plot. Additionally, I want to put some labels inside the external figure to mark the position. The expected result should look something like ...
0
votes
1answer
24 views

Change direction of tikz pgfplot colormap

i want to change the direction of the colormap of a scatterplot. The "best" points in my plot are in the lower right, the "worst" in the upper left. So it would be nice, if the points in the lower ...
2
votes
1answer
27 views

Use the tikz package to plot two overlapping, semi-transparent circles with labels

I need to produce something similar to this with latex I am not familiar at all with the tikz package. However I was able to find a code that I think could be adapted to fit with my needs: ...
0
votes
0answers
28 views

How to make the arrow more natural?

I have no idea to put the arrow into natural way. The source code is like the below \begin{tikzpicture} \draw [decorate,decoration={coil,segment ...
17
votes
3answers
561 views

Why does xcolor lighten a color when mixed

I'm trying to create a smooth gradient between cyan and blue connecting two shapes, one drawn in cyan and one in blue. For that I use a simple mix of the two colors in a \foreach loop. However, in ...
1
vote
2answers
65 views

TikZ library `external` doesn't recognize node name from different picture

I am attempting to improve my compilation time by externalizing TikZ pictures. I do seem to be able to refer to named nodes, however. For example, consider the following. \documentclass{article} ...
1
vote
1answer
23 views

How to label a object in tikz with an indicator line

I would like to make some sets and label/name them with an indicator line. The border of the set should follow some coordinates. I'm trying to get those red lines to the nearest (or some specific ...
10
votes
1answer
5k views

Draw a graph in Latex with Tikz

I am interested in outputting this graph in latex using tikz: So far I got this: and my tikz code is \begin{tikzpicture} \node[shape=circle,draw=black] (A) at (0,0) {A}; ...
7
votes
1answer
45 views

TikZ — joining a plot and a line segment

Is there a way to join a plot and a line segment in TikZ? Here is a shape I'm trying to draw: I almost happy with the result, but there is a gap between the plotted segment and the rest of the ...
2
votes
1answer
33 views

Plotting ranges of data with tikz or pgfplots

I have a sample with countries and data. I would like to have a "comb" graph to show the years covered in the sample for each country. My data is like this : ...
3
votes
1answer
25 views

How to add default options to a float environment

I want my tikz images to have a different font. How can I change my tikzpicture environment, such that, by default it will call the sansmath environment and select the right font family. Now it ...
2
votes
0answers
23 views

Starting Tikz/pgf in LuaLatex: Package pgf Error: Driver file “pgfsys-luatex.def” not found

I'm starting to migrate from pdflatex to LuaLatex and with that to using Tikz and the memoir classs. In the case of Tikz I'm following the standard user manual (Manual for Version 2.10-CVS by Till ...
3
votes
3answers
49 views

Adding text changes positioning in tikz

I'm using tikz to create a custom title page for my reports. I'd like to draw horizontal lines extending from one edge of the body of the page to the other with the title in between. When I draw only ...
2
votes
0answers
36 views

How to create a tikz picture, with a non-infinite distance viewpoint

Hi I am trying to create a planar tikzfigure, but would like to tilt the plane. Most advice I could find gives a perspective that has the viewpoint in infinite distance. \documentclass[final]{beamer} ...
9
votes
3answers
162 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 ...
4
votes
2answers
119 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
54 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
736 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
42 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
92 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
25 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
70 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
67 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
140 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
274 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
52 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
43 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
50 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} ...
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
57 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
26 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
24 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
70 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
332 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
31 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
202 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
78 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 ...