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)

0
votes
0answers
49 views

Create a footnote in a node in a tikzpicture [duplicate]

Is it possible to create a footnote in a node of a tikzpicture? Preferably the tikzpicture it should also be possible to put that tikzpicture inside a figure environment.
5
votes
2answers
1k views

4 set venn diagram in TikZ

Is it possible to make a 4-set venn diagram using the tikz packages, like the following one? I know it must be, but the only information I can find on the subject uses R as the language. So, an ...
8
votes
1answer
634 views

How to omit non-integer x-axis ticks in pgfplots?

The following figure has annoying x ticks at 0.5, 1.5 and 2.5. Non-integer values have no interpretation for my purpose. Question: How can I get pgfplots to exclude non-integer x-axis ticks? ...
3
votes
2answers
6k views

tikz - specifying more controls on curved lines

Im drawing a temperature profile for a given body of water: \begin{tikzpicture}[scale=0.3] \draw [>=stealth, ->,thick](0,0) -- (0,-22) node[left = 7mm, midway] {Depth [m]}; \draw ...
7
votes
2answers
313 views

TikZ setting the edge of a path to horizontal rather than in=0 out=180 or vice versa

\path[->] (A) edge [out=180, in=0] (B); This path is written quite often in my document. Sometimes I find myself changing it to: \path[->] (B) edge [out=0, in=180] (A); I do not want to ...
9
votes
3answers
473 views

path with both mark connection node and arrow tip

I would like to use a mark connection node decoration on a line that also has an arrow tip. Unfortunately, using the decoration causes the arrow tip to point in the wrong direction (always straight ...
5
votes
1answer
625 views

How to: Bagnouls–Gaussen bioclimatic diagram?

Is there any example how to code a Bagnouls–Gaussen bioclimatic diagram (ombrothermic diagram)? There is one diagram here: http://www.sciencedirect.com/science/article/pii/S0379711210000949 The scale ...
4
votes
1answer
130 views

Is it possible to trim a line when crossing another?

I'm trying to draw a cycle, where the lines A-B and C-D overlap the 1-2 and 3-4 lines. Is it possible to trim or clip the numbered lines above and below when they cross the other ones? Is there ...
1
vote
1answer
141 views

Does anyone know if the listed prerequisites for TikZ's pgfplots package are slightly off?

Does anyone (not to specifically ask Christian) know if the prerequisite PGF/TikZ version listed in the PGFPlots manual is off by a bit? I've been trying to use \tikzset{external/mode=list and make} ...
8
votes
1answer
3k views

TikZ: Controlling text within nodes and placing nodes in text

Need some help working with TikZ. Let me begin by saying that I think TikZ is amazing. I hardly know what I'm doing at this point and yet I've been able to draw some very nice diagrams with it. ...
1
vote
0answers
54 views

How to draw a cycle diagram in tikz? [duplicate]

I want to draw a similar diagram. Every block would be connected to the one following clockwise using a -> arrow. They would all have different labels in them.
7
votes
3answers
2k views

protocol message diagram

I would like to draw a signalling protocol message exchange, like the picture below. I tried to draw the diagram with the package pgf-umlsd and 90% are able to realize the scheme. this is the code: ...
4
votes
1answer
6k views

How to draw bar chart using tikz?

I have drawn the above figure using powerpoint, how can I plot something similar using tikz? I want the 3 different sections in every bar which should ve 3 different colors ---------edit after 1st ...
3
votes
1answer
509 views

Problem about pattern and gradient

I draw a graph using the code below . \documentclass[tikz]{standalone} \usetikzlibrary{ shapes.geometric, positioning, fit, calc, patterns } \usepackage{tikz} ...
5
votes
1answer
1k views

tikz picture inside of an enumerate environment

Is there a way I can make sure that the number of the enumerate environment stays in the top left of the tikzpicture? I'm using a custom environment that just wraps around the enumerate environment... ...
1
vote
0answers
436 views

How do I debug the message “Argument of \XC@definec@lor has an extra }” [closed]

Can anyone provide me with some intuition about what might cause an error like this? Argument of \XC@definec@lor has an extra } I am unable to produce an MWE that demonstrates the error, as it ...
4
votes
1answer
304 views

Use of rnd in pgfplots

The following code fails to compile due to the use of rnd: \documentclass{article} \usepackage{tikz,pgfplots} \pgfplotsset{width=7cm,compat=1.3} \begin{document} \begin{tikzpicture} \begin{axis} ...
4
votes
1answer
250 views

Help in making some symbol in tikz?

I want make a symbol like this: Is it possible to make in tikz?
8
votes
1answer
1k views

Drawing ellipse that passes through specified coordinates

I'm trying to draw an ellipse that must pass through (0, -1), (0, 1), (-1, 0), (1, 0), (1, -1) and (-1, 1). My MWE is below. I know that, I'm missing some math here. ...
7
votes
3answers
727 views

Drawing quadrilateral in TikZ

Using TikZ package, is there an easy way to generate the following diagram given in the link below? http://mathworld.wolfram.com/vanAubelsTheorem.html I tried using \draw command to draw individual ...
3
votes
1answer
876 views

beamer: making a slide transparent and superimposing the next slide

Here is a slide. The slide before was the one that we still see in the background. It then became blue and transparent, and the problem line showed up. Is that possible to use tikZ to arrive at a ...
4
votes
1answer
622 views

Continuing a TikZ animation with \onslide after a \foreach loop

I want to produce an animation in a tikzpicture environment in Beamer. The animation consists in a series of slides produced by combining \foreach and \onslide, which works fine. I then want to ...
6
votes
1answer
2k views

Undefined control sequence: \pgfplots@data@xmin

I am trying to use Jake's excellent Tufte y bar chart style but I am getting an ! Undefined control sequence. <argument> {rel axis cs:0,0}-|{axis cs:\pgfplots ...
5
votes
1answer
3k views

Tikz: How to split Nodes and position Text in it

I have a really big problem: I need a TikZ node that looks like that: but i have no idea how to split the node like that. Esecially the "more text" is a big problem. All i tried ended in errors. ...
9
votes
1answer
368 views

phase of tikz's snake decoration

Is it possible to change the phase of the snake decoration? I want it to start, e.g. at the maximum of a wiggle. I find the option phase only for dashes.
5
votes
2answers
225 views

Alignment of axis in tikz

Hello I have a Problem with the alignment of the y-axis in TikZ! The y-axis of the last plot isn't aligned to the other two plots! trim axis left doesn't work! Can somebody help me? Thanks! ...
3
votes
1answer
293 views

tikz does not plot correctly

@Jake: this is the whole document \documentclass[11pt, a4paper]{book} \usepackage{amssymb} \usepackage{amsmath} \usepackage{amsthm} \usepackage{tikz} \usepackage{pgfplots} ...
3
votes
1answer
86 views

how to locate the text besides the center of the line

I used the code below to add the text besides the line, however, it is very near to the bottom node, I wish to add the text besides the center of the line. May someone help me on this? The code is : ...
0
votes
1answer
148 views

the problem about putting one picture on the left and another on the right

I wish to put two graph together, one is on the left side, the other is one the right side. I use "minipage". However, using the below code, the first graph is on the top of the second graph. May ...
3
votes
1answer
409 views

How to paramerize a tikz chain picture with list of nodes

I want to draw several tikz picture like these ones, but with different numbers of nodes in each row and arrows between the top and bottom row between different nodes. e.g and etc. I want to ...
2
votes
2answers
215 views

bug in pgfplots or other packages [duplicate]

This code lets pdflatex go into an infinite loop \documentclass{scrbook} % required for bug \usepackage{onlyamsmath} % required for tikzpicture \usepackage{pgfplots} \usetikzlibrary{calc} % ...
4
votes
2answers
1k views

Can I use trig functions within polar coordinates

I am trying to use simple mathematical functions such as sin, cos, and sqrt within the declaration of a TikZ coordinate. I am finding that this works for cartesian coordinates, but breaks for polar ...
4
votes
0answers
434 views

Hyperbola? conics? [closed]

I use Geogebra to draw by five knowing points on a plane an hyperbol. Then I used the intern command to translate into tikz code my figure. I create a file source code latex/tikz, but after ...
12
votes
2answers
414 views

How to color the 'inner areas of this logo?'

Is it possible to color the 'inner' areas of this logo? \documentclass{scrartcl} \usepackage[german]{babel} \usepackage[latin1]{inputenc} \usepackage[T1]{fontenc} \usepackage{textcomp} ...
3
votes
2answers
5k views

Animate movement/transition of sections on a slide in Beamer?

I'm not sure if this is even possible with the current PDF format specification, but I'd like to animate transitions between slide or between slide overlays by having part of the slide move or "fly" ...
3
votes
2answers
2k views

Network/Message Sequence Diagram

I am looking to produce something similar (but more complex) to this diagram: This depicts network packets between two sides of communication. I don't know if there is any specific name for it ...
4
votes
1answer
277 views

Center alignment of tikzpicture outside figure environment without vertical space [duplicate]

How to align tikzpicture outside figure environment without introducing vertical space? I'm aware of related questions, such as What is the correct way to center a \tikzpicture? and Should I use ...
6
votes
1answer
918 views

Why don't my TikZ lines join?

I'm new to TikZ and have produced the following figure This is what I want except the fact the arrowed lines do not all join in the centre of the diamonds for some reason, why is this? and how can I ...
0
votes
0answers
48 views

why does rotation style work on actual coordinates and not variables in tikz 3d plot? [duplicate]

\documentclass{minimal} \usepackage{tikz,tikz-3dplot} \begin{document} \tdplotsetmaincoords{70}{115} \begin{tikzpicture}[scale=4,tdplot_main_coords] \pgfmathsetmacro{\rvec}{.8} ...
3
votes
1answer
1k views

Missing bars in bar chart

I am trying to draw a bar chart in which each independent variable has multiple bars showing its performance in different areas. The problem I am having here is that the bars for the third variable is ...
4
votes
1answer
236 views

why cant I use style with every draw command in tikz, why can I only set it for the whole picture?

\documentclass{minimal} \usepackage{tikz,tikz-3dplot} \begin{document} \tdplotsetmaincoords{70}{115} \begin{tikzpicture}[scale=4,tdplot_main_coords] \coordinate (O) at (1,1,1); ...
9
votes
2answers
837 views

Automatically line breaking text, or extending arrows in tikz

Is it possible to automatically make the text line break so that it does not overflow into the nodes? An alternative is to have the nodes automatically moved farther away to accommodate the longer ...
4
votes
1answer
206 views

change the rotation in tikz 3d?

\documentclass{minimal} \usepackage{tikz,tikz-3dplot} \begin{document} \tdplotsetmaincoords{70}{115} \begin{tikzpicture}[scale=4,tdplot_main_coords] \coordinate (O) at (1,1,1); ...
5
votes
1answer
317 views

how to translate coordinate in tikz 3dplot?

\tdplotsetmaincoords{30}{30} \begin{tikzpicture}[scale=5,tdplot_main_coords] \def\x{1}; \def\y{1}; \def\z{1}; \coordinate (O) at (\x,\y,\z); ...
3
votes
0answers
290 views

How do I change properties of a cube in TikZ? [closed]

I am looking at an example from How to draw a cube with TikZ where all faces have a distinct color? \documentclass{minimal} \usepackage{tikz,tikz-3dplot} \begin{document} ...
14
votes
1answer
2k views

How to plot circular polarized electromagnetic wave

I am searching for a solution to get nice looking circular polarized waves in my latex document. My goal is to get a graph that looks like this: I do not want the graph to be animated but I can not ...
1
vote
0answers
102 views

how to put graph in the paragraph with text? [duplicate]

I wish to put some special symbols as highlighted in the following picture in to the text garagraph, I just know how to put graph independent from the paragraph. Would someone help me?
6
votes
2answers
796 views

TikZ circuits: symbol for gas discharge tube?

In the TikZ circuit library, is there a symbol for a gas discharge tube? In the manual I could not find anything regarding this (and the whole symbol list in there seems rather short, anyways).
2
votes
1answer
924 views

TikZ circuits: Resistor is rotated by 90 degrees

I have a problem with TikZ circuit library. The following code produces a circuit, but the resistor is rotated by 90 degrees: \documentclass{article} \usepackage{tikz} ...
1
vote
1answer
78 views

How to use sections from other tex files?

I have 8 files which I am serially listing in my main.tex file. All 8 files contain one chapter. Now I have created a diagrams.tex file which has 10-12 diagrams using tikz. I am not including this ...