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)

2
votes
0answers
67 views

different coordinate frames for anchors and backgroundpath in node shapes?

I want to create a triangle shape for flow diagrams, so far I succeeded but the anchors I have defined are badly placed. This seems to be wired as I have just copied and pasted the code from the ...
2
votes
0answers
81 views

TikZ-PGF child nodes in different locations

When I use TiKz to draw two trees, each in a nested picture, the position of the middle child of the second tree is different from the first. This is even though the code for the trees is basically ...
2
votes
0answers
71 views

Scalable node shape size

I can adjust the shape of nodes using commands such as minimum width or inner xsep, but these require explicit units. When I scale the entire figure (\begin{tikzpicture} [scale=0.5]) it does not scale ...
2
votes
0answers
901 views

TikZ: the scale option changes font size

When I use \begin{tikzpicture}[scale=X] with X<1/X>1 then font size of text in the picture is also changed. I need to use [scale=2] or [scale=0.5] and to preserve font size (e.g. normalsize). ...
2
votes
0answers
161 views

tikz-3dplot: Drawing an arc with the let syntax in 3d

How can I use the let syntax to draw an arc when using tikz-3dplot? At the present, the arc is drawn but doesn't look right. \documentclass[tikz, convert = false]{standalone} ...
2
votes
0answers
192 views

generate circular path with tikz and include empty node

In the following example: \documentclass{article} \usepackage{tikz} \usetikzlibrary{calc} \usetikzlibrary{arrows} \begin{document} \begin{tikzpicture}[every node/.style={inner sep=1pt}] \node (1) ...
2
votes
0answers
99 views

Changing the font size of nodes inside a savebox causes TeX to exceed stack size

I'd like to have a tikzpicture (actually several) appear inside a node of another tikzpicture. I already know that I can use savebox for that, the problem is: When I change the fontsize of a node ...
2
votes
0answers
209 views

matlab2tikz/pgfplots adding colorbar afterwards

I am currently using both matlab2tikz and pgfplots with external graphics since I am not completely convinced by either yet. Is it possible to add a colorbar with any of the two afterwards (meaning ...
2
votes
0answers
75 views

Customizing pgfuml (distances)

I'm using pgfuml to create some sequence diagrams. As you can already see in the examples on the pgf-uml Homepage, diagramms get very crammed if you insert many descriptions. Text and arrows overlap ...
2
votes
0answers
125 views

TikZ shape definition from TikZ rather than PGF

Is there a way to define a TikZ shape using TikZ code rather than PGF? I'd like to have a gear shape (and some others) that I can use as a node and add text to it, have arrows go in and out of it, ...
2
votes
0answers
245 views

TikZ: constructing hyperbolic trajectories and angled circles on a sphere

I am trying to construct this sphere above. What I have so far is below: \documentclass[tikz, convert = false]{standalone} \newcommand\pgfmathsinandcos[3]{% ...
2
votes
0answers
310 views

TikZ: scaling the tikz picture environment

If I scale the TikZ picture environment, everything should scale by a factor of x correct? If that is the case, why would some code not scale or scale incorrectly when it is in the environment? For ...
2
votes
0answers
290 views

Adding a background image with tikz poster

When using the tikzposter package, is it possible to add a background image? I currently have a colour gradient, and would preferably like to keep this intact, and superpose the image on top of that. ...
2
votes
0answers
241 views

How to find intersections between line and rectangle with rounded corners

I'm trying to display a line "under" a rectangle. For this I tried using the intersections package, but somehow I the line doesn't stop: \documentclass[a4paper]{article} \usepackage{tikz} ...
2
votes
0answers
134 views

Pass a coordinate via pgfkeys

I'm using 3dplot to draw in 3D. Now I want to define my own environment, called pose, that is supposed to be used inside a tikzpicture-environment. It should perform a coordinate system tansformation ...
2
votes
0answers
119 views

Creating an invitation printable matrix

I'd like to create an 'invitation matrix' which will be printed on both sides of A2 or A3 paper and looks like this: |front_11|front_12|...|front_1n| |back_11|back_12|...|back_1n| ...
1
vote
0answers
81 views

Dynamic programming of cheapest cost in LaTeX

From How can I automate the generation of this dynamic-programming graph?, Jubobs helped develop a foreach scheme to draw the paths. I was wondering if LaTeX can find the cheapest path by ...
1
vote
0answers
26 views

How to have text overlay top and bottom of image with fade at top and bottom?

How can I make the text in my letter just slightly overlay the top and bottom of a centered, margin-to-margin image within my document. The image is faded at the top and bottom so that the image is ...
1
vote
0answers
93 views

Drawing a mesh heart in TikZ

I would like to reproduce the figure created with Matlab here, using TikZ. However, I'm very inexperienced with TikZ, and anything more than just drawing lines is beyond my abilities. Could anyone ...
1
vote
0answers
36 views

How can I make TeX find tikz's files without moving all of them?

I'm trying to recreate my file system on a cloud server so I can SSH into it from my new tablet. So I have def.tex, my main list of custom macros, which accesses tikz.tex: \input ...
1
vote
0answers
60 views

Issue with `pgflibrary` and MiKTeX

After reading "Tikz shape similar to rectangle with selective drawing of borders," I tried to compile the following code: \documentclass[tikz]{standalone} \usetikzlibrary{chains} ...
1
vote
0answers
48 views

How can I avoid overlapping text labels in tikz scatter plot?

I tried to plot a scatter in latex using tikzpicture. \begin{tikzpicture} [x=12cm,y=4cm] \begin{axis}[xlabel={y title}, ylabel={x title}] \addplot[scatter,mark=*,only marks, point meta=x,nodes near ...
1
vote
0answers
110 views

Annotating Tables With Tikz; Adding Arrows

I'd like to be able to draw an arrow with some text on top connecting two arbitrary (i.e. possibly non-right-/left-most, possibly nonadjacent) cells of a table with a left-looking arrow. In ...
1
vote
0answers
64 views

How to add a package stereotype in tikz-uml?

I need to draw an "extended" uml diagram for problem frames. For this purpose I installed tikz-uml (because I am also using tikz for other drawings). My packages need a stereotype, but the tikz-uml ...
1
vote
0answers
58 views

Problem including user-defined colormap in TikZ

I have a small problem with TikZ I can't figure out. I have some TikZ code generated in MATLAB (using matlab2tikz) showing an image with a user-defined colormap and the correspondent colorbar. The ...
1
vote
0answers
75 views

Problem with PGFPlots and Tikz fading library with disappearance of nodes near coords and irregular fades

It seems like whenever I turn on Fading from Tikz Fading library, the nodes near coords parameter to the axis environment is not processed by PGFPlots correctly. I am attaching the code and the image ...
1
vote
0answers
54 views

change node level tikz mindmap

I would like to change the level of a specific node in a tikz mindmap, with something like node[level=1], [style=level 1/.style], or something like the skip level style. I would like to avoid making ...
1
vote
0answers
95 views

Misplaced path in a surprising way

Why is the upper ellipse is misplaced ? It is defined by same way as the two other. Edit Remarque: even the bottom ellipse is not properly placed too. The for nodes calculated to be the big axis ...
1
vote
0answers
47 views

TikZ and Gnuplot: Put all *.gunplot and *.table in a customized folder

My question is an extension from the question "bodegraph on Ubuntu 10.04" Based on the answers of that question, we can either put all generated *.gnuplot in the directory gnuplot/\jobname/, or in ...
1
vote
0answers
50 views

Tikz: shading region bounded by several curves with previously named path tikz

This two questions have been answered sepatly it should be interesting to be able to shade a region using previously named path. Is there a possibility to combine this two macros ? ...
1
vote
0answers
67 views

Dependency graphs in ConTeXt

Have anyone tried using tikz-dependency with ConTeXt? http://danielepighin.net/cms/software/tikz-dependency Can anyone recommend other ways to create dependency graphs in ConTeXt?
1
vote
0answers
98 views

How to close path for complex path in TikZ?

I'm doing a bit of 3D primitive fugures using this code: \documentclass[tikz,10pt]{standalone} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage[english]{babel} \usepackage{mathptmx} ...
1
vote
0answers
62 views

Can the standalone document type be made compatible with tikzexternalize?

Code: \documentclass[tikz]{standalone} \usetikzlibrary{external} \tikzexternalize \begin{document} \begin{tikzpicture} \node[circle,draw] at (2, 3) {}; \end{tikzpicture} \begin{tikzpicture} ...
1
vote
0answers
61 views

Proper referencing to programmatic nodes in pgfplots axis? (no shape is known, ill-formatted floating point number …)

This is going to be a slightly messy/unclear question, but here it goes. Basically, I want to work with a plot in pgfplots, where I want to also generate programmatically some nodes (maybe as result ...
1
vote
0answers
36 views

Termination of instance in {pgf-umlsd}?

is it possible to a draws a cross at the current position to indicate termination of a call in a sequence diagram using {pgf-umlsd}. \documentclass[a4paper,12pt]{article} \usepackage{epsfig} ...
1
vote
0answers
179 views

Tikz edge label position

Is there a way to set the location of the position of edge label when using the tikz graph package? I attempted to look for samples of this being done in the manual, but was unable to find any ...
1
vote
0answers
45 views

Dimension too large with a small set of data

I'm trying to compile a simple tikz plot with floating point numbers, but I'm gettin a Dimension too large error. The tikz file works with a different data set, so I guess the problem has something to ...
1
vote
0answers
46 views

Define State Body in TikZ-UML

I want to define a custom statechart using TikZ-UML (http://www.ensta-paristech.fr/~kielbasi/tikzuml/index.php). My problem is that the state does not seem to render the content in its body. ...
1
vote
0answers
65 views

Defining a command for drawing contours

I have seen a lot of questions asking about how to draw arrows along curves. The decoration libary can help with this, but the solution seems very manual.. Is it possible to make a command that draws ...
1
vote
0answers
64 views

Problem: Tikz \shadedraw and backward search

I have a problem with forward/backward search in tex. I'm using Miktex, Texniccenter and SumatraPDF and normally the search works just fine. I tried to make a minimal example. I use one main file ...
1
vote
0answers
77 views

pgfdeclareshape: label size independent of node size

Reading of PGF3 manual (pp. 1038-1044) and some examples on the web allow me to declare the following shapes but FIRST : I have little big problems with size(s) How to declare a "fixed" size for ...
1
vote
0answers
67 views

Self similar fractal with first iteration highlighted

I want to draw some self similar fractals and highlight the first iteration. I was able to do so for the Sierpinski Triangle, although my code is somewhat ugly. (A minimal working example is included ...
1
vote
0answers
31 views

Problem with dvi and tqft

Given the following code: \documentclass{article} \usepackage{tikz} \usepackage{tqft} \begin{document} \begin{tikzpicture} \begin{scope}[tqft/flow=east, tqft/view from=incoming, tqft/cobordism ...
1
vote
0answers
58 views

Is it possible to produce a context free grammar for Tikz path? node?

Even further, I would be happy to see a definition of the tikz language in the usual manner programming languages such as Java and Pascal are defined. The reason I ask is that I keep getting ...
1
vote
0answers
91 views

Extended graphics State pgf error in Acrobat

I'm compiling with pdflatex in Ubuntu with TeX Live 2012. When I open the pdf with evince, I have no problem. But when I open the pdf with Acrobat in Windows and I reach a page where there's a ...
1
vote
0answers
57 views

PGFplot shrinks after I add it the main TeX document with standalone package. What should I do?

I would like to ask question concerning usage of PGFplots package (LaTeX). I have this problems: after inserting tex file using standalone package in my main document, part of pgfplot shrinks and font ...
1
vote
0answers
68 views

I am trying to animate in two different coordinates using layers. But the animation happens in the same spot

\documentclass{beamer} \usepackage{tikz} \usepackage{animate} \newcommand\layerp{% \begin{tikzpicture} \path (1,.5) (1.5,.75); \end{tikzpicture} } \newcommand\layerq{% \begin{tikzpicture} ...
1
vote
0answers
74 views

mdframed parchment layout

I have recently found a very nice example of how to create text boxes with a parchment-style layout: http://www.texample.net/tikz/examples/framed-tikz/ Also, here on tex.stackexchange, there are ...
1
vote
0answers
107 views

TikZ: `local bounding box` incompatible with `use as bounding box`?

The TikZ/PGF documentation (v 2.10) contains the following example for the use of local bounding box: \documentclass{article} \usepackage{tikz} \usepgfmodule{shapes} \usetikzlibrary{scopes} ...
1
vote
0answers
96 views

Why can't I get a conditional command to work in a macro invoked within a tikzpicture?

I wanted to create a macro that can be invoked in the middle of a tikz path and behave differently, conditional on one of the arguments. Here is an example document: \documentclass[a4paper]{amsart} ...