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)

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
715 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
453 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
338 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
865 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
17k 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
313 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
713 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
910 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
769 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
558 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 ...
12
votes
1answer
709 views

Distressed text: photoshop like effects in LaTeX tikz?

Is it possible to create a "distressed" look using TikZ? For example: Note that it is akin to a filter over the text/image, as each letter looks different.
28
votes
3answers
17k views

How to set exact radius for a node?

I have a bunch of nodes and would like to size them so that their areas represent some numbers I have (so that if I have two nodes with corresponding values 1 and 2, then the second node's area should ...
6
votes
1answer
691 views

tikz example from manual fails

I have copied an example from the tikz manual, but it fails to compile \documentclass[]{scrbook} \usepackage{pgf} \usepackage{tikz} \usetikzlibrary{circuits} \usetikzlibrary{circuits.logic.IEC} ...
7
votes
2answers
322 views

how to test if tikz library is loaded

I want to write some demo code showing code with examples for tikz. However I want the resulting pdf to be automatically depended on the tikz libraries and therefore I must test which are loaded. Is ...
4
votes
1answer
2k views

Adding space between subfigures of tikzpicture (for caption)

I'm trying to draw two figures next to each others using tikzpicture. It's working fine, but the caption of the sub-figures is looking weird. I tried adding the \qquad's, but I'm still having the ...
5
votes
2answers
663 views

Draw reversed path in TikZ

Is there a way to draw a TikZ path reversed? I am trying to create some code that generates tessellating figures (to be used in How do we Draw a Bird in LaTeX). Here is what I got: ...
5
votes
2answers
3k views

Tikz right-angle edges between nodes

In the example below I'd like to have angled edges which just go vertically and horizontally. My aim is to get the edges like in this image (the rounded edges are not a must) : Here is my minimal ...
7
votes
3answers
3k views

Line through two points with offset in TikZ

I could not find a native command in TikZ allowing to draw a line going through two specified points where an offset can be controlled. So far, I'm using the calc extension to perform what I need but ...
2
votes
1answer
392 views

How can I add size of Tikz drawing into size of equation? (PART 2)

Related to: - How can I add size of Tikz drawing into size of equation? Code presented below is the result of combining code from solutions to: - How can I add clips above matrix? - How can I add some ...
8
votes
1answer
2k views

How to generate stem plots with TikZ like stem() in Matlab?

Given a set of (x,y) coordinates stored in a file, how could I generate a stem plot from those coordinates? I would like to achieve something similar as the matlab's stem function: ...
4
votes
2answers
452 views

How can I add size of Tikz drawing into size of equation?

This is slightly modified code from Frédéric's answer to How can I add clips above matrix? \documentclass{mwrep} \usepackage{amsmath} \usepackage{tikz} ...