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
792 views

TikZ-equivalent of bordermatrix with automatic alignment of labels

I would like to create a TikZ matrix (containing pictures in the cells) and annotate rows/columns of this matrix is the same manner as \bordermatrix allows. This is (approximately) a picture of what I ...
11
votes
2answers
12k views

tikzpicture alignment and centering

I have several very similar images except some have some extra graphics that enlarge them slightly. This causes some pictures to be offset and not aligned visually when it's clear they should be. How ...
4
votes
2answers
751 views

TikZ: Automatic Numbering of Nodes, \value{counterName}

\documentclass{standalone} \usepackage{tikz} \newcounter{xi} \setcounter{xi}{0} \newcommand{\foo}[0]{ \addtocounter{xi}{1}; \coordinate (x{\value{xi}}) at (1,2); } \begin{document} ...
5
votes
1answer
2k views

Turing Machine Figure

Just curious if anyone had a good recommendation for generating a Turing machine style image using perhaps TikZ or something else that would create an image similar to the one shown here. Any ...
7
votes
1answer
778 views

TikZ Fading Speed

In the fading example at TikZ examples I would like to change the "speed" at which fade occurs. In fact I would like it to be very "sharp" so that in the square examples you basically will see about ...
2
votes
1answer
700 views

TikZ: Paling Effect

\documentclass{standalone} \usepackage{tikz} \usetikzlibrary{patterns} \def\cHeight{0.5} \def\cWidth{4} \newcommand{\cigarOne}[2]{ \pgfmathtruncatemacro\result{\cWidth/2} ...
7
votes
3answers
296 views

how to ``open'' the curly bracket in a macro?

In tikz, the macro \draw accept a optical argument of parameters separated with comma, e.g. \draw[->, red] (0, 0) -- (1, 1) I have a self defined macro, in which I want to pass a macro as this ...
3
votes
1answer
330 views

Month name not showing up in calendar in tikz

Sorry for the long post, but I give up... after hours of trying to figure out why this thing is not working, I'll be grateful if Anyone could help! I am following the Tutorial #6, in TikZ and PGF ...
33
votes
4answers
14k views

TikZ manual newest version online?

Is there a definite place where TikZ manual can be found online? I am only finding version 2.00, while I keep loosing the link to 2.10. Does the official site host the manual somewhere, or is it ...
2
votes
1answer
307 views

mindmap not working with calendar

Following the Tikz & Pgf manual, the tutorial on mindmaps - after adding calendar, the mindmaps are gone! Does anyone have the full LaTeX code for these examples? It is really frustrating... ...
5
votes
2answers
395 views

How to import additional code into class file

I was inspired by the article "Fancy chapter headings with TikZ" (Stefan Kottwitz many thx) and I have created the whole fancy sectioning. But what I need to do now is to import this whole code for ...
8
votes
2answers
2k views

TikZ node pin angle in 2D plot

I would like to rotate the pin corresponding to the point -3.09% to the left, but when I increase the angle past 87, it snaps to 90 and the minus sign gets in the ticks and even at 87, it doesn't look ...
6
votes
1answer
716 views

TikZ borders showing through when they shouldn't (overlapping circles)

If you draw two circles that are exactly the same in all aspects (location, size, etc...) except they have different colors, then the "border" of the underlying circle is showing through. ...
11
votes
2answers
454 views

funny interference between \baselinestretch and TikZ

The command \baselinestretch has a strange influence on Tikz Pictures, when it is not closed in a group (compare the two figures): \documentclass[12pt]{article} \usepackage{tikz} \begin{document} ...
2
votes
1answer
459 views

Ref a picture within a node

I would like to know if we can reference a (tikz)picture within a node from another picture. In this way, I could create a PDF with multiple pictures which give details of each node from my first ...
4
votes
1answer
1k views

TikZ library automata using option double with shorten

I'm trying to draw an automata using TikZ and the library automata. An accepting state I would like to denote by a double circle but the distance between the two circles should be larger than the ...
2
votes
0answers
381 views

Will TikZ compilation become faster? [closed]

I find that TikZ compilations are rather slow. I often work with old computers and the LaTeX compilation is very fast but TikZ slows down the process. Externalizing the graphics helps but making a ...
3
votes
2answers
767 views

Combine Tikz pictures

Is it possible to combine two tikz pictures that were created using separate environments? Basically I have a macro create a backdrop that I will use often but I would like to create a layer on top ...
5
votes
3answers
3k views

Creating a Free Body Diagram in TikZ

I'm trying to create a free body diagram of an an object, more specifically the Orion spacecraft. I'm trying to create a diagram that consists of the vectors with F_g pointing downwards, F_D (drag) ...
12
votes
3answers
2k views

How to draw something only in the magnified area (TikZ: spy library)?

I wonder if it is possible to draw parts of the images only in the maginfied node printed with \spy? \documentclass[ border=2cm, ]{standalone} \usepackage{tikz} \usetikzlibrary{calc,fit,spy} ...
3
votes
1answer
524 views

TikZ: plot data files with spaces in path

I tried to plot a data file with spaces is the file path. \draw[line width=0.4mm] plot[] file{/home/schlumpf/test folder/daten.txt}; My problem is the space in the file path. How can I plot this ...
2
votes
1answer
340 views

Cobweb diagram has offset iterates / modifying a working piecewise functions results in chaos

I have a problem with the following tikz code (maybe, when reading this, skip at first the code and read the question which is at the end), that creates cobweb-diagrams: \documentclass{article} ...
9
votes
2answers
866 views

Enumerate labels in text circles

I am trying to get enumerations with the list labels surrounded by text circles for which I am using the following code: \usepackage{tikz} \newcommand*\mycirc[1]{% ...
14
votes
2answers
18k views

Translate and rotate an object in TikZ (2D)

Is there a way in Tikz to translate and rotate a, lets say, rectangle by an arbitrary distance/angle? As an example Translation: 3 in x-direction, 5 in y-direction Rotation: 45 degree Now my goal ...
7
votes
2answers
6k views

Self loop in an undirected graph using TikZ

How can I create a self loop without a direction on the edge? \path[every node/.style={font=\sffamily\small}] (3) edge[loop] node {$e_{1}$} (3); creates the loop I want but has a direction.
1
vote
1answer
3k views

How to draw arc in Tikz? [duplicate]

Possible Duplicate: Best way to create this image, square and angle How do I draw an arc between lines OA and OB to indicate an angle? \begin{figure} { \begin{tikzpicture}[scale=2] \node ...
5
votes
3answers
1k views

Rotating around computed point using PGF

I am trying to rotate a drawing around a specific point using PGF commands. As long as I hard code the center of rotation, this works just fine: \usepackage{tikz} \usetikzlibrary{calc} ...
11
votes
4answers
1k views

Every non-label node in TikZ

In TikZ we can use every node/.style=... and every label/.style=... but is there a way to say something like every non label/.style=... so that I can define styles for non-label and label nodes ...
7
votes
1answer
314 views

How to convert TikZ coordinates into PGF coordinates?

I have several coordinate specified in TikZ, say \coordinate (a) at (0.4, 1.7); \coordinate (b) at (3.2, 1.7); \coordinate (c) at (1.7, 4.7); \coordinate (cog) at ($1/3*(a) + 1/3*(b) + 1/3*(c)$); ...
12
votes
1answer
6k views

Clipping Elements in Tikz

I am trying to draw a picture using TikZ in LaTeX. In this example, I have drawn two curved lines and a vertical line. I would like to make the lower curved line only visible to the right of the ...
6
votes
1answer
3k views

How can I increase arrow-head size in tkz-graph?

How can I increase the size of the head of the arrows in a tkz-graph graph? This question is similar to Is it possible to change size of arrowhead in TikZ/PGF?, but requires an adaptation of the ...
13
votes
4answers
11k views

tikzstyle default node text with fill color

As a follow-up to this solution on defining the default text for a node, how can it be done with the use of a fill color? Note below that specification of a fill color abolishes the node text. ...
5
votes
1answer
1k views

TikZ rectangle split and edges

This is my first time posting in this site So I have the following code: \documentclass{article} \usepackage{tikz} \usetikzlibrary{shapes.multipart} \usetikzlibrary{arrows} ...
3
votes
2answers
715 views

TiKz/PS Blending at the pixel level

To do proper blending easily in TiKz, I need to do be able to have a special blend mode. (this is relevant to anything dealing with graphics and not tiks/tex) When you plot a pixel with an alpha ...
0
votes
0answers
64 views

Curved connector ends with arrow [duplicate]

Possible Duplicate: How to make bend lines/arrows with TikZ? I draw arrows in TikZ often by that: \draw [->] (begin_point.south) -- ++(0,-4) -| (end_point.north); Now I would like to ...
8
votes
1answer
915 views

Dashed draw with a node including a fraction

Is this intended behavior (with plain XeTeX): \input tikz \tikz\draw[dashed] node {$3T\over4$}; \bye It renders as: !? The fraction line is dashed, too! Is this intentional? Is there something I ...
7
votes
3answers
2k views

Drawing Axis Grid in 3D with Custom Unit Vectors

I am trying to adjust the unit vectors for each of the axis, and draw a coordinate grid. I can get it to work without specifying the unit vectors, of specifying it as: x={(1.0cm,0.0cm)}, ...
17
votes
5answers
4k views

arrows with tikz package

I use tikz, and try draw a directed graph with \begin{tikzpicture} \node[draw, circle] (1) {1}; ...
13
votes
1answer
16k views

tikz relative coordinates

Suppose one defines coordinates a and b. One may draw a line connecting these two coordinates (\draw (a) -- (b)). Suppose one desires to draw a line that is shifted upward 1 unit relative to a and b. ...
10
votes
1answer
1k views

How to produce a tight box with a fancy border?

I'd like to be able to typeset a tightly-boxed formula with a fancy border. My progress so far has been to produce a box (with mdframed) with the fancy border I want (with tikz), but instead of being ...
3
votes
1answer
770 views

Filling path in pgfplot and pushing into background?

I'm using pgfplots to produce a plot of a closed path in the x-y plane. For reasons that are not important here, I would like to fill the closed path. That works fine, but the axes are then hidden by ...
3
votes
1answer
1k views

Applying backgrounds to TikZ scope

I have problems creating a background for a scope envionment Here is part of the code I used for a beamer slide: \documentclass{beamer} \usepackage{tikz} ...
6
votes
2answers
9k views

(TikZ or xcolor) lighten color

I am plotting some simple stuff using TikZ like circles and lines. They are colored. I know the color I want to plot with but would like create a new color that is a lighter version of the old. ...
12
votes
2answers
858 views

TikZ read out file

I have a file called assocFile.dat. The file has the following format: 0/b 1/d 2/f 3/h I want to use this file to draw nodes (however it would be nice if this question can be ...
11
votes
1answer
6k views

Change node distance for particular nodes

How do you change the node distance to the left for a \node[state] (q4) [below left of=q3] {$homing$}; Ok, it's a little bit on the left, but I want it to move it more to the left. How ...
2
votes
1answer
902 views

Tikz/PGF package to generate flow diagrams

I'm looking for something able to generate the following type of diagrams: Thoughts? Addendum: Maybe I was not clear. I'm looking for a package that, with minimal effort, is able to produce ...
11
votes
4answers
1k views

Merge arrows with TikZ

I am still learning to use TikZ and now I find myself in a tight spot. I want to draw three processes on the lhs and one on the rhs. These processes are represented by a circle. I then want three ...
2
votes
2answers
1k views

Increase space between two tables in minipage and TikZ overlay

Sorry but this is the MWE I could post. I also attached the image. The top image is what I am getting and the bottom one is what I desire. I manage to create nodes but do not know how to connect them. ...
3
votes
1answer
559 views

problem making a commutative diagram in tikz using positioning library

I am using the positioning TikZ library to make a commutative diagram. I am having trouble getting the bottom arrow to be horizontal. Here is the output with my problem: the positioning library is ...
5
votes
1answer
755 views

Can we define a multiedge command using tikz?

I usually need to draw graphs with multiple edges. I would really appreciate if someone can tell me how to write a multiple edge command which will allow me to write one line instead of repeatedly ...