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)

9
votes
5answers
2k views

Filling angles with arcs in TikZ

Using TikZ, how can I fill in an angle of a given polygon with a colored arc? For example, given the triangle \filldraw[fill=yellow, draw=black] (10,0) -- (-2,9) -- (4,-3) -- (10,0); I'd like a blue ...
11
votes
1answer
10k views

Legend in tikzpicture

I am looking for a way to create a legend in a regular tikzpicture. I found this Using a pgfplots-style legend in a plain-old tikzpicture but I don't know how to put the legend at the wanted ...
5
votes
1answer
580 views

Calculate and draw multiplying, dividing or adding of two plots automatically

My question is related to Calculate and draw difference of two plots automatically, if in that site asking how to make a-b, I am asking you how to make plots as result of a/b and a*b and if you dont ...
12
votes
4answers
3k views

How can I generate just pgf/TikZ images, not placed a whole page or slide?

I'd like to generate only a pgf/TikZ image with LaTeX, but so far I just managed to insert it into a document. The problem is that so far I can only get a page/a beamer slide rather than just the ...
3
votes
2answers
1k views

Using node shapes or self made tikzpicture as image in legend

I am using the solutions of Using a pgfplots-style legend in a plain-old tikzpicture and Legend in tikzpicture to create a legend in a tikzpicture. In this legend I need a cylinder as image. I ...
0
votes
0answers
58 views

Tikz graphics not centered [duplicate]

Possible Duplicate: Center figure that is wider than \textwidth I have the problem that as soon as graphics created by tikz get a bit wider, they are not centered on the page anymore. E.g., ...
37
votes
3answers
18k views

3D bodies in TikZ

Is there like a library that has default geometric figures like the ones shown below. Am not acquainted yet with 3D diagrams in TikZ.
2
votes
3answers
569 views

How to frame a pdf image with a coordinate system (Tikz?)

I would like to know whether it is possible to put a frame around an included image (via \includegraphics). I would like to add a coordinate system to an image.
16
votes
2answers
2k views

Vertically-centering multiple TikZ pictures, preserving baseline height

I've often need to write out equations between pictures, which are drawn using TikZ. However, to display them properly, I have two requirements: any common features must be on the same horizontal ...
6
votes
1answer
1k views

label curve and/or contour name created with pgfplot via gnuplot

I will want to name different contour as one can see it on topographic card. How to do that? I want label on different curve with the parameter that distinguish the curves. I have created 10+10 curves ...
51
votes
3answers
22k views

What is the correct way to center a \tikzpicture? [duplicate]

Possible Duplicate: Should I use center or centering for figures and tables? What is the correct way to cause a \tikzpicture to be centered? By default it appears to be aligned with the ...
7
votes
1answer
986 views

Calculate and draw difference of two plots automatically

I'm trying to automatically generate a plot, which visualizes the difference of two other plots. The input source is a single(!) file. The data is filtered by one column with /tr/rowfilter. Here is an ...
9
votes
2answers
815 views

Why are bent arrows with arrow tips not symmetric in TikZ?

They say a picture says more than a thousand words. Is there a good reason why TikZ draws the arrows as skewed as in the left image? Is there any easy way to get good-looking, symmetric arrows as in ...
4
votes
1answer
2k views

Can I draw figure 3 y axis using pgfplot?

Can I draw figure 3 y axis using pgfplot? That figure has 3 y axis. 1 y axis in the left, 2 y axis in right position. I am sorry, I could not attach a graph for that. \documentclass{article} ...
5
votes
2answers
562 views

Fine-tuning placement of arrows inside TikZ nodes

I would like to have a TikZ node with a few lines of text inside. The node should be a rectangle, wider than the text, and the text should be aligned to the left. After each line of text I'd like to ...
4
votes
1answer
508 views

Lengths and for-loops

It seems that lengths are not updated in for loops. Compiling the code below: \documentclass{article} \usepackage{tikz} \newlength{\test} \newcommand{\inc}{\addtolength{\test}{1cm}} ...
16
votes
1answer
3k views

Add a legend title to the legend box with pgfplots?

I am using the awesome pgfplots package to draw some plots. I usually use \addlegendentry and get a nice default legend box. There are some options for legend box placement and layout (e.g. number of ...
13
votes
2answers
956 views

Text placed in pespective on 3D object

I am experimenting with Tikz to include graphics in my LaTeX documents. I have made a few 2D and 3D diagrams. One of the diagrams contains a 3D pyramid. I want to place text on the front and side of ...
11
votes
3answers
2k views

Quotes with speech balloons

I looking for a way to do that with TikZ : But I have no idea how to do this quote style. \begin{sballoonquote}{\linewidth}{r}{color}{Donald Knuth} An algorithm must be seen to be believed. ...
12
votes
2answers
4k views

Drawing a filled-in arc using TikZ

I am trying to draw the area formed by an arc of a circle (specifially 3/4 of a circle, that is 0 <= \theta <= 3\pi/2) with a radius of 4 using TikZ. I also need the interior of that arc filled ...
5
votes
1answer
644 views

Tikzpicture from LaTeX document does not compile in Beamer [duplicate]

Possible Duplicate: Unknown error using tikz matrix of nodes in beamer I have the following tikzpicture environment from my TeX document but I cannot make it work in Beamer. I get the ...
2
votes
1answer
919 views

Shadings in head

I am currently trying to code in beamer the following image. So far I got the three beamercolorbox but I can't get the shaded background. Here is the aspect I want: ...
22
votes
3answers
1k views

TikZ Nodes not exactly centered

In my solution to draw a plot with point, it was pointed out that the nodes containing \textbullet and $\circ$ were not placed exactly centered at the specified point. I found this hard to believe ...
3
votes
2answers
1k views

place several figure into one -tikz

I draw several trees and now I want to place them in a figure ( side by side or one below the other ) \documentclass{report} \usepackage{tikz} \usetikzlibrary{fit,shapes} \begin{document} ...
2
votes
1answer
940 views

How to draw arcs linking two points in TikZ?

I am a beginner in LaTeX, tentatively using it for industrial documents. I am having difficulties with drawing arcs in TikZ. In the MWE, I am trying a routine that would draw a series of coding ...
2
votes
0answers
95 views

Inconsistent shading [duplicate]

Possible Duplicate: How can I avoid compiling twice? I am shading first page using following code. \begin{tikzpicture}[remember picture,overlay] \shade[left color=white,right ...
6
votes
2answers
611 views

How do you draw this prism in tikz/pstricks

The numbers are in Persian (side SB=6 and angle SBA=60 degrees).
3
votes
1answer
1k views

3D plots with pgfplots

I am trying to plot 3D plots with pgfplots. I have started with an example from documentation: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{tikz} \usepackage{pgfplots} % ...
8
votes
2answers
1k views

3d Image using tikz?

I have attempted to draw a sphere between two planes that are defined as follows. a:= 2x - 2y + z + 2 = 0 and b:= 4x - 4y + 2z - 4 = 0 I know that the line is perpendicular to the two planes are ...
15
votes
1answer
952 views

How to typeset a prefix tree (aka trie)

I am currently trying to typeset a prefix tree (also called a trie). I can make a tree just fine with TiKZ, but I find myself unable to make the prefix tree nodes draw acceptably. I have attached a ...
15
votes
2answers
2k views

How to make tikz multipart node parts have uniform size?

When making boxed nodes in TikZ, a common requirement is that the nodes be of equal size. Because TikZ automatically adjusts the size of nodes to fit the contents of the node, this is usually done by ...
4
votes
1answer
135 views

conflict tkz-euclide and nag?

Am I doing something wrong and is this meant to happen? %\documentclass{minimal} edit: should not be used \documentclass{article} \usepackage{tkz-euclide} \usetkzobj{all} ...
14
votes
4answers
866 views

Why are node names inside \begin{scope} still visible outside?

The following example draws three rectangles, each divided in two parts (they're Lisp cons cells). It works fine, but something doesn't seem right: I have used \begin{scope} inside the \cons macro, ...
1
vote
0answers
63 views

problems with tikz and beamer and ampersands [duplicate]

Possible Duplicate: Unknown error using tikz matrix of nodes in beamer I'm trying to write a beamer document with tikz math diagrams. This code how gives me a " Single ampersand used with ...
5
votes
2answers
962 views

TikZ picture arrow overlapping

I want something like this: but the arrows get overlapped in TikZ! I have tried the following code, but is there a better way than this? \documentclass{article} \usepackage{color} ...
14
votes
3answers
9k views

TikZ: Using Loop to Draw Grid of Nodes

I am trying to draw an Ising model (in my case, a grid of nodes with an undirected edge between adjacent nodes on the same row or column) using TikZ. I have the grid of nodes working nicely using a ...
3
votes
2answers
708 views

using grid from Tikz in Texmaker

I use Tikz for creating figures. But there is a problem. If I use for example \begin{tikzpicture} \draw[->] (0,0)--(10,0); \draw[->] (0,0)--(0,10); \draw[help lines] (-0.1,-0.1) grid (9.9,9.9); ...
7
votes
2answers
240 views

Creating vector logos for embedding in other tex documents

I'm interested in drawing a logo with Tikz to embed either as a PDF or as a code snippet in other Tex documents. In order to do this, I'd like to draw the logo in a small PDF file, size 1 inch by 1 ...
6
votes
1answer
1k views

Using circuitikz, how do I make a ground node and link to it from several others?

I'd like to get two or three nodes linking to a ground symbol (this is not an electric circuit), as in this attempt: \documentclass{article} \usepackage{tikz} \usetikzlibrary{positioning} ...
2
votes
1answer
489 views

LaTeX is mishandling TikZ characters in Venn diagrams

I am running TikZ (pgf_210.tds), TeX 3.141592, and Fedora 14. I am working on Venn diagrams. The examples all do the right art work, but draw the set identification as in \draw \firstcircle ...
4
votes
1answer
625 views

defining a fading-style directly in the fill command

In the following MWE i define a fading monfading with the command \tikzfading which is then used in the command \fill. \documentclass{article} \usepackage{tikz} \usetikzlibrary{patterns,fadings} ...
7
votes
2answers
2k views

How to label an image inside tikz

I want to label the images img1 and img2.. can i do that inside my \node? If yes, how?? \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture} \path (0,0) node(a) ...
4
votes
1answer
387 views

\nullfont in mathmode

I made some experiments with TikZ like \documentclass{minimal} \usepackage{tikz} \begin{document} \tikz \color{blue} $(a+b)^n$ $n \choose r$; % \tikz Test ; gives nothing \end{document} We get a ...
5
votes
1answer
920 views

Vertical spacing problem related to the mdframed environment

I use the mdframed package with option style=1, which means that TikZ is responsible for drawing frames: \documentclass{article} \usepackage[style=1]{mdframed} \begin{document} \noindent Text ...
4
votes
1answer
3k views

How to get the pgfplots external tutorial to work in TeXnicCenter?

In 7.1.1 of the PGFPLOTS library the following example of externalization is given. Whatever I try, I cannot get it to work in TeXniccenter, running MiKTeX 2.8. \documentclass{article} ...
7
votes
2answers
2k views

TiKZ-picture fitted to page edge

Using TiKZ, I'm trying to create an image that fits the margin of odd-sided pages (a water stamp of sort) for an A6 booklet. My idea was at first to create an image that is exactly the same size as an ...
2
votes
2answers
2k views

how to set the canvas and font size in TikZ?

I am using TikZ to draw standalone pictures using the PreviewEnvironment (which cuts the PDF size around the picture). I then import the PDF figure inside LaTeX using \includegraphics. Let say my ...
10
votes
2answers
3k views

Rotated paraboloid/square root in pgf/TikZ

I want to redraw the following graphic in pgf/TikZ. I struggle to draw the rotated paraboloid/the root function. I come this far: \documentclass{minimal} \usepackage{tikz} \begin{document} ...
5
votes
0answers
2k views

pgfplots legend: how can I set the column/row order of legend entries? [closed]

By default, pgfplots seems to add legend entries row-wise. However, I've plot where I'd like a two-column legend (16 curves) and the first 8 entries to be added to the first column before starting ...
6
votes
1answer
6k views

Drawing arrows in beamer

I want to add the arrows as shown in the picture. I an new to latex. Can someone tell the code? i am using beamer class It was made in powerpoint.