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)

6
votes
1answer
2k views

Externalising TikZ pictures using XeTeX

I'm trying to use TikZ's external library with XeTeX, for example, and I'm running into some issues. Having set external/system call={xelatex \tikzexternalcheckshellescape -halt-on-error ...
1
vote
1answer
689 views

tikz color changing path

I have tried to answer the question from TikZ: changing colour of a path half way along with decorations - unsuccessfully. Maybe it is not possible!? Can someone tell me why scoped path color change ...
7
votes
3answers
3k views

Print integer without fraction part

In a Tikz Figure, I'm doing some computation and want to print results as label of nodes. The problem is that I only need the integer part of the number to print. I tried with round() function. It ...
23
votes
1answer
937 views

Chinese checkers board using TikZ

A question regarding drawing checkers pieces and boards using TikZ has been asked here previously and I'm aware of the chessboard package. However I want to draw a Chinese checkers board: I want ...
5
votes
1answer
804 views

Bounding box vs. xshift

The xshift in the following figure breaks the bounding box: \documentclass{article} \usepackage{tikz} \usetikzlibrary{scopes} \usetikzlibrary{chains} \usetikzlibrary{backgrounds} % used only for ...
1
vote
0answers
609 views

Error including manually installed TikZ package [closed]

I am trying to manually install tikz in my local texmf tree on my shell account at school. I simply unpacked the latest build to ~/texmf/tex and ran texhash. Now, trying to compile this simple ...
6
votes
1answer
1k views

How do I make a figure that spans a spread of two pages? [duplicate]

Possible Duplicate: How to include a picture over two pages, left part on left side, right on right (for books)? I have a huge TikZ graphic inside a figure environment. I would like it to ...
5
votes
1answer
219 views

Scaling isn't affecting a diagram made with the tqft package

I'm trying to make a drawing, part of which will use Andrew Stacey's tqft package. However, everything his package produces seems to be immune from scaling. For example, the following code is my ...
1
vote
1answer
314 views

Tkz-berge does not respond to node-distance specification

I'm having some issues with the latest version of the tkz-berge package: it seems to be ignoring node-distance specifications. If I compile this file (using example n. 39 from the tkz-berge ...
8
votes
3answers
2k views

Label Points in a circle in tikz

Consider the slight modification of the construction from the solution to this question: Variables and basic arithmetics and tikz-euclide \documentclass{minimal} \usepackage{tkz-euclide} ...
13
votes
1answer
2k views

Adding values to pgfplot legend

As a follow-up to my earlier question (here), here is a question that is perhaps a little more latex than gnuplot. having used gnuplot and pgfplots to generate a fitted curve, is there an easy way to ...
9
votes
2answers
5k views

How to get started with drawing this flow chart in TikZ?

I have some old drawings prepared in Word which I would like to translate into TikZ. Being a complete novice and having never worked with TikZ before, I am really struggling with getting started. ...
1
vote
0answers
132 views

How to use trigonometric functions in tikz coordinates [duplicate]

Possible Duplicate: Problems with TikZ calculations I am trying to get the following arrows to get lengths defined by a trigonometric function, in this case cos. This was my attempt, but it ...
8
votes
2answers
2k views

Circuitikz doesn't recognize units

For example when I use \ohm or \micro it throws an error. For example, in the MWE: \documentclass{article} \usepackage{circuitikz} \begin{document} \begin{circuitikz} \draw (0,0) to ...
1
vote
1answer
496 views

Math formula changes in tikz environment

I am trying to write a formula in a tikzpicture but it gets changed. The indices for the cumulative product is moved from under the \prod to after. See MWE: \documentclass{beamer} \usepackage{tikz} ...
5
votes
1answer
461 views

Keep column height in Beamer when replacing content

I have a frame in Beamer that consists of two columns. The content of one column remains the same, the content of the other column is replaced on the second slide. \begin{frame} \begin{columns} ...
7
votes
1answer
522 views

Tikz: redefinition of patterns

I save my TikZ figures in separate files containing all the necessary definitions, so it's easy to reuse them. In some cases I defined a new pattern, e.g. by \pgfdeclarepatternformonly{wide ...
4
votes
1answer
2k views

How to add a condition in \tikzset?

I am trying to make some modification on the answer of Andrew Stacey of my previous question "A macro of drawing a rectangle with several parameters in TikZ". The current code is the following: ...
3
votes
2answers
1k views

How to make two rectangles top adjusted horizontally in TiKZ?

I have 2 rectangles and an operator between them, the one on the right is longer than the one on the left: \documentclass{article} \usepackage{tikz} \usetikzlibrary{positioning} \begin{document} ...
6
votes
2answers
766 views

How to raise a generic curve. Problem with \pgfdeclaredecoration

The goal I want to obtain is to have a parallel curve to a generic curve defined in a \draw command trough TikZ. To achieve it, I used the TikZ decorations library and the command ...
18
votes
2answers
5k views

Is plotting exponential graphs a known source of bugs in TikZ?

I want to plot $y = 2^x$ over a small domain. Unfortunately, even though tikz (v 2.1) seems to be able to calculate 2^{negative numbers} it is not plotting them correctly. My minimal example is: ...
7
votes
1answer
1k views

Using \evaluate in nested \foreach loops with TikZ

I would like to draw two grids side by side using TikZ; the left one being a complete square grid, and the right one being a lower-triangular one. I tried writing the following code to make the ...
8
votes
2answers
3k views

Unable to create multiple timelines using chronology.sty

I wanted to create a document that contains multiple timelines on one page. I am using chronology.sty, which uses TikZ, to accomplish this. However, I get an error when I try to create more than one ...
1
vote
1answer
565 views

Inserting the \markangle on tkz-euclide 1.16c

How do i insert \markangle in tkz-euclid 1.16c? \documentclass{article} \usepackage{tikz} \usepackage[active,tightpage]{preview} \PreviewEnvironment{tikzpicture} \setlength\PreviewBorder{5pt} ...
4
votes
1answer
1k views

Generating graphs with gnuplot (Gnuplot, LaTeX and tkz-fct)

I can not generate the chart below using gnuplot. How do I do this in TeXLive 2011? What are the commands? I wanted to use pdflatex, but can this also be done with latex. In my tests this did not ...
3
votes
2answers
562 views

includegraphics[page=\pageref… possible? how to set [page=] to a variable?

I'm currently writing a quite complex document with a lot of graphics created using TikZ. Hence I decided to put all graphics into one big file called tikz.tex creating a multiple page PDF with one ...
8
votes
2answers
1k views

How do I cancel/strike out a line?

I have drawn a long line with an arrow from one node to another. How do I strike out or cancel that line? What I want is something similar to how \not cancels \to in A \not\to B, e.g. Here's what I ...
13
votes
3answers
7k views

TikZ: Intersection of two lines

what is the easiest way to determine the intersection of two lines? I tried \usetikzlibrary{intersections} \begin{tikzpicture}[every node/.style={black,above right}] \draw[name path=line 1] (0,0) -- ...
7
votes
3answers
11k views

TikZ: position with different anchors

I would like to label lines at the same midway horizontal position (pos=0.5). But as the second line is tilted, the labels lower left corner should touch the line. Hence, I would need to manually ...
3
votes
1answer
1k views

Different backgrounds for title and “normal” frames in beamer

I want to draw different backgrounds for the title frame and normal frames in beamer, using tikz. Doing this for the normal frames was straight forward, but that background now also shows up on the ...
4
votes
2answers
1k views

Line break in datapoint label with pgfplot?

I have a bar chart, with labels for each column. I would like to break these labels over two lines. I'm not using nodes so the "align" trick doesn't seem to apply. Minimal example: (from Lyx) ...
6
votes
3answers
2k views

Tikz foreach with two variables and the remember option

The question is really simple but I am a beginner in the world of tikz. I have the following example and I am trying to simplify the connections of the nodes. Here the working example: ...
6
votes
2answers
618 views

Wraparound of tikz pictures in twocolumn layout

I am currently typesetting a document in a two column layout. Many text blocks are put into colored boxes, currently implemented with TikZ. This works; however, I have to split the text blocks ...
7
votes
2answers
690 views

How to maintain the ratio between two axis in pgfplots

I have two axis environments both containing different plots. I do however want to maintain comparability between both, i.e. I want both plots to consume the same space on the paper for a coordinate ...
7
votes
1answer
900 views

Change TikZ's default coordinate system

In the TikZ manual I read that the default coordinate system's spacing is 1cm, so that (1,1) would be a vector going 1cm in x-direction and 1cm in y. In a diagram with a lot of nodes, that I am ...
2
votes
1answer
428 views

Error when combining a chain and matrix with TikZ

I am getting started with TikZ and would like to create complex flow chart. To get used to the package, I want to start simple. However, I already fail at making a simple chain in combination with a ...
14
votes
1answer
2k views

what is the [count=\i] in \foreach for?

Can someone explain what does [count=\i] in a foreach mean? Antal S-Z's answer to Fitting a list of points with TikZ and it's \foreach use this. It is also mentioned in Increment loop variable in ...
12
votes
1answer
5k views

How to move a whole tikzpicture?

I have a tikzpicture, rounded by a fbox, and embedded in a minipage. Is it possible to change the position of the whole picture inside the minipage? for instance, move the picture 1 unit higher and 1 ...
10
votes
2answers
1k views

Timing and integration with TikZ PGFlots

How do I set intervals or integration with TikZ PGFlots? Something similar to the figure below, but I want to define the function, the intervals of integration and the partitions. ...
4
votes
2answers
1k views

Filling triangle doesn't seem to work with PGF/TikZ

I was wondering if anyone had any clue on why my triangles are not filled in red within the following piece of code: \documentclass{article} \usepackage{tikz} \usetikzlibrary{calc,3d} ...
9
votes
1answer
956 views

Using TiKz to draw cobordisms

As @Heidar says in the comments I see there is now a package for doing the cobordism diagrams (Topological Quantum Field Theory diagrams with pstricks or tikz) and I encourage others to use it as ...
10
votes
4answers
2k views

How to color a region?

The following code \documentclass{article} \usepackage{tikz} \usetikzlibrary{intersections,positioning} \begin{document} \begin{tikzpicture}[radius=5] \draw (0,0) rectangle (5,5); \draw[name ...
6
votes
1answer
982 views

Side braces - can somebody make sure I'm reading this right?

After some trial and error, and a little help from this stack overflow question I was able to put together this code: \documentclass{article} \usepackage{tikz} ...
17
votes
1answer
2k views

Need help creating a 3D cube from a 2D set of nodes in TikZ

I'm working on a figure where I need a 3D cube. My plan was to create a 2D set of nodes, then draw the top and right side of the cube, and lastly draw the missing lines. I got this far until I ran ...
0
votes
1answer
404 views

Symbols for EAI diagrams in TikZ/PGF?

I would like to produce some diagrams (preferably using TikZ/PGF) using the visual notation given in Enterprise Integration Patterns by Hohpe & Woolf. I'm aware of stencils from the above site, ...
4
votes
2answers
409 views

Pass several comma separated TikZ options to a single keyval key

I'm still improving my answer to Need help creating a 3D cube from a 2D set of nodes in TikZ. One of the options should be to emphasize the edges of the cuboid. This would mean e.g. \draw[red, very ...
6
votes
1answer
2k views

Multi-line nodes/annotations in pgfplot

It would be great if I could get the annotation in the graph depicted below on two lines, but I can't seem to figure it out. Presently, I have: \begin{tikzpicture} \begin{axis}[ ...
4
votes
0answers
1k views

How can I export pdf files with tikz/pgfplots? [closed]

I am writing a long thesis and would like to source out some graphics, so that I do not have to in every run I am compiling the tex file. Here is a simple example: \documentclass[a4paper]{scrreprt} ...
8
votes
2answers
1k views

Asymmetric “enlarge x limits” in pgfplots

I need to specify different "enlarge x limits" for the lower and upper axis extrema. Something like enlarge x limits={{value=0.2,upper}, {value=0.4,lower}} does not work however. Any ideas? Using xmin ...
15
votes
2answers
646 views

Improving TikZ user interface

I am looking to improve both on the concept as well as the user interface for code used to produce visual progress charts. The figure represents activities and progress for the construction of ...