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)

3
votes
1answer
926 views

Referring to tikz matrix coordinates using pgf mathematics operations

I would like to use pgf's math operations to refer to matrix coodinates in tikz. This works for the second coordinate, but apparently miraculously: \documentclass{article} \usepackage{tikz} ...
4
votes
1answer
861 views

Multiple equation numbers for a tikz picture

I am attempting to draw two related exact sequences in the same tikz picture, for alignment purposes. I currently have wrapped the tikzpicture environment in an equation environment, so that both ...
19
votes
2answers
2k views

Looking for TikZ flourishes and vignettes

I'm a sucker for the fancy section markers (commonly called vignettes or ornaments). For an example, look at the beautiful symbol beneath the {TeX} logo on this site, or this flourish below ...
5
votes
2answers
1k views

How can I nest coordinate calculations in TikZ?

Why does this not work? I'm not using LaTeX and TikZ very much; I don't see it. \begin{tikzpicture} \coordinate (Zero) at (0,0); \coordinate[label=below:cell a] (vertexA) at (0, 10); ...
12
votes
1answer
2k views

tikzexternalize only (or not) for flagged graphics

I have a couple of pictures in my work so I started to build them extern in order to increase build speed. But I don't want to externalize all of them, I want a few little pictures to be build ...
20
votes
1answer
4k views

pgfplots: prevent single plot from being listed in legend

In order to fill the area between two complex curves I use tables and the vertcat command (see Fill between two curves in pgfplots.). Now I don't want the plotted area to appear in my legend, just ...
10
votes
2answers
2k views

tikz/pgfplots advanced z-order axis/grid

Is it possible to have both the axis on top and the grid on the very bottom (or somewhere in between some other planes/lines/...) of a plot? Example figure with axis on top=true but the grid on top ...
7
votes
1answer
2k views

tikz spy library with pgfplots: opacity and grid

When I use the tikz.spy library in order to magnify a part of my pgfplots plot with the use of grids, there are both the original grid and the magnified grid in the magnified area. screenshot: . a ...
4
votes
2answers
502 views

Problem in visualizing tabular with TikZ

I'm quite new to LaTeX (I've used it at university for some basic formulas and ready to use templates) and I'm getting again into it for graphics stuffs: I love its clearness. I'm trying to make a ...
3
votes
3answers
2k views

How to plot a third variable (z) on pgfplot as a color gradient

I'm trying to use pgfplots to create a 2D plot with 3 variables, the third one being plotted as a color gradient. \begin{tikzpicture}[scale=0.75] \begin{axis}[xlabel=Selta,ylabel={Hitastig ...
1
vote
0answers
162 views

Problem handling coordinates in tikzpictures [closed]

I'm trying to draw some points with TikZ. I'm using this code: \begin{tikzpicture}[scale=0.5] \draw (4.0,2.4492) -- (4.8984,-4.0); \draw (4.0,2.4492) -- (-4.0,-7.347); \draw (4.0,2.4492) -- ...
6
votes
2answers
2k views

TikZ Document Navigation (\label and \ref commands)

I am currently a university student studying engineering. I have been a user of LaTeX for a few years now and cannot work out how to solve the following issue. In Australia, there are standards which ...
28
votes
2answers
4k views

Stroke with variable thickness

Can you create lines with variable thickness (line width) in Tikz?
4
votes
3answers
589 views

Text without hyphenation with Tikz

How do I get the text does not break the line? I have \begin{tikzpicture} \node[align=left,text width=3cm] {Contemplando a contemporaneidade}; \end{tikzpicture} but i need
6
votes
1answer
1k views

grouping options problem in pgfplots.groupplots

i have a problem with the grouping options of pgfplots.groupplots. besides the labels i have also units defined. with the option xlabels at=edge bottom only the label but not the unit is moved to the ...
12
votes
2answers
1k views

Is there the easiest way to toggle (show/hide) navigational grids in TikZ?

In PSTricks, we can toggle the grids easily by showgrid=[false/true]. How to do it in TikZ? Doing as follows is tedious. \documentclass{minimal} \usepackage{tikz} \begin{document} \tikzpicture ...
3
votes
2answers
667 views

What is the TikZ equivalent for \psline[origin={1,2}](3;45) ?

\psline[origin={1,2}](3;45) draws a line 3 units long at an angle of 45 degrees starting from the point (1,2). What is the TikZ equivalent for \psline[origin={1,2}](3;45) ?
1
vote
2answers
393 views

Upgrading PGF without tex-package manager

I don't use MiKTeX or any other package managers. I usually install new styles/libraries by adding the .sty file to the same directory as the .tex file and compile using pdflatex. I figured out I ...
6
votes
1answer
2k views

Package pgf Warning: Your graphic driver pgfsys-xetex.def does not support patterns.

Package pgf Warning: Your graphic driver pgfsys-xetex.def does not support patterns. .tex: \documentclass[10pt]{article}‎ ‎%\usepackage{pgfplots}‎‎ \usepackage{‎tikz‎‎}‎‎ ...
3
votes
4answers
766 views

Is there a package in either PSTricks or Tikz to draw the following diagram?

I took the following figure from JSON official site. Is there a package to do it easily? Anyway, what is the name of this diagram?
2
votes
2answers
856 views

pgfplots: setlength inside foreach

I have the following code, where the size of the cube marks is set to \x inside a foreach loop: \begin{tikzpicture} \begin{axis}[axis lines=none] \newlength{\mylen} \foreach \x in {1,2,...,10} ...
8
votes
4answers
1k views

How can I set the background color of the rows and columns of a matrix node in Tikz?

I have a matrix where some cells have nodes while others don't, with rows and columns of varying size depending on the biggest nodes in them. In this matrix, I would like to have the background of ...
6
votes
2answers
1k views

Looking for a 'high level' Graphics editor for Mac. Then convert diagram to TiKZ code.

I am trying to make a large assortment of VERY basic graphs for including in my documents. (squares with the sides labeled, circles, etc...). It seems the TiKZ package is what I want to use. Does ...
3
votes
1answer
3k views

Attempt to export EPS figures from TikZ fails

I'm attempting to output EPS figures when using MikTeX 2.8 under Windows XP, and am following Export eps figures from TikZ. My problem is that I can't get the bare example given there to run. The ...
8
votes
1answer
1k views

Extract the x/y part from a coordinate in pgfplots

How can I extract only the x or y part of a predefined coordinate? For instance, let's say we have \coordinate (A) at (1,2); And I want to use the x part of (A) like this \draw (x of A,3)--(0,0);
11
votes
1answer
4k views

Beamer \pause with TikZ

Is there a way to introduce parts of a tikzpicture with \pause or similar in Beamer without resorting to incrementally redrawing the tikzpicture over multiple frames? Intercalating TikZ draw commands ...
13
votes
3answers
2k views

Custom calendar using TikZ

I am trying to build a custom calendar using some features of TikZ. My starting point was a piece of code available in a comment of texample.net. I would like to know if it is possible to mark some ...
43
votes
3answers
12k views

Drawing Mechanical Systems in LaTeX

I really like CircuiTikZ for drawing diagrams in my LaTeX documents. However I mostly draw mechanical and not electronic systems, which is why I'm looking for some similar way to draw mechanical ...
20
votes
3answers
4k views

Molecular orbital diagrams in LaTeX?

This question led to a new package: modiagram I'm wondering if anyone has seen a package for drawing (qualitative) molecular orbital splitting diagrams in LaTeX? Or if there exist any packages ...
3
votes
1answer
1k views

Draw multiple tikz pictures in line

I want to draw a few pictures in line using tikz. I added a few pictures for your understanding. The first pictures is fine, but in the second is some kind of line break which I don't want. The ...
12
votes
2answers
1k views

Missing TikZ grid borders

As in here, the code \draw[step=0.5cm,color=gray] (-1,-1) grid (1,1); gives me a nice finite 4x4 grid. But when I choose a different starting point, like \draw[step=0.5cm,color=gray] (2,2) grid ...
5
votes
1answer
821 views

Stripey balls in tikz

I would like to insert a stripey ball in TikZ, i.e. a filled-in circle that looks like this one. Would you know a clever solution for doing that?
8
votes
1answer
2k views

Drawing paths/nodes along a path in Tikz

I would like to draw a collection of nodes / paths. However, I'm too lazy to position them manually, I would like to specify their position along a given path. How can I do that? Here a picture of ...
1
vote
1answer
1k views

\pgfresetboundingbox is undefined control sequence?

I'm sure this question has a simple answer that I'm missing: I'm trying to use pgfplots to put two graphs right next to each other with no space in between. I thought I could do this by using the ...
17
votes
3answers
5k views

How can I align two nodes to the left in TikZ?

I have two unaligned nodes |AAAAAAA| |B| and I want to have the node with the B aligned to the left of the node with AAAs and below it |AAAAAAA| |B| How can this be done?
3
votes
2answers
1k views

Better alternative to Circuitikz?

I'm a bit confused about all possible package to draw electrical circuits. I'm new to drawing these diagrams (although I'm well known to TikZ). Is there a better package than circuitikz? I found it's ...
4
votes
1answer
3k views

Styling the text placed on \path [line] using \tikzstyle.

I'm new to LaTeX and I'm trying to work out how I can configure TikZ to position the text ON the connecting lines (rather than beside it) in this flowchart and then give that text a filled white ...
39
votes
2answers
36k views

How to change the size of nodes?

How is it possible to change the size of a node, for example: \begin{tikzpicture} \draw node[fill,circle]{} (0,0);% \end{tikzpicture} How to make the circle smaller or larger?
9
votes
1answer
1k views

Persistent random steps decorations during beamer \uncover

I'm using a random steps decoration with a path that appears through several uncover transitions. Currently the decoration is redrawn in each instance of the slide. How can I change this behavior. ...
5
votes
1answer
2k views

Label sides of rectangles and triangles

What is the easiest way to label the sides of rectangles and triangles in TikZ?
15
votes
2answers
2k views

Which package can easily write a graph, as an arbitrary curve or area, just for indication

Which package can easily write a graph, as an arbitrary curve or area, just for indication? The circle and ellipse don't be considered for their particular shape. TIKZ's Bézier curve is too ...
5
votes
1answer
796 views

Apply a second decoration to a tikz path

I'm trying to decorate a snake path, but I don't get any output using a postaction. Here's the example code. \begin{tikzpicture} \draw [snake=expanding waves, segment amplitude = 1.5cm, segment ...
14
votes
2answers
550 views

Error with cleveref + enumerate + tikz-qtree

I get an error in my document in the following circumstance: Using the cleveref package And the tikz-qtree package (for drawing syntax trees) Inside an enumerate environment Here's a MWE: ...
11
votes
2answers
7k views

Labeling rectangle above rectangle.

This is perhaps a simple question, but after reading manual several times, I still don't have the answer. My common situation is that I draw boxes and I want label above/below the box. If I use ...
17
votes
1answer
5k views

TikZ to non-PDF

How do I tell TikZ to output to a standalone image file? Like JPG, PNG, etc? Yes, there is a way to output it to PDF, then do a snapshot. But this is for mathematical-visual comparisons, and I need ...
4
votes
2answers
9k views

Subfigures with TikZ on the same line?

I am trying to get my subfigures on the same line. Right now I successfully use the subfigure and TikZ packages to have a Fig. 1 (a) and Fig 1. (b). However, no matter what I have tried they are ...
1
vote
0answers
770 views

How do I add a soft/fuzzy/gradient drop shadow to a node? [duplicate]

Possible Duplicate: Faded drop-shadow using tikz-based rounded rectangle? I would like to add a soft drop shadow to this node (holding text): ...
8
votes
3answers
430 views

Why doesn't ellipse (\p and 1) work?

\documentclass{article} \usepackage{tikz} \begin{document} % DOES NOT WORK %\tikz \foreach \p in {1,2,...,3} \draw (\p,0) ellipse (\p and 1); %WORKS \tikz \foreach \p in {1,2,...,3} \draw (\p,0) ...
29
votes
4answers
11k views

Node shapes in TikZ

I want to draw a block diagram for a software app and I need two shapes which I couldn't find on the Internet. The shapes are a parallelogram and a rectangle with double side margins. One is for data ...
11
votes
3answers
12k views

Left alignment in TikZ

I'm not able to align the text left. \documentclass{article} \usepackage{tikz} \usetikzlibrary{positioning} \newcommand{\altura}{.45cm} \begin{document} \begin{tikzpicture}[x=1cm, y=-\altura, node ...