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

Multi axis plot problem with appearance

I have a problem with the appearance of a mutli axis plot... Currently I have the following: However I do not want the arrow in the right y-axis but from the documentation I read that the * in the ...
4
votes
1answer
800 views

Matrix of nodes over multiple columns in tikz

I want to create a diagram with tikz in which entries overdraw more than one column. I solved this problem already with the fit package. But now there is a problem with the look of the nodes within ...
10
votes
2answers
839 views

A Tunisian flag on Tikz using a macro “m-grams”

I tried to represent the flag of my country. I typed this code. But I believe that the position of stars, circles, ... is not so respected. In addition I have a left margin "white band" I want to ...
8
votes
2answers
1k views

Text tree using tikz-qtree is too wide, don't know how to break lines and make the tree compact

I want to make a tree like this one: It doesn't need to be exactly the same, but I want to translate the text, so I need to rebuild it, I'd also want to add a node, but that's easy. My first try: ...
9
votes
1answer
389 views

Placing two nodes by relative positioning in TikZ

I want to draw something like this: So I did the following: \begin{tikzpicture} \node[draw] (node1) {Long long long box}; \node[draw, below left=of node1] {short} edge[->] (node1); \node[draw, ...
7
votes
1answer
308 views

TikZ arrows for displaying sorting algorithms

I would like to add some arrows like in the following picture from the code just below. Output excpected Code \documentclass{article} \usepackage{tikz} \usepackage{xstring} \tikzset{ ...
2
votes
3answers
413 views

Remove indentation from a colored box made with tikz

I have a document which looks like this: Code is like this: \documentclass[10pt]{memoir} \usepackage{lipsum} \usepackage{tikz} \usetikzlibrary{shapes,backgrounds,patterns} \tikzstyle{box} = ...
23
votes
1answer
898 views

Help with the design of an eye in TikZ

In my attempt to create an eye icon to illustrate something in my notes, I came up with the following: \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture}[scale=0.25] ...
34
votes
1answer
1k views

Elliptic Moebius map on sphere using Tikz

I'm trying to adapt this example from texample to produce a sphere with arrows indicating the effect of a elliptic Moebius map. In fact, I'm trying to redraw the spheres below, but for a while I'm ...
11
votes
2answers
195 views

Can I rotate a marker with a scatter source?

I'd like to be able to use pgfplots to show a skier going down a ski slope. Here is what I have done so far. \documentclass{standalone} \usepackage{pgfplots} \pgfplotsset{compat=1.7} \makeatletter ...
6
votes
1answer
404 views

Displaying genetic algorithms on data

It is useful for explaining how a genetic algorithms works to display things like in the two following pictures. In those pictures, it could be useful to have two more features. Display dotted ...
5
votes
1answer
403 views

How do I draw a projection of specified length, parallel to another line, between two sides of a triangle in TikZ?

I am trying to draw something called an "Ossanna circle" in PGF. Here is my MWE. Forgive its size -- you need all the intermediate points to get the points that we need for this question: ...
4
votes
1answer
155 views

beamer: grouping elements together

I am using beamer for creating my presentation. Sometime I create elementary objects (like geometrical shapes and arrows) by using tikzpicture and I place them in the slide by using textblock. I ...
6
votes
1answer
458 views

Typesetting classical data structures in tikz

During this discussion an example image generated with TikZ was given by Christian R. but no code was provided: It would be great to have the code snippet that implements it, because I think it has ...
12
votes
2answers
2k views

TikZ: Defining and reusing complex objects?

(How) Is it possible to save some complex TikZ objects for reusing them (in the same and in different pictures)? I know it's possible to define own styles, but I'm not sure if it's the right thing ...
4
votes
1answer
255 views

How to linebreak when using \rotatebox inside a tikz node?

I would like to know how I can get a linebreak inside a rotated node using tikz. I tried to use the align=center option together with \rotatebox{}{}, but i get an error. Here is an example of a ...
9
votes
1answer
289 views

Macros and pgfmath within put in picture environment

I am trying to put some TikZ pictures into a Beamer slide to enhance readability. The position of the TikZ pictures on the slide will depend on how much text comes before. Since there will be many ...
8
votes
1answer
151 views

TikZ doesn't fill when node coordinates are used

Can someone please explain me why the following code doesn't result in a fill? And why, sometimes, I get such "very thin lines" artifact (that's visibile in my picture)? \begin{tikzpicture} \node ...
11
votes
3answers
2k views

Shifting a line joining nodes in TikZ

Consider these squared nodes: \begin{tikzpicture} \node [draw] (A) at (0,0) {demo text}; \node [draw] (B) at (0,-2) {demo text}; \end{tikzpicture} I'd like to link them with two offset lines. If A ...
9
votes
1answer
305 views

Sum up rows from different data files

I've a certain amount of inputfiles (.txt) for the final definition of the y-data of my axis environment. The x-data come from a different file. The goal is to sum up each row of the input files ...
8
votes
2answers
512 views

TikZ - Vehicle Suspension

I am new to TikZ (still learning), so I am not able to create complex tikzpictures (only simple shapes), but I was wondering if someone can give me tips/links/examples about how to create an vehicle ...
11
votes
2answers
452 views

Visualize data on a variable-radius graph/network

I am trying to visualize the output from a simulation model I have been working with. The simulation finds the steady-state solution to a system of differential equations on a variable-radius (and ...
5
votes
2answers
779 views

TikZ: node at \item to use in [overlay]

In my beamer presentation I would like to reference an item by pointing an arrow on it's number. However, I don't know how to make \item a TikZ node. Otherwise it works well. \documentclass{beamer} ...
4
votes
0answers
51 views

Vector image (pdf) in TikZ node alters appearance [duplicate]

Possible Duplicate: Tikz changes included graphics I include my pdf vector plots (created with matplotlib) in nodes belonging to a TikZ matrix for positioning (e.g. see TikZ: Image Matrix - ...
6
votes
3answers
574 views

How can I get access to the size parameters of a TikZ node?

The following is a refined form of the problem that I posted more than 18 hours ago. I am new to Tikz. However, even with the little knowledge I have of TikZ, I do appreciate its superiority over the ...
9
votes
1answer
351 views

Cutting out shape to reveal what's behind

The following MWE displays the desired output, but the question is whether (and how) the same result can be achieved by somehow redefining lines (1) and (2) to "cut out" the inner square, so that line ...
26
votes
2answers
2k views

Making a Calendar for TUG

This question is triggered by a post from Peter Wilson in comp.text.tex`. Peter wrote: TUG members produced a calendar for 2012 and, if I remember correctly, for some previous years as well. I really ...
7
votes
2answers
324 views

Personalisation of a Sudoku grid

Someone can give me some hints so as to achieve the two following improvements ? EASY: I would like to display the number position of each column and row. This needs to display numbers just at the ...
8
votes
2answers
967 views

Tree in tikz, with triangles standing for sub-trees

I need to draw a tree in tikz similar to this one: What I CAN'T DO is drawing the dashed triangle leaves (standing for unspecified subtrees). I think I can manage to draw the legend by myself, and ...
5
votes
2answers
3k views

How to save a figure produced by tikz save/export as JPG/PNG file

I have created various plots using pgfplots package for my thesis. Now I would export them in jpg or png format. Does it exist a way to achieve this porpouse?
4
votes
1answer
113 views

Why does the following not compile?

The following compiles well in TeXShop on one of my Mac computer (an old one), but produces error on another one. I must have forgot to install something on the new computer, but cannot figure out ...
2
votes
1answer
270 views

TikZ - Sudoku, circle and connect with lines some cells

In the following code, I would like to have the possibility to draw some circles and lines on the grids from some cell to others like in the following picture. This is to illustrate advanced "chain" ...
2
votes
1answer
527 views

TikZ - Changing the “z-index” of backgrounds

In the following code, I would like to place the backgrounds under the numbers and not the contrary as it is the case actually. Screenshot Code \documentclass{article} \usepackage{tikz} ...
8
votes
1answer
1k views

Using let command in TikZ but want to have reference to new point later as well

I'm beginning to use TikZ and am having some issues understanding the proper way to reference my data points without specifying the precise absolute positions for all of them. An example of the simple ...
1
vote
0answers
207 views

Conflict between TikZ package and memoir package - all packages updated [closed]

I am getting an error when I run memoir with the tikz package. I updated my TexLive distribution to the 2012 version so there should be no conflicting version problems. Memoir and tikz are both in ...
1
vote
1answer
309 views

Drawing a partitioned set with TikZ

I'd like to create a graphic of a set partitioned into subsets of various sizes/shapes/colors. (I'm trying to show a set partitioned by an equivalence relation into disjoint subsets, i.e., the ...
9
votes
1answer
278 views

Creating tikz anchors based on pgfkey value

I'm trying to create several anchors equally spaced on the edge of my shape. The way I've tried to do this is to pass a key value in the node that would then define the anchors. The following code is ...
3
votes
1answer
1k views

pgfplot contour plot with both x-axes and y-axes ticks labels

Here is an MWE for a contour plot. \documentclass{standalone} \usepackage{pgfplots} \pgfplotsset{compat = 1.7} \begin{document} \begin{tikzpicture} \begin{axis}[ % title = {$x ...
5
votes
3answers
195 views

Vertically align multiple labels

I have a sketch with two aligned lines. These lines have a label each. When you look on my example, you will see, that the labels "Top" and "Inlet" do not share the same baseline. Both labels are ...
1
vote
0answers
213 views

How to extract the \includegraphics command in tikzscale package? [closed]

I just started using the tikzscale package for loading and correctly resizing tikz pictures. The problem is that the package replaces the original \includegraphics command with its own procedures to ...
8
votes
3answers
980 views

Arrows from cloud cross the outer line

I'm using TikZ to draw a cloud. Also I'm drawing arrows from the cloud to some nodes. But the startpoints of the arrows are in or outside the cloud but not exactly on the outer line. I think the ...
23
votes
4answers
11k views

TikZ: difference between \node and \coordinate?

What is the difference between \node and \coordinate in TikZ? Exchanging them does no visual effect in my (to be honest: still simple) pictures. When to use what?
2
votes
0answers
27 views

Problem printing some symbols accurately from a pgf plot table [duplicate]

Possible Duplicate: Why do the less than symbol (<) and the greater than symbol (>) appear wrong as upside down exclamation or question mark? I'm trying to print symbols from my pgf ...
4
votes
1answer
679 views

Problem retrieving text from pgf plot table

I'm trying to include and fetch text from a pgf plot table without succeeding. When using just numbers, everything goes smoothly: \documentclass{standalone} \usepackage{pgfplots} ...
12
votes
2answers
1k views

What causes the “\@next does not match its definition” error?

I have the following (minimal) document class: \NeedsTeXFormat{LaTeX2e} \ProvidesClass{minimal-article}[2013/01/11 Test class, extends article] ...
10
votes
2answers
6k views

How to save a figure produced by tikz save/export as EPS file

I use MiKTeX 2.9 and tikz package and use TeXworks to make simple figures, these are saved in pdf file by pdfLaTeX. I wish to have them as EPS file. I read here: Export eps figures from TikZ I use a ...
7
votes
2answers
180 views

Seeking improvement on a poor solution---for descendant charts

I've a solution to a problem that screams out for improvement. I'm working on a second edition of a family history (mine) that has a great number of descendant charts. I've cobbled together a way of ...
12
votes
3answers
622 views

Conflict between TikZ and university thesis class file

When compiling a document using my university's thesis class file and the TikZ package I receive an error message (missing number, treated as zero). Would someone know how I can solve this problem? ...
7
votes
1answer
180 views

Using tikzpictures as symbols in glossaries

In a text, I'm using a tikzpicture as a math symbol. I'd like to reference this symbol in a glossary. It seems to me that makeindex doesn't know how to draw the picture. Here's an example. ...
12
votes
1answer
5k views

Change the appearance of grids in pgfplots

I am asking if there is a command in the pgfplots package that changes the appearance of the grid in terms of kind of the lines. What I mean is how to change the kind of lines. I have read the ...