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)

10
votes
2answers
679 views

Arrow parallel to a line with TikZ

I want to add an arrow at $f_2$ pointing towards $Q$ in the following figure. It should be parallel to the line, I hope this minimal example is enough. \documentclass{scrartcl} ...
4
votes
1answer
363 views

Insert Picture on Titlepage

I have made a titlepage with a wide (104pt) vertical line and i want to place a logo on top of that line. I tried to do it with icluding a picture with tikzpicture, but it places the image at the ...
2
votes
1answer
171 views

Lines missing in the graph

The code \pgfplotsset{mystyle/.style={mark=none}} \begin{figure}[t!] \resizebox{.4\textwidth}{!}{\begin{tikzpicture} \begin{axis}[title=QWS Dataset, legend pos=outer north east, ...
4
votes
1answer
654 views

Naming 3D axes in pgfplots

I want to label the axes in a 3D plot with pgfplots. Using the anchors .right of origin and .above origin, I can label the axes as "x" and "y" in 2D with ease. In 3D, the labels must be tweaked to ...
8
votes
1answer
1k views

A problem with beamer, tikz and fonts

I am having a weird problem with beamer and tikz. The following MWE doesn't compile. Removing the \alert from the author line, or the \usepackage{tikz} or the math content in the frame is enough to ...
1
vote
1answer
270 views

Syntax Highlight in Winedt

I am using Winedt 7.1 and learning TikZ and I am thinking about to add the commands to the keyword.ini, in the help they mentioned, adding to many keywords may affect the performance. Is there a ...
6
votes
1answer
434 views

A double line arrow on one side and single line arrow on other side with PGF/TikZ

I want to be able to do something similar as above in PGF/TikZ. Is it possible? If yes, I would like to know how. I found the following code in the PGF manual for printing arrow tips over double ...
8
votes
2answers
1k views

How put tick and cross mark around a node in tikz?

I want to draw something like this: This is my tikz code: \documentclass{article} \usepackage{tikz} \usetikzlibrary{arrows} \usetikzlibrary{trees} \tikzstyle{bag} = [text width=8em, text ...
5
votes
1answer
482 views

How to draw a graph along with probabilty tables using TikZ package

I need help to draw a Directed Acyclic Graph of Bayesian Network along with probability of each node using TikZ package. Here is an example: Table grid can be a full or partial as in above example. ...
3
votes
1answer
470 views

TikZ: remove/override auto option (arrow label positioning) from a defined style

I have a defined style which I am applying to many arrows. Most of the time, I want them to have label nodes positioned using auto, but occasionally I do not. Currently, I simply add auto wherever ...
5
votes
2answers
309 views

Shading a region below two edges in tikz?

Question: In the following figure, how can I shade the region marked "here"? I'm guessing there is an elegant solution via the intersections library, but I'm not sufficiently familiar with it. ...
2
votes
1answer
1k views

TikZ logic alignment

I'm trying to create various logic circuit diagrams using the circuit library of TikZ (it allows multi-input gates). I'm using a matrix, but this causes issues with the input wires not lining up with ...
4
votes
2answers
286 views

Table of 2x2 tikzpictures

I'm attempting to condense 4 tikzpictures into a smaller space in my document. The solution I have is as follows: \documentclass{article} \usepackage[paperwidth=6in, paperheight=4in]{geometry} ...
3
votes
1answer
189 views

Placing a tikzpicture next to an align

I have a tikzpicture with an accompanying explanation in a math align environment. The tikzpicture is small enough that I'd like the explanation to appear next to (specifically, to the right) the ...
19
votes
1answer
555 views

Drawing Tapered Edges in Graph

I'd like to achieve the following effect in a TikZ picture when drawing a straight edge from one node to another. How can I achieve this tapering effect? Notice what happens when an edge exists from ...
5
votes
1answer
259 views

A question on feasible region

I faced a difficulty to name the corner point of the feasible region determined by the below LaTeX/TikZ code, who can help me. \begin{figure}[htpb] \centering \begin{tikzpicture} \draw[gray!50, ...
3
votes
1answer
379 views

TikZ node positioning in Beamer ignores x coordinate

I have the following frame in beamer: \begin{frame}{Language} \begin{block}{} \begin{align*} \onslide<1->{ &\text{Types} & T &::= B | T \to T \\ } ...
0
votes
0answers
48 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
915 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 ...
7
votes
1answer
390 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? ...
2
votes
2answers
2k 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
236 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
333 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
457 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
125 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
133 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
1k 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
49 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
1k 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
4k 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
403 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
786 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
233 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
186 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
194 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
621 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. ...
6
votes
3answers
511 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
584 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
354 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 ...
4
votes
1answer
1k 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
1k 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. ...
7
votes
1answer
269 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
208 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
246 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
77 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
124 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
332 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
166 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} % ...
3
votes
2answers
593 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
286 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 ...