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
1answer
186 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 ...
9
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
723 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
757 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
1k 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 ...
3
votes
1answer
334 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
357 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
738 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
252 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
4k 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: ...
10
votes
1answer
4k 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
358 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
344 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
9k 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
163 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
818 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 ...
43
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
234 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
433 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
624 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
698 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 ...
12
votes
2answers
2k 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
174 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
116 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 ...
1
vote
0answers
531 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
148 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 ...
8
votes
1answer
2k 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} ...
13
votes
2answers
1k 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
97 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
154 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
308 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 ...
2
votes
1answer
804 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
2k 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 ...
7
votes
2answers
1k 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
1k 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
1answer
368 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 ...
10
votes
1answer
707 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
100 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
593 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, ...
9
votes
1answer
787 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
995 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
163 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} ...
20
votes
3answers
855 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 ...
7
votes
1answer
512 views

TikZ flowchart child

Is it possible to show block C as a single block rather than having 3 blocks? \documentclass[landscape]{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} ...
0
votes
1answer
382 views

protocol message diagram - rectangle

\documentclass{article} \usepackage[margin=12mm]{geometry} \usepackage{hyperref} \usepackage[underline=true]{pgf-umlsd} \usetikzlibrary{calc} \begin{document} \begin{sequencediagram} ...
2
votes
1answer
133 views

Can't find tikz subfiles

I've the following project structure: ./main.tex ./ch1/ch1.tex ./ch1/tikz1/tikz1.tex The main.tex looks like: \documentclass{book} \begin{document} \subfile{./ch1/ch1.tex} \end{document} The ...
4
votes
2answers
141 views

Is PostScript access from TeX (via PSTricks or TikZ) safe?

PSTricks and TikZ grant us access to PostScript. Is it safe? I meant: Is there a vulnerability hole open for someone to exploit? Edit: I just found that compiling PSTricks with xelatex might be ...
4
votes
0answers
658 views

Matlab2tikz adds extra legend entries [closed]

The legend from a boxplot figure is not being created properly. I get this: Instead of thiS: But really only need 2 legend entries. Any Ideas why all the objects in this plot are being given ...