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)

18
votes
3answers
673 views

Removing part of a symbol or image

Tidying up and posing a secondary question which was answered I'm trying to put together a visual aid of people numbers in a particular area, so I imagine using something like. Answered elsewhere ...
3
votes
1answer
627 views

Tikz mindmap example from manual gives error

Looking to produce a tikz mindmap which gives the error missing number treated as zero l.9 . Can anyone tell me what the problem is? \documentclass[10pt]{article} \usepackage{tikz} ...
4
votes
2answers
752 views

Text block near image

I'm creating a photo address book for the community. Near the photo there are 3 text blocks 1. Names, 2. Address/phone/email and 3. native place). I want each of this blocks to be at top, center and ...
3
votes
1answer
548 views

Gnuplot's tikz terminal produces uncompilable code

I would like to use the gnuplot's tikz terminal to create good looking graphs in pdf format. However, I have trouble compiling the resulting .tex file. My plot.gp file looks like: clear reset set ...
10
votes
2answers
647 views

Different colours for tikz node frame sides

I have a tabular with and use tikz to create a frame around it. Right now it looks like this: \documentclass{scrartcl} \usepackage{tikz} \begin{document} \tikz\node[draw=black,ultra ...
0
votes
1answer
835 views

RRC state machine with tikz

i would like to reproduce the RRC State Machine of the UMTS system, as the image in annex with Tikz. Can someone help me?
7
votes
2answers
676 views

Crop package in a document with TikZ graphics

My Problem Briefly I've created an address book for my son's kindergarten using XeLaTeX. I used TikZ for creating the headers and footers and some other graphics. The book is in DIN A6 format. The ...
27
votes
5answers
4k views

Custom “human” shape for tikz

A question with a large mea culpa. I've tried thinking about how I would add this shape and I've come up completely empty. Not strong enough with Tex to even give it a shot. I'm trying to put ...
4
votes
1answer
263 views

How to define macro for drawing axis labels in tikz picture?

I want to draw a macro for typeseting axis tick marks and labels. However, the following \newcommand\obrPopisX[2][below]{\foreach \x/\xtext in {#2} \draw[shift={(\x,0)}] (0pt,2pt) -- (0pt,-2pt) ...
11
votes
1answer
557 views

Misaligned month label in TikZ calendar

I'm putting together a multi-month calendar in TikZ and am seeing some awkward and undesired alignment in the month labels despite using the month label above centered style. In particular, the month ...
5
votes
1answer
368 views

creating particular graph using tikz

I used in the past tikz package to create graph as markov's chain or network nodes but now I would create for my thesis this graph: I don't know how to recreate in latex, using tikz package, that ...
9
votes
2answers
1k views

TikZ/PGF figures messed in DVI

I have a graph. This is my code. \documentclass[10pt]{article} \usepackage{pgf,tikz} \usetikzlibrary{arrows,patterns} \pagestyle{empty} \definecolor{ttqqcc}{rgb}{0.2,0,0.8} ...
18
votes
1answer
636 views

Setting TikZ curve control points and preserve area of closed curve

I would like to reproduce the shown periodic table, with more correct areas. http://www.meta-synthesis.com/webbook/35_pt/relative_abundance.jpg I would appreciate any ideas to how this can be ...
25
votes
3answers
6k views

Fancy arrows with TikZ

I would like to draw an arrow like this using TikZ: This is taken from Workflow diagram. I didn't succeed in reproducing the arrow; is somewhat beyond my (extremely limited) TikZ abilities. I don't ...
5
votes
1answer
455 views

How to fill area between curve defined by series of control points and x-axis

How to fill area between curve defined by series of control points and x-axis? MWE: \documentclass{article} \usepackage{tikz} \usetikzlibrary{decorations.markings} \usetikzlibrary{intersections} ...
1
vote
0answers
43 views

Save and load TikZ graphs [duplicate]

Possible Duplicate: Outsourcing TikZ code Pardon the question, I'm an undergrad using TikZ and LaTeX to write-up my final term report. Is there a way to write the code for a tikzpicture ...
3
votes
1answer
220 views

Circling/framing and referring to a bunch of nodes

The end goal: drawing paths between nodes like in the example there but the difference is the nodes are inside a picture here and in particular, the other node is a bunch of nodes in the same picture. ...
5
votes
1answer
350 views

Translate tikz arrow tips to pstricks

I have a document which contains tikz pictures and pstricks pictures which both contain lots of arrows. Usually I use tikz to do my own stuff but I got the pstricks pictures from another source and ...
5
votes
1answer
214 views

Using continuous curve without points

is it possible to use a curve without specific point to represent the data, the reason is that the data has too many points to display correctly. This is what I have (It looks all messed up) This is ...
4
votes
1answer
798 views

Move legend closer

I wish to move the legend for the left chart closer to the graph, and for the right graph, I wish to let the x-axis and y-axis appeared just like the left graph (so that there is some extra spaces to ...
8
votes
2answers
3k views

Using form-only patterns with variable: possible TikZ bug

While trying to use a variable pattern in TikZ with varying pattern color, I found that it did not seem to work. Here's a minimal working example: \documentclass[tikz]{standalone} ...
5
votes
0answers
433 views

Problem with rotation of pattern in tikz [closed]

Consider the following example. Why does the pattern not rotate correctly both for the tikz rotate and for the rotatebox approach. How can I fix it? \documentclass{article} \usepackage{tikz} ...
2
votes
1answer
1k views

Adjusting features of a pgf plot

I have the pgf plots below, where it doesn't appear well. I wish to put closer the "Solving Time(ms)" and y axis, put the font size smaller how should i do it? There is also a problem for ...
6
votes
1answer
966 views

“Dimension too large” for pgf plots

I have code below which complaining "Dimension too large", what is the problem? And I want to zoom in the 99.8-100 rather than using log scale for y axis, how should I do it? \documentclass{article} ...
1
vote
0answers
410 views

tikz foreach used for number in filename for addplot [closed]

I have quite a few tables generated which I want to plot in the same TikZ figure (using pgfplots). I am currently trying to use a foreach loop to plot them all, but it is only plotting the last ...
12
votes
3answers
10k views

How to create and include .tikz files in your manuscript?

Recently, I learnt about the matlab code matlab2tikz. The output of this code is a .tikz file that can be used, I guess, alongside standard figure packages with a simple line \input{mysphere.tikz} in ...
11
votes
1answer
2k views

Tikz tree and position of single leaf in binary tree

I am constructing a binary tree which looks as follows: \begin{tikzpicture} \node {root} child { node {left} } child { node {right} child { node {rightmost} } ...
10
votes
2answers
612 views

Why is picture and matrix not drawn at the same height

I'm trying to put a adjacency matrix beneath a graph using subfloat. The graph is drawn with tikz. No matter what I do, the matrix is put below the graph as shown here: The code is here: ...
1
vote
2answers
780 views

Adding vertical arrow to Tree Node using TikZ/PGF

I'm trying to illustrate a process of an algorithm over a Binary Search Tree, for which I need to make various figures where each time, different nodes are highlighted. I wish to highlight these ...
10
votes
1answer
298 views

Connecting nodes in every page

I would like to create a document where section titles are tikz nodes, and i would like to connect the nodes in every page with a path starting from the top righth corner of the page in every page. Is ...
6
votes
2answers
510 views

tikz nodes for subformulae (nested in nodes)

One of the features I really valued in pstricks (I have long changed to tikz and this is the only feature I am missing) is that I could just designate any fragment as a node and then connect that to ...
5
votes
1answer
2k views

Give tikz matrix columns all the same width and the rows all the same height (of the largest cell)

\documentclass{article} \usepackage{tikz} \usetikzlibrary{matrix} \begin{document} \begin{tikzpicture}[align=left, text ragged, transform shape] \matrix [matrix of math nodes, every ...
21
votes
2answers
18k views

How to plot data from a CSV file using tikz and csvsimple?

Here is a minimal example : \begin{filecontents*}{data.csv} a,b,c,d 1,4,5,1 2,3,1,5 3,5,6,1 4,1,4,9 5,3,4,7 \end{filecontents*} \documentclass{article} \usepackage[utf8]{inputenc} ...
12
votes
1answer
485 views

Variables in TikZ and other basic programming concepts

I'm discovering TikZ. I'm using it to draw a fairly complex automaton (something around 20 states). I did it the all manual way (ie by specifying all the states and all the connections). Though it was ...
4
votes
1answer
388 views

Error with TikZ's Fitting Library when using coordinates

I try to use the TikZ's Fitting Library with coordinates but it didn't compile. In the manual of TikZ we got This option must be given to a node path command. The coordinates or nodes should be a ...
3
votes
1answer
299 views

How to make hyperlinked tabs with specific colors?

I modified this project How to print section titles like tab-list? in the following way: usletter, 8 tabs on the edge of paper, odd pages only, text within the tab is set by the user (\TabText), ...
7
votes
2answers
302 views

How to keep hue from going beyond 300° in xcolor/pgf? (Doing math in pgfplotstable)

Ok, this is probably an incredibly trivial question for anyone who knows more about xcolor or pgf or TikZ or whatever really. I tried to use a hue scale for a heat map/color matrix with values ...
2
votes
2answers
270 views

caption in a tikz object

I created markov's chain using tikz package. Now I would add to to it caption and label but I got error.How can I add a caption and a label to a tikz object?
25
votes
1answer
3k views

Explanatory bubbles in beamer

In the MWE below I want to place an "explanatory bubble" (see picture inserted below) pointing to the word "Integer" in the 8th line (the bubble should superimpose the text, a transparency effect such ...
9
votes
1answer
1k views

Same node distance between levels in a tikz tree?

I want to draw a tree using tikz, but I want the vertical distance between nodes in successive levels to be the same, regardless of the size of the node. For example: \documentclass{article} ...
4
votes
2answers
690 views

How to put text at an arbitrary position around an image?

I want to get sth like: I have produced the vector images in Adobe Illustrator. I could do the labels (X_3, X_2,..) in there too, but after importing them in latex they wouldn't be consistent with ...
4
votes
2answers
366 views

Straight line junction with an arc

The following is a minimal working example for what I'm trying to achieve. I need to create a figure that looks like an U, that is, a capital U. However the junction between each of the straight lines ...
6
votes
1answer
354 views

How to declare variable sizes in tikz to let LaTeX decide how to fill the page

LaTeX sometimes does some tricks to fill lines to the end, to fill pages up to the bottom and to prevent pages only containing a single line of text. When I create some tikzpictures there are ...
3
votes
1answer
3k views

Mechnical drawing, Tikz, damper + spring + 2 masses

I have the following tikz code which I based on http://tex.stackexchange.com/a/13952/15360. Now I want to have the spring, the damper and the 3 arrows have labels. Like for example, F for force and k ...
23
votes
2answers
6k views

Fill the area determined by two pgfplots graphs

I need to fill the region determined by two (Gaussian) curves and the right red line (the region is brushed in green in the figure below). I also wonder what is the best way to draw vertical line ...
5
votes
1answer
2k views

How to specifiy xticks in log-axis mode (tikzpicture) to be written in non-exponential format?

I want to specify some xticks in a log-log plot (tikzpicture). This works fine, but they are always printed in exponential format (with basis 10). In general this is fine, but for one plot I would ...
8
votes
2answers
4k views

Uncover segments of a TikZ path in Beamer

I have a question about uncovering segments of a TikZ path in Beamer? As a simple example, consider the following path made up of a horizontal and a vertical segment. \begin{tikzpicture} ...
12
votes
2answers
16k views

Tikz: Draw simple shortened curved line between two coordinates in tikz

I'm creating an overlay to a picture. The picture has several objects and I want to draw arrows between them. I only have the coordinates and not the sizes so I must offset the arrows as not to ...
7
votes
1answer
537 views

Wrong colum sep between first two columns of a TikZ matrix

I don't know why but next code shows a different column sep between columns 1 and 2 from the other ones. This is what I get: I'm using column sep=-\pgflinewidth so I hopped to see just one thick ...
10
votes
1answer
195 views

TikZ: Adjust two words among each other by one character

I would like to create a logo in LaTeX. Here I need to adjust two words relative to each other by a chosen letter. Here is an example, where I'd like to get the two red characters exact among the ...