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
1answer
50 views

Problem importing Octave Plot using TiKZ - pgfkeys Error on gpcolor

I am trying to include a set of Octave generated plots in a report, however I am constantly receiving the same error from pgf about it not recognizing \gpcolor A MWE would be ...
5
votes
0answers
68 views

Creating a new shape [duplicate]

I read some documentation about how to create a new shape. But some things are still not clear to me. In fact I wanted to create a new shape representing a switch symbol: I did the code in tikzpicture ...
2
votes
0answers
44 views

TikzDictionary slow and blocking in knitr

I need to knit presentations with many slides and Tikz-plots. Knitr is fantastic for this, but it takes very long time and I cant knit two reports in parallel. I have isolated the problem to the ...
-1
votes
0answers
35 views

What is the /tikz/center error that keeps popping up every time I compile my master tex file? How do I remove it? [closed]

I'm making a two-page TeX document that contains a few titles and figures. Here's the code to the document: \documentclass[12pt,a4paper,final,oneside]{report} \usepackage[utf8x]{inputenc} ...
3
votes
0answers
46 views

Placing points on a curve generated using PGF plot [duplicate]

Using methods like this one (and with more details here) can be useful when one tries to draw "free" curves. However, once a free curve is obtained it can be very useful to access arbitrary points on ...
4
votes
1answer
65 views

How can I get optional arguments in a TikZ-circuits.ee.IEC symbol?

Good Evening, so in the following Code, I have 'new' circuit symbol, named 'converter'. In short: I use a 'generic circle', but I do not show him; I paint a pgf-rectangle over it and at least a ...
4
votes
1answer
67 views

Example of a complex compound tikz math statement

Could someone provide an example of a complex compound mathematical statement in tikz as I find that most of the answers out there are difficult to understand or lacking. I want a MWE example like ...
2
votes
1answer
66 views

LuaLaTeX returns illegal unit of measure for .tikz

I have a large graph generated from matlab2tikz (~1.3mb) that I am trying to compile. Latex gives me out of memory errors so I am trying LuaLaTeX. The problem is LuaLaTeX gives me an error: Illegal ...
5
votes
1answer
92 views

How do I create a combined figure with two imported curves and draw around it with Tikz?

This is a two part question that I'd really appreciate any help with, I couldn't find previous posts about this so I apologize if this is a repeat question. It all stems from attempting to create this ...
2
votes
0answers
44 views

Free Body Diagram and Tikz [duplicate]

I have been trying to plot a free body diagram in my wok, but I haven't been able to get it done. I also tried to do it without the geometry package and it work perfectly. %%%%%%%%%%%%%%%%%%%%%%%%%%% ...
3
votes
1answer
57 views

\input in figure environment not centering

I'm making a presentation with beamer, and I've drawn some figures in TikZ that I'm inserting into the presentation using \input{footikz.tex} For some reason the tikz picture is appearing off to the ...
5
votes
1answer
86 views

Drawing arrow with text using TikZ

I made some matrices with TikZ, but I also would like to show that the second one is a focus over a sub matrix of the first one (I made an ugly example with PS here) and to add an arrow with a text ...
5
votes
2answers
120 views

Error: “Dimension too large…” when plotting EXPONENTIALS with TikZ

Despite having read answers to 4-5 relate questions, I still can't get why my code does not compile. Here it is: \documentclass[11pt,twoside]{book} \usepackage[paperheight=24cm, paperwidth=35cm, ...
4
votes
1answer
40 views

Fit node to another node in a seperate scope that has been shifted and canvas transformed

I want to fit a node to another node which is defined in a different scope which has been subject to the options "(x)shift and transform canvas" (see example code and image). Without any canvas or ...
0
votes
0answers
38 views

Keepaspectratio option for tikz picture

In my current document I have both pictures from file and tikz pictures. For the output I use both, landscape (for screen reading) and portrait (for print). For pictures loaded from file i use the ...
3
votes
2answers
84 views

Subfigure label position and visibility in memoir

I am writing my master thesis using Memoir. I want all subfigures to have their labels in the top left corner. I have so far done this with tikz, but I would like to find a more elegant solution as my ...
3
votes
1answer
56 views

Different shading for multi-parted tikz node

Please consider MWE below: \documentclass{standalone} \usepackage[usenames,dvipsnames,svgnames,table]{xcolor} \usepackage{tikz} \usetikzlibrary{positioning,shapes,shadows,arrows} \usepackage{lipsum} ...
1
vote
1answer
54 views

labeling edges in tikz [duplicate]

I have the following graph, where I want to label the edges. Is there a way I can integrate this in to the draw command? { \begin{figure} \begin{center} \begin{tikzpicture}[every node/.style={circle, ...
7
votes
1answer
122 views

If-Then-Else clause in TIkZ Latex

I'm continuing my work on the "changeable" graphics. I have an array of values, and I have already succeeded in making variables from it. The next step is that I want to ignore the zero values. Here ...
6
votes
3answers
216 views

Including Arrows on lines in a Multiple Path

I'm drawing a tikzpicture and trying to make it flexible. There is a group of symbols that I want to be able to move around while maintaining their relative positions. So far I've tried concatenating ...
4
votes
1answer
53 views

What is the restriction on \foreach with \from and \to statements?

I am trying to draw an automaton using TikZ and \foreach statement. Below is the sample of what I have. Now, two questions I have is, Is there any way to use curly braces {,} instead of (,) as I ...
4
votes
1answer
80 views

Scaling a tikz scope to the width of another tikz scope

Is there a way to scale tikz scope to the width of another tikz scope? I have an approach in which I put each of the scopes in an individual tikzpicture which is enclosed in a resizebox. This works ...
4
votes
2answers
57 views

tikz decorations.markings cause 'dimension too large'

I want to draw a bunch of smooth curves with arrow in the middle. So I have to combine decoration and smooth options. However, both options result in dimension too large error. If I remove smooth ...
3
votes
1answer
59 views

TikZ - I do not know the key … despite correct code (can't define a new style anymore)

I just wanted to define a new style, a very very simple one with align left, text width=6cm but I found out even simpler code won't work. Basically I assume my installation is broken or I run the code ...
5
votes
2answers
124 views

TikZ - How can I create a style for nodes which have the shape of a corner?

Probably a silly question, but I currently can't figure out how to create a style definition for a corner. What I want is included in the MWE. MWE \documentclass[ a4paper ]{scrartcl} \usepackage{ ...
3
votes
1answer
86 views

Lualatex, fontspec and externalized tikz problem in MacTeX

To enable faster compilation of large documents I'd like to externalize tikz pictures. I also have to use lualatex and fontspec. EDIT: After further testing it seems that this is a problem only when ...
5
votes
3answers
175 views

How do I get a tight fit around a node when using tikz shapes.geometric?

I would like the two nodes below to be roughly the same size, but one is much larger than the other. Is there a way to force tikz to reconsider its bounding box calculation? ...
4
votes
1answer
135 views

Calendar in LaTeX

I've been searching for a while how to make a calendar with LaTeX and I've found some templates, however none of them fitted my needs. What I want is just a basic monthly calendar with some space for ...
3
votes
1answer
78 views

Retain coordinate value in tikz foreach loop

I would like to retain a computed coordinate value from one step of a tikz foreach loop to the next. In the code below, I would like the increment in the y-value to depend on the previous y-value, ...
2
votes
1answer
61 views

TikZ-ifthen: decision making in a \foreach statement

Disclaimer I am not a programmer so I may not use the proper terminology to express myself. Please correct me if need be. Preamble I'm trying to draw a sinusoidal function and some arrows at ...
8
votes
1answer
114 views

pgfplots: How to add the origin to the axis in a robust way?

Question I add the origin to my graph with after end axis/.code={\path (axis cs:0,0) node [anchor=north west,yshift=-0.075cm] {0} node [anchor=south east,xshift=-0.075cm] {0};} (code found here). ...
6
votes
2answers
117 views

pgfplots: how to display a label next to my plot when the option clip = true cuts out a part of the graph?

Question I want to attach a label to the curves I draw. My current solution is to add a node after the plot of my function (see the code below). But, when I explicitly cut out a part of my graph, ...
12
votes
5answers
258 views

How to force nodes on different lines to have equal y-positioning

I have, hopefully, a very simple question. I use tikz to make a figure for confirmatory factor analysis (CFA). In the minimal example there a 6 arrows going from the circle to a fixed place. However, ...
0
votes
1answer
52 views

Tikz backloop arrow

I created a flow chart with boxes all lined up vertically. Now I want to draw an arrow from the last box to the first box. How can I do this, so that the arrow leaves the last box horizontally on the ...
0
votes
0answers
34 views

tikz multiply loading pgfmath? [closed]

I'm new to this site... I have this awkward problem where just loading tikz creates an error ERROR: Package PGF Math Error: The function `add' already exists. (and the whole bunch of ...
10
votes
3answers
678 views

TikZ coding style

I've got a piece of TikZ code here and since I am only starting to learn how to use it, I wanted to ask whether this code would be regarded to be ok or rather completely unreadable and what I can do ...
2
votes
0answers
55 views

Node at each end of arrow, Tikz

I'm drawing a vertical arrow and I want to have a node at each end, but tikz seems to be putting the lower node in funny places: This is the arrow with the node above in the right place: ...
3
votes
1answer
60 views

TikZ won't let me externalize and halts on error

TeX Live 2013 I am using pdflatex TeXstudio 2.7.0 Win 7 64 bit Taken from the .log file, via \listfiles: tikz.sty 2013/12/13 v3.0.0 (rcs-revision 1.142) This... MWE \documentclass[ a4paper ...
6
votes
1answer
113 views

Problem with arrows in Tikz flow chart

I've got a little problem with a flow chart that I created using Tikz. I'm new with tikz and I created this flow chart using an example from the internet. I googled for how the positioning of the ...
4
votes
1answer
82 views

Fill opacity problem with pdflatex while upgrading MiKTeX from version 2.7 to 2.9

It's my first post. I solved it when writing this so I send it anyway in case it helps someone. When compiled with pdflatex.exe from MiKTeX 2.7 it works. When compiled with pdflatex.exe from MiKTeX ...
7
votes
1answer
67 views

How to compute xslant and yslant

There must be an easy way to compute the required values of xslant and yslant to obtain the text in the "correct plane". Below I have guessed at then, but that is a very tedious process. The desired ...
5
votes
1answer
127 views

Transitions in Petri nets

I have to crate a petri net for an homework assignment in university. In Tikz manual, I found a very useful tutorial on creating petri nets using Tikz/PGF. However, the example uses a different style ...
8
votes
1answer
108 views

pgfplots: wrong domain, wrong axis, uncentered graph… is it a bug?

Question I get a very strange graph with pgfplots, see the picture below. What is going wrong? Code and picture \documentclass{article} \usepackage{pgfplots} \begin{document} \begin{tikzpicture} ...
2
votes
1answer
52 views

pgfplots: how to add a label to a graph with the option clip=true?

Question I would like to add a label to my graph, on the right of it or at any other place, for instance somewhere above my graph. Is it possible? I want to use the option clip=true, because of the ...
7
votes
1answer
84 views

pgfplots: the margins “eat” some parts of my graph

Question I use pgfplots with the ultra thick option ans without explicitly giving the domain for the y-axis. It seems that in this case, some part of my graph is "eaten" by the margin: see the ...
2
votes
1answer
42 views

\xleftrightarrows command in TikZ with arrows matching the LaTeX font

There is the command \xrightarrow that inserts an arrow that extends with the text you put above and/or under it. There is also the command \rightleftarrows (notice the "s" at the end) that display ...
3
votes
1answer
98 views

Poisson distribution with tikzpicture

I am new to 'drawing' in LaTeX with pgfplots, tikz, etc. I am trying to plot a Poisson distribution with varying means. Here is what I have tried (based on this answer) \documentclass{article} ...
4
votes
1answer
143 views

Drawing phase line for differential equations

How can one draw one of this pictures in latex with the simplest way and good looking output?
0
votes
0answers
37 views

Varying Error Bar Length In Timeplot Graph

I have a quick question about the Error Bars functionality in LaTeX, specifically - I am using pgfplots and tikzpicture packages. I was wondering if it is possible to vary the length of the Error bar ...
6
votes
2answers
153 views

how to draw a cut through a graph in latex

I want to draw a cut through the graph, like a line passing through the edges from the source to gamma, source to alpha and source to omega. I am doing that to demonstrate a minimum cut in a network ...