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
48 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 ...
11
votes
0answers
119 views

Why does PGF/TikZ 3.0 draw my simple layered graph as non-planar by default?

I have two questions: If I’m reading §30.4 “Crossing Minimization” of the PGF/TikZ 3.0 manual correctly, the layered graph drawing algorithm should have crossing minimization enabled by default. So ...
3
votes
2answers
25 views

shortening of braces (or padding tikz brace decorations)

Feels a bit weird doing this, but I found this unanswered question: PGF and TikZ (mailing list) - shortening of braces, and as I'm interested in the answer, I'll repost: many times i need to give ...
0
votes
1answer
33 views

Edgeworth Box of Pareto efficiency

I would like to have a figure like the following image, but I can't find a way to make the red convex curves. My code so far contains: \begin{tikzpicture} \draw (1, 3.5) to[out=0,in=90] (3.5, 1); ...
3
votes
1answer
83 views

No shape is known for just created foreach nodes

This can be similarly formulated to Why are just-created TikZ shapes "unknown"?; but its slightly different. Here is the MWE: \documentclass[% 12pt, journal, onecolumn, twoside, draftcls, ...
1
vote
1answer
30 views

Integer operator in tikzpicture environment

And I have got this figure: \begin{figure}[H] \centering \begin{tikzpicture} \begin{axis}[width=200pt,axis x line=middle, axis y ...
44
votes
4answers
4k views

3-dimensional histogram in pgfplots

I have a simple 3d histogram which I want to import into pgfplots, e.g. using matlab2tikz or by hand. PGFplots does not offer 3d histograms. Is there an easy way to do this?
0
votes
2answers
48 views

Non-linear plot looks linear

I am plotting a non-linear function -2/3 x^ 3 + x^2-3x+4/3 in the interval [0,1/2], I tried to change the scales to make it look less linear but still looks like a straight line. Any suggestions? ...
1
vote
1answer
42 views

Tikz: How to combine orthogonal edge syntax with coordinate calculation? [duplicate]

I'm trying to combine the syntax for orthogonal edges (p |- q) with the syntax for calculation relative coordinates ($ (a) + (1,0) $). Example: \draw ($ (node1.south) + (1,0) $) to ( ($ (node1.south) ...
3
votes
2answers
69 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 ...
70
votes
3answers
3k views

How to draw a Sankey Diagram using TikZ

I would like to draw something similar to this (not exactly): using TikZ. Ideally I would be able to set the width by variables and rejoin two flows into one again. Is there a good way to do this? ...
1
vote
0answers
43 views

Stack figures in horizontal plane in 3D rectangular shape without loss of quality

I am plotting figures on GMT but it does not support some features in gridview. So I want stack each figure on different platforms below each other. E.g. I want to add each image like the following
2
votes
0answers
35 views

Gantt chart is not drawn and give “! LaTeX Error: Environment gantt undefined.” [on hold]

I am writing a report for FYP in Ubuntu 13.10 in TexMaker, with document class and use different files use for chapters. I write the code below in the chapter1.tex for draw a gantt chart ...
2
votes
1answer
63 views

Drawing vertical lines on a coordinate plane using Tikz

I am trying to plot the vertical lines x=0 and x=4 using the Tikz environment. What I have thus far is; \begin{tikzpicture}[yscale=1] % 4x4 grid \draw (0, 0) grid (5, 5); % origin point \draw ...
1
vote
1answer
22 views

Separating caption of first figure from top of second figure

I am setting two TikZ subfigures on top of each other by setting 1\textwidth for both subfigures. Now, the caption of the first figure is really close to the top of the second figure. Is there any ...
5
votes
1answer
70 views

How to “outline” a path in TiKZ?

I have a drawing in TiKZ (of a graph, say) and I want to highlight two paths in the drawing. Is there a way to do that using my already-defined node names, without explicitly making new coordinates? ...
4
votes
0answers
36 views

Are the TikZ libraries cd and external incompatible with one another?

Is there a way to use the TikZ libraries cd and external together? This does not work: \documentclass{article} \usepackage{tikz} \usetikzlibrary{cd, external} \tikzexternalize \begin{document} ...
3
votes
1answer
36 views

Tikz/PGF - Accessing custom anchors in \backgroundpath of custom shape

I'm trying to create a custom TikZ shape consisting of a rectangle with small arrows on the border (representing signal input/output ports). For the most part I can inherit from rectangle but I'm ...
3
votes
2answers
75 views

Filling rectangle in TikZ with more than one color

To draw a rectangle and fill it in gray in TikZ: \draw [fill=gray,very thick] (0,0) rectangle (2,1); Now, I want to fill it in both gray and yellow. The best way would be if I can make diagonal ...
0
votes
0answers
20 views

exsheets \vary with tikz \coordinate

I'm trying to use exsheet's \vary command in a tikzpicture: \documentclass{article} \usepackage{tikz} \usepackage{exsheets} \begin{document} \begin{tikzpicture} \coordinate (point) at (0, ...
4
votes
1answer
80 views

How to skip ticks in pgfplots plot?

I have frequently the problem that too many data points are available for the x axis, I want to show them all in the actual plot, but I would like to show only a subset of the ticks. For instance, if ...
0
votes
0answers
7 views

Skipping ticks in pgfplots plot [duplicate]

I have frequently the problem that too many data points are available for the x axis, I want to show them all in the actual plot, but I would like to show only a subset of the ticks. For instance, if ...
3
votes
1answer
38 views

Showing all the decimal numbers on the y axis clearly in a given chart

I would like to show my y axis as follows: Here is my code: \documentclass[english,12pt]{standalone} \usepackage{tikz} \usetikzlibrary{patterns} \usepackage{pgfplots} \pgfplotsset{compat=1.10} ...
5
votes
1answer
63 views

Bounding box is larger than expected when drawing in 3D

This is a semi-duplicate of this question I think, but the answers provided there don't seem to work for me with 3D pictures. I'm inputting a tikz picture into a beamer poster, but I think that part ...
2
votes
1answer
72 views

Layered graph with variable number of nodes on each layer

I have created some Tikz code to product he diagram below (slightly simplified). This is my first real shot at Tikz and its taken me about 8 hours now to get this far. But I don't really begrudge the ...
4
votes
1answer
22 views

Adding “text-block” to \sbBloc

I'm all new to TiKz and the schemabloc package. What I'd like to know is two things; (1) how to add a "text-block" to a \sbBloc like in the image below (this is the image I'm trying to copy) and (2) ...
8
votes
1answer
141 views

This elliptical-orbit diagram compiled fine with TikZ 2.10 but fails with TikZ 3.0. Why?

I borrowed some code on Kepler's 2nd Law from the linked post here on TeX answered by Tosco. I haven't compiled the document it is in awhile but needed today. When I did, I was told dimension too ...
4
votes
0answers
56 views

Pgfplots : Shadow in bar chart with restricted domain

I have a following code which plots a pgf bar plot for me. I am able to add shadow to one of the bar plot. However, the other plot which has a broken y bars, I am unable to add the shadow, because ...
10
votes
3answers
447 views

Draw arrow in picture

\documentclass[a4paper,10pt]{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc}% \usepackage{lmodern} \usepackage[nomarginpar, textwidth = 16cm]{geometry} ...
4
votes
1answer
63 views

Resize tikzfigure in tcolorbox depending on height of tcolorbox

in my book I got many different type of boxes so I made some macros placing the boxes automatically according to their arguments. That's one of them. So far I made some boxes that have big "+" and ...
4
votes
2answers
144 views

TikZ/PGF linguistics vowel chart

I'm including a vowel chart in a linguistics document of mine, similar to this, and while I'm aware that there are a couple of packages (TIPA, pst-vowel) that can do the job, I'm interested in trying ...
4
votes
1answer
152 views

How to draw a timeline?

How to draw something like this?
6
votes
1answer
337 views

How to use tkz-graph and tikz-qtree without conflict?

It seems that the tikz-qtree and tkz-graph packages both define (or redefine) the \edge macro... I'd like to use both, but it doesn't seem possible: \documentclass{article} \usepackage{tikz} ...
7
votes
1answer
104 views

TikZ: inverted cone (similar to linked thread but different issue)

How to draw a simple cone with height and radius with TikZ? In the above thread, a cone was created. However, if I invert the cone, the lines from the origin to the cone edges cuts through the cone. ...
2
votes
0answers
33 views

Problem with pgf library in TexLive

I am using TexLive, and I am writing a paper with someone else. He has sent me all of his files. He uses tikz to draw commutative diagrams. I am trying to compile his files, but I get an undefined ...
1
vote
1answer
58 views

Simple vertical text in TikZ

How do we write this title vertically in TikZ - similar to vertical text (not in table)?: T T I H T I I M L S S Y E
6
votes
1answer
87 views

Auto word wrapping in a node in TikZ?

I am using TikZ to make a flow chart demonstrating my scheme step by step. I notice that the word wrapping is not automatic in a node. That is, the line can be extremely long across the whole page. ...
4
votes
2answers
51 views

Text Wrapping in tikz node doesn't work

I would like have a few fixed nodes of size 1cm x 1cm. However, the text inside these nodes should wrap around. I used the following questions help to figure out about wrapping text. However it ...
8
votes
1answer
157 views

Increments in \foreach loop with two variables, TikZ

I'm trying to draw a stack of arrows at different angles in a \foreach loop in TikZ. I don't want to have to declare every z coordinate and angle manually so I was using the {1,2,...,10} syntax but ...
2
votes
1answer
44 views

Labelling edges drawn by the draw to command

consider the following code: \documentclass{article} \usepackage[version=0.96]{pgf} \usepackage{tikz} \usetikzlibrary{arrows,shapes,automata,petri} \tikzset{ place/.style={ circle, ...
7
votes
2answers
113 views

Placing tikz objects after a nonlinear transformation

I'm trying to place certain objects on my page. Normally you can use the shift argument to place the object at a set of coordinates, or even current page. None of that seems functional with the ...
3
votes
2answers
82 views

Draw circle perpendicular to line

I was trying to create a circumference perpendicular to a line similar to this but I only see a tutorial for creating in a axis-plane (xy, xz, yz) \documentclass[tikz, border=15mm]{standalone} ...
5
votes
3answers
264 views

How to create simple funnel in LaTeX?

I have a problem trying to create a simple funnel, as it can be seen on the attached file: I have tried to look at the internet, trying to write the lines, but it won't work. I am using TikZ. The ...
6
votes
3answers
219 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 ...
0
votes
0answers
34 views

TikZ/pgfplots - are there any problems related to externalized figures used on Linux and Windows?

I share a document between Win 7 and Xubuntu 13.10. I just updated my local git repo on my Xubuntu 13.10 installation. I then continued editing in a TikZ figure (not only its style definitions!) but ...
6
votes
1answer
164 views

How to plot a graph from its adjacency matrix?

For example, I want to plot a graph whose adjacency matrix is [0,1,0;1,0,1;0,1,0]. I first plot three points labeled by p1,p2,p3, and link the points p1,p2, p2,p3. For a general case, how to link the ...
4
votes
1answer
40 views

TikZ: issue with lines in foreach loop

\documentclass[tikz]{standalone} \usetikzlibrary{calc} \begin{document} \begin{tikzpicture} \coordinate (h) at (0, 3); \coordinate (O) at (0, 0); \draw (O) -- +(-3, 0); \draw[-latex] (O) -- ...
3
votes
1answer
35 views

Would like a mdframed environment style with framed title box inset above without fill

Here's a slight tweak to one of the mdframed examples that produces a framed title inset above the theorem box \documentclass{article} \usepackage{amsmath} %\usepackage{svgcolor} ...
7
votes
1answer
52 views

How to make a dynamic comment box next to \address cluster?

I'm sure you're aware what \address{blah} is. Well, I'd like to make a boxed comment that's just as high as my address and stretches from the left margin of the document to 3cm to the left of the ...
1
vote
1answer
70 views

How can I resolve the side effects of AddEverypageHook to external pgfplots?

I have quite a huge document with many pgfplots, which I would like to externalize. Well I can externalize them, but my \AddEverypageHook command from the everypage package affects this externalized ...