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)

3
votes
3answers
850 views

Curvy arrows between two tables (with tikz?)

I try to connect two arbitrary tables with arrows. The code example below should demonstrate how: say we want to connect the "1" in A with the "5" in B, the "2" in A with the "7" in B and so on. My ...
8
votes
2answers
5k views

Underbrace in Tikz

I'm trying to add an underbrace to a graph in tikz but when i compile run PDFLaTeX and View PDF, the underbrace doesn't look correct. Instead of curling down and inwards at the ends, it goes outwards ...
4
votes
1answer
1k views

Telecommunications Symbols

I am trying to draw some telecommunications objects to put in a more complex figure using PGF/TikZ. I know there must be a better way to do it and even write their names UE, BS, etc. . Any help is ...
2
votes
1answer
757 views

Trouble including a Matlab surf plot (pdf or png) with pgfplots

I have successfully used \addplot graphics before. Now I have a surf plot in Matlab, which I exported as png and pdf and I would like to include the image with \addplot3 graphics. I found some ...
8
votes
1answer
145 views

A small problem with originating vectors from one point

I have a simple picture - three vectors, originating from the (0, 0) point. \documentclass[a4paper,12pt,oneside,titlepage,makeidx]{article} \usepackage[pdftex]{graphicx} \usepackage{tikz} ...
4
votes
1answer
247 views

pgfplots jump mid mark with two ends

I'd like to make this plot in tikz-pgfplots. But I'm not sure how to get the jump mid marks with two ends. Any thoughts? Also are the coordinates correctly assigned in the proper format here as I'm ...
11
votes
3answers
1k views

Replicate this chart using LaTeX

I need to replicate this chart using LaTeX, I understand that TikZ should come in handy: Can anyone please show me the best and easiest way to render the chart? Any ideas, tips, nudges in the right ...
6
votes
1answer
1k views

Drawing an arrow around an automata

Using Tikzpicture, I have the following automata: \documentclass{article} \usepackage{tikz} \begin{document} \usetikzlibrary{positioning,arrows,automata} \begin{center} ...
9
votes
5answers
1k views

How to draw tangent to two touching circles and marking the points

This question may seem repetitive to many, but as I am very new to Latex, even after reading many posts, could not get to draw what I wanted, so asking. I want to draw as the following. I have ...
20
votes
3answers
2k views

Folded Paper Shape TikZ

I am trying to find a shape like a paper title folded at top and with some lines, emulating a ruled paper to use in other tikz picture. I have already seen some, and I do think they are done with tikz ...
4
votes
1answer
414 views

LaTeX tikz-timing - adjust fontsize independently for each row label

I would like to be able to make the label below (which I have made red) have text size equivalent to \tiny but I can not figure out how to do it? I have not been able to find anyone else trying to ...
10
votes
3answers
539 views

connect nodes that it looks like circle

I have 3 nodes placed on a circle. These nodes are differently shaped. I want to connect them and want the arrows to look like a circle, because it is a repeating process. I can connect them with ...
7
votes
1answer
892 views

Draw a breaking ocean wave with Tikz?

I've just discovered this wonderful forum. After having tried for a while (and unsuccessfully) to draw a breaking ocean wave when approaching sore, I am asking anybody who might want to contribute ...
4
votes
1answer
354 views

Relative positioning of Lewis electrons in chemfig

I am defining a submolecule in chemfig (2,2'-bipyridine) and I want to show the lone pair of electrons on both the Nitrogens. (For those who care, I wish to show a coordination bond between the lone ...
13
votes
2answers
8k views

Drawing a triangle with rounded corners in TikZ

I'm trying to draw a simple equilateral triangle with rounded corners in Tikz. However, I can't get the rounded corners correct. I have the following MWE which draws the triangle: ...
15
votes
1answer
8k views

Size of TikZ ellipse node

When I set the minimum size of an ellipse in a tikzpicture environment, it expands into a circle if the inner content does not grow as large as the ellipse shape itself. Is there any way around it? ...
3
votes
1answer
578 views

Multiple transitions between states with TiKZ

I'm trying to create two transitions between states while using the TiKZ library for automata drawing. Currently, I have this example code : \documentclass{article} \usepackage{tikz} ...
5
votes
1answer
646 views

TikZ array of coordinates

How can I define an array of coordinates in TikZ? Consider the following: \documentclass{article} \usepackage{tikz} \usetikzlibrary{calc} \begin{document} \begin{tikzpicture} ...
5
votes
2answers
12k views

Node position TikZ

I'd like make something like the pic below, but in horizontal format. How do I get the text boxes equidistant between susceptible and exposed? Relative positioning of nodes in TikZ uses coordinates. ...
1
vote
0answers
204 views

Path won't show up in tikz [closed]

I'm wondering why the path from (pittet)|-(model) won't show up at all... Any thoughts? Appropriate lines are commented %this one to %this one \documentclass{article} \usepackage[latin1]{inputenc} ...
8
votes
5answers
1k views

How to draw a line parallel to diameter intersecting the circumference of a circle

I have drawn a circle and its horizontal and vertical line. \begin{tikzpicture} \draw (0,0) node [above left] {O} circle (3); % circle of radius 3 \draw (0,3) node [above] {A} -- (0,-3) node ...
44
votes
4answers
2k views

How to create a Caesar's encryption disk using LaTeX

How can I create a Caesar's encryption disk with LaTeX? I guess, the ultimate solution would take a arbitrary list of letters and calculate the spaces and angles for each letter automatically. So ...
4
votes
2answers
502 views

how to add a label to a path?

For example (used by another thread): \documentclass{minimal} \usepackage{tikz} \usetikzlibrary{trees} \begin{document} \begin{tikzpicture}[level distance=1.5cm, grow=down, every ...
6
votes
1answer
632 views

yticklabel in Thousands of pounds/dollars/euros pgfplots

I'd like to display the yticklabel as Thousands \euro or \pounds, but doesn't quite looks right, what do you think? \documentclass{article} \usepackage{tikz} \usepackage{pgfplots} ...
18
votes
1answer
690 views

What is the easiest way to automatically keep the fluid surface horizontal and the liquid's volume conserved when the container is rotated?

I have a symmetric container (a hollow object of revolution) that is partially filled with liquid. When we rotate the container about any axis perpendicular to our display, the surface of liquid must ...
3
votes
1answer
1k views

Horizontal bargraph pgfplot

I'd like to make two graphs using TiKz pgfplots or otherwise using this table below. But get the error ! Package pgfplots Error: Sorry, the input coordinate `Bloodstream Infection (B SI' has not ...
13
votes
2answers
3k views

`let` operation in tikz

Ηow can I separate options within brackets [...] so that is affected only the current command; For example, I want dashed lines only here (0,0) |- (A) [dashed] . Could someone give a detailed ...
7
votes
1answer
265 views

extracting coordinates from “position” pair in tikz

I think I have a simple problem but somehow I'm unable to find any solution: I have the following code: \begin{tikzpicture}[scale=1 , auto,swap] \foreach \pos/\name in { {(9,7)}/a, {(6,6)}/b, ...
3
votes
1answer
130 views

pgfplots label with 2 parts causes parse error

I would like to draw a scatterplot like create scatter plot from dat file of a table containing data (actually in an external file) structured label, x=x, and y=y, but keep getting errors with the ...
2
votes
0answers
816 views

how to draw a block/flow diagram for a code in tikz [closed]

I want to draw a diagram that shows how my program flows. I have a main routine that calls a few subroutines, which in turn call a few subroutines. Does a package exist which can show this ...
2
votes
1answer
182 views

Encircle an arrow in TikZ [duplicate]

I'm preparing some lecture notes and have some trouble creating an encircled arrow like the one in the picture. What I'd like to do is to create an elliptic shape around an arrow defined in TikZ ...
11
votes
1answer
3k views

Make straight line between two nodes

How can I make straight line between two nodes when one node, for example, above another one and shorter. \documentclass{article} \usepackage{tikz} \usetikzlibrary{shapes,arrows} ...
16
votes
2answers
2k views

Drawing complex integration [duplicate]

Could someone help me to draw this picture but in point (0,0) to have small circle negative oriented, like here I am beginner with tikz and this looks to complicated for me. Any help is ...
2
votes
0answers
113 views

Artifacts in TikZ picture when using scale option [closed]

When compiling the example code below with pdflatex Version 3.1415926-2.4-1.40.13 (TeX Live 2012/W32TeX), I observe an artifact (horizontal line starting from the start point of the objects) in the ...
5
votes
1answer
177 views

Crossed hierarchy

I appreciate it if you let me know the most elegant way to draw a crossed hierarchy such as the followings: X /\ Y Z /\/\ p q t q has two parents Y and Z.
7
votes
3answers
389 views

Fitting as a background to nodes in multiple pictures

I'm using TikZ pictures to represent terms in an equation, and I want to visually group some of these terms by drawing a rectangle behind them. But each term is its own separate picture, which means I ...
3
votes
1answer
2k views

how to fill intersection of 2 shapes in latex tikz package [duplicate]

I have to fill a specific region as given in the following figure. The code I have written is \begin{tikzpicture} \draw (0,0) rectangle (10,10); \draw (3.5,3.5) circle (5) node {A}; ...
6
votes
1answer
3k views

2D surface on a 3D surface plot external data in a file

I am drawing a 3D surface from external data. Here they are: 0 0 -0.64 1 0 -0.5 2 0 -0.4 3 0 -0.31 4 0 -0.23 5 0 -0.2 6 0 -0.24 7 0 -0.32 8 0 -0.42 9 0 -0.59 10 0 -0.76 0 1 -0.54 1 1 -0.4 2 1 -0.27 ...
9
votes
2answers
2k views

Tikz add arrows to multiple segments of a `\draw` command

I'm drawing an org chart and I'd like to have arrows pointing to each of the nodes I do so. I'm also lazily using a single draw command to draw a line from each of the nodes as the last part of my ...
3
votes
1answer
2k views

Bell curve with multiple x-axes and annotations

I've just started working with pgfplots and I'm getting good results, but I'm having difficulties getting this one done in LaTeX: The curve itself is not a problem, but the multiple x-axes (I don't ...
5
votes
2answers
605 views

Uncover parts of a tree in TikZ

I'm trying to apply Daniel's method to uncover the bottom right part of the tree in the following MWE. However, when I pass the option [visible on=<2->] to one of the children, it appears to ...
11
votes
1answer
966 views

Draw additional parallel paths in TikZ

How can parallel lines elegantly be added to an existing path? I am looking for a solution or hint to, how a general style can be made, that works with any path. Example path: ...
1
vote
0answers
112 views

No correct output [closed]

After installation of the last version of MiKTeX and TikZ, I created following document: \documentclass{article} \usepackage{tikz} \begin{document} The version of Tikz is : \pgfversion ...
0
votes
0answers
36 views

Place node at right of and above of centered [duplicate]

Is there a way to place a node in TikZ such that it is above/below a certain node and left/right of another, while being centered with the other corresponding node. In the MWE is below, I want to ...
1
vote
1answer
896 views

arrow heads on arc curves

How can I have arrow head appear properly on the arced curve? \documentclass{article} \usepackage{tikz} \usetikzlibrary{arrows,decorations.markings,calc,fadings,decorations.pathreplacing, patterns, ...
10
votes
1answer
2k views

TikZ: adding nodes to a circular diagram from smartdiagram package

This is what I would like to achieve: My MWE is below: \documentclass{article} \pagestyle{empty} \usepackage{lmodern} \usepackage{smartdiagram} \usetikzlibrary{shapes.geometric} ...
2
votes
1answer
2k views

gnuplot and TexnicCenter setup

I just downloaded and ran the gnuplot setup exe. Now, how do I setup TeXnicCenter and gnuplot so I can use gnuplot with TikZ? So I have been able to add --enable-write18 but the inverted cycloid ...
0
votes
1answer
2k views

tikz pgfplots forget plot

I'm having problems finding how to use forget plot in tikz. I need only 2 legendentries like this: but get a massive long list of every object in the graph. This post addresses the problem but seems ...
4
votes
1answer
174 views

Creating labes on diagram edges

I want to add labels 3, 4, 5 on tree edges like you can see on picture, but I don't know how :( My minimal example: \documentclass{article} \usepackage[T1]{fontenc} \usepackage{tikz} ...
23
votes
3answers
2k views

How to build parallel paths between nodes?

I want to create a figure with TikZ: I tried first with the following code (remark: Complete MWE on bottom): \begin{tikzpicture} \node [block] (A) at (0,0) {\rule{2cm}{2cm}}; \node [block] (B) at ...