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)

5
votes
1answer
1k views

How do I create transition arrow labels with new lines?

I am using the TikZ package to draw pushdown definite automata. How do I add new lines into the labels of transition arrows? This does not work: \begin{tikzpicture}[shorten >=1pt,node ...
14
votes
1answer
1k views

Drawing shapes around Tikz Tree nodes

I have a Tikz tree in my Latex document as follows: % Set the overall layout of the tree \tikzstyle{level 1}=[level distance=4.5cm, sibling distance=6.5cm] \tikzstyle{level 2}=[level distance=4cm, ...
4
votes
1answer
303 views

TikZ - How to automate the creation of patterns having irregularities

This is a continuation of How to automatically calculate parameters of a TikZ repeating pattern? I am trying to find the best way to draw a series of industrial patterns. Thanks to the help received, ...
7
votes
3answers
1k views

Tikz graph: weight above the node

Hy, I would like to know if it is possible in Tikz graphs put the weight above the vertice (this way, all edges to the destination node has the same weight) instead above the edge. Here is an ...
6
votes
1answer
851 views

perspective tikz figure 3d

I want to rotate my figure, like here below: \documentclass{standalone} \usepackage{tikz} \usepackage{tikz-3dplot} \begin{document} \tdplotsetmaincoords{180}{0} ...
16
votes
3answers
2k views

PGF math engine imprecise?

The command \pgfmathparse{asin(1/\x)} yields for each \x in the range of 125 to 142 the same value, whereas \pgfmathparse{1/\x} yields the much more precise values for each \x. Is the ArcSin function ...
4
votes
1answer
289 views

Callout pointing at wrong direction

I wonder why my callout pointer is pointing at the wrong direction. It should point towards the coordinate (-2,1). What am I doing wrong here? \documentclass[tikz]{standalone} \usepackage{kpfonts} ...
8
votes
3answers
539 views

How to invert list used for a tikz foreach loop

Given \def\stuff{a,b,c} I would like to be able to do \foreach \x in {c,b,a} {...} without inverting the list \stuff manually. For example is there some sort of \invert macro that would allow me ...
19
votes
2answers
2k views

Making a labeled Klein bottle using TikZ or pgfplots?

I'd like to be able to draw the following cell complex structure on the (three-dimensional embedding of the) Klein bottle using LaTeX. I am pretty pleased with my hand-drawn rendition, but LaTeX is ...
8
votes
1answer
211 views

How to plot a tree with sidebar?

I'm trying to draw a picture like this: Can we done it with tikz?
13
votes
1answer
1k views

TikZ in itemize

I want to make a frame transition as seen here. http://www.slideshare.net/thomasmach/hierarchical-matrices-concept-application-and-eigenvalues i.e. from to Move from slide 8/67 to 9/67. I am ...
11
votes
1answer
1k views

Why does pgfplots package cause tikz layer to disappear?

I wish to include a pgf-generated line plot and a tikz-generated graphical model in the same document. However, the presence of the pgfplots package (needed for the axis environment) seems to turn one ...
8
votes
2answers
2k views

How does the 'on grid' node positioning in TikZ actually work?

I thought I knew how the on grid option of TikZ (cf. version 2.10 manual section 16.5.3 pages 186-187) worked, but the results I get are different from what I expected. I have a minimal example: ...
6
votes
2answers
202 views

tikz cloning graphs in background

I want to have output something like this - On the right side, we can see the 2 rectangles and circles. What I want to do is like that I have 3 clones in total one behind another and then connect ...
10
votes
1answer
431 views

Label steps of equations using \tikzmark

I was very happy with results obtained in this question: Combine two \tikzmark solutions. (Awaiting @PeterGrill to update his answer) The \tikzmark is a wonderful creation. What am stuck now is to ...
4
votes
1answer
255 views

How to draw hierarchical boxes with vertical lines of sight? [duplicate]

Possible Duplicate: Creating a node fitting the horizontal width of two other nodes I would like to draw a hierarchy of boxes where the borders of the boxes are vertically in the same line ...
21
votes
2answers
1k views

How to modify nodes in TikZ to automatically add a line on their top?

In TikZ there is the very flexible node system. As a beginner I am still stumbling over a few details. How can I modify a node or create my own nodes easily? As an example I need a node with a thick ...
5
votes
0answers
311 views

Plots from externalized TikZ are rotated [closed]

I just found out about tikzexternalize and I love it - well, almost. This is my situation: I have done simulations in Matlab and used matlab2tikz to get the plots from Matlab into my .tex document. ...
7
votes
1answer
307 views

Tikz node and nonalphanumeric characters

I cannibalised some code from the thread Simple speech bubbles, arrows or balloon like shapes in beamer. It works really well, but crashes whenever non-alphanumeric characters are used in the node. ...
3
votes
0answers
76 views

How to start a new line when drawing a finite state machine using TikZ? [duplicate]

Possible Duplicate: Tree-like diagram (flow chart?) showing selection of scientific papers when reviewing I am trying to draw a state using tikz. The state I want to use draw is: ...
13
votes
1answer
3k views

Plot non-continuous function with TikZ

How can I plot a non-continuous function with TikZ (using continuous lines for continous stretches of the function and dashed lines for discontinuities)? Does anybody know an efficient method?
6
votes
1answer
240 views

How to clip overlaying surfaces/paths instead of filling them with white?

The following code \newcommand*{\arcthickness}{0.3} \newcommand*{\myarc}[4]{ % x,y,radius,text % node is positioned by splitting the arc in two parts % see ...
9
votes
1answer
730 views

Using tikz with both tex4ht and pdflatex

I found that in order to use tikz with tex4ht to produce HTML, I need to do the following: \def\pgfsysdriver{pgfsys-tex4ht.def} \usepackage{tikz} I also need to produce PDF from the same tex file ...
7
votes
1answer
181 views

How to allow correct environment nesting when the environment definition involves labels?

The code below shows an improved version of the code provided in this answer to Mark (highlight) a paragraph (\item{...}) with a squiggly line for later attention. The environment tikzborder uses a ...
2
votes
0answers
120 views

Draw centered label above arc in TikZ [duplicate]

Possible Duplicate: How to place a node in the middle of an arc? Following the manual where labels are positioned on curves (\draw (0,0) .. controls (6,1) and (9,1) .. node {midway} ...
3
votes
0answers
591 views

Beamer, TiKZ, and commutative diagrams [closed]

I have a commutative diagram that renders without issue in a memoir document, but, when I copy the code into a beamer slide, the mapping text becomes super imposed over the arrows. Is there a ...
17
votes
0answers
2k views

EveryShipout errors when using TikZ with conference style [closed]

Using the conference style cvpr.sty from the CVPR 2013 Author Kit, the following small example works for me: \documentclass{article} \usepackage{cvpr} \def\cvprPaperID{0} % necessary for cvpr.sty ...
3
votes
1answer
1k views

Tikz Graph with Nodes and Edges and some Dots

I want to draw an image like this with TIKZ. I want to convert the Squares to rectangles, thus I am using Tikz. However, I am unable to draw those dots in TIKZ. Here is the code that I have ...
1
vote
0answers
110 views

mindmap problem [closed]

When compiling (on debian) the example in http://www.texample.net/tikz/examples/computer-science-mindmap/ I get a strange behavior of the central node (see attached image). have you any suggestion ? ...
3
votes
0answers
290 views

ytick pos=right doesn't work [closed]

This is my code: \documentclass{article} \usepackage{tikz} \usepackage{pgfplots} \pgfplotsset{compat=1.3} \begin{document} \begin{tikzpicture} \begin{axis}[xticklabel pos=right, ...
4
votes
1answer
2k views

How to specify the arrow length in TikZ?

I've a small problem in Tikz. I try to draw arrows within 4 dimensions. Every arrow should have equal length. My implementation right now works with coordinates. There is a rectangle with a center ...
5
votes
1answer
607 views

Creating TikZ Node Using Macro

I'm trying to create a linked list using TikZ. I currently have this: \documentclass{article} \usepackage{tikz} \usetikzlibrary{chains,shapes} \newcommand{chainlabel}[2]{\path [<-, draw, shorten ...
4
votes
1answer
266 views

On how double precision numbers are encoded in a pdf file

Imagine the following tikz/pgfplots code: % compile as: lualatex --jobname=figname-f1 figname.tex \documentclass[10pt]{book} \usepackage{tikz} \usepackage{pgfplots} \pgfplotsset{compat=1.6} ...
8
votes
1answer
769 views

How is the interior of a path determined when reverse clipping?

I'm been playing around with [reverseclip] from How can I invert a 'clip' selection within TikZ?. It works quite well. When you apply [reverseclip] it seems to add another part to your ...
11
votes
3answers
984 views

pgfplots plots function not correct

This code \documentclass{article} \usepackage{pgfplots} \pgfplotsset{compat=newest} \begin{document} \begin{tikzpicture} \begin{axis} \addplot [domain=15:30, samples=1000] ...
3
votes
1answer
287 views

Two cylinders connected with a belt

I want to draw two cylinders connected with a common belt around them. Therefore, I need two cycles and two tangents to these two cylinders. I know there is a general solution for my problem How can ...
1
vote
0answers
1k views

Heatmap Table with Latex and Tikz [duplicate]

Possible Duplicate: Parametrize shading in table through TikZ Drawing heatmaps using TikZ is there a way to generate heatmap like tables in LaTeX, for example with tikz? I have a really ...
15
votes
1answer
13k views

TikZ: text along path as node

I'm using the decorations library to put bended text along a path. That works fine. However, I'd like to have the bended text as a node, so that I can later use it as a reference (for instance to draw ...
0
votes
0answers
66 views

Strange line width problem with tikz-qtree [duplicate]

Possible Duplicate: TikZ borders showing through when they shouldn’t (overlapping circles) I have a strange problem with using tikz-qtree where the thickness of the lines are a bit odd. ...
3
votes
1answer
182 views

Why does the following code not compile? (tikz and scope)

I have the following code here, wrapped in a nice MWE but alas it will not compile. Where is my grave mistake? =) \documentclass{minimal} \usepackage{tikz,tkz-euclide} \begin{document} ...
8
votes
5answers
806 views

Convenient way of typesetting boxes with multiple input and output wires?

I want to typeset diagrams describing functions which take multiple inputs and return multiple outputs. These should look like boxes with labels in them like "f" or "g" and with some input wires ...
6
votes
1answer
2k views

How do I draw a scatterplot with a function plot?

I am trying to plot a scatterplot with a fit line that I have already calculated, but I am having trouble getting them to line up and use the same scale. I tried doing it with ...
12
votes
2answers
1k views

Repositioning and resizing arrow tip on circular (arc) path

I'm working with some graphs, and I'd like to indicate a certain orientation of edges incident on a vertex. With some help I've managed to get this far: \documentclass{article} \usepackage{tikz} ...
7
votes
1answer
692 views

How can I use moderntimeline without moderncv?

How can I use moderntimeline without having to use moderncv as the document class? The following code is what I've tried so far: \documentclass{article} \usepackage{moderntimeline} ...
21
votes
1answer
10k views

How do I make a TikZ/pgfplots scatter plot without lines between points

I am attempting to make a scatter plot from a table of data. I seem to have almost succeeded, but there are lines between the points. I do not want this to happen, but I can't figure out how to remove ...
8
votes
2answers
707 views

\to arrow with tikz or tikzcd

I want to replace the usual \to short arrow by an (approximately) equally short arrow with a nicer tip. Although completely newbie, I'm fond of tikz-methods and I write all my commutative diagrams ...
8
votes
1answer
560 views

Combine two \tikzmark solutions

I would like to combine the following two solutions provided in the question: How to draw arrows between parts of an equation to show the Math Distributive Property (Multiplication)? ...
11
votes
1answer
855 views

Drawing a circle around a node that looks like an arrow

So I'm using TikZ, not too well-versed in it, and I would like to draw a node (unlabeled, just a dot) and with a dashed circle around it that has an arrow on it (this indicates direction). Basically ...
6
votes
1answer
2k views

how to change font size in tikz automata?

This is my tikz code: \documentclass{article} \usepackage{tikz} \usetikzlibrary{shapes,shapes.geometric,arrows,fit,calc,positioning,automata,} \usepackage{amsmath} \begin{document} ...
6
votes
1answer
991 views

Tikz overlay for subfigure environment- beamer

I have been trying to create a list and a bunch of subfigures (both on each half of the slide). I have used \setbeamercovered{transparent}to progress along the list per keystroke. I want this ...