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)

4
votes
1answer
56 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
4
votes
1answer
32 views

complex dynamiclly sized tikz diagram

I trying to figure out a way to create diagrams in tikz with a x elements on the left (inputs) and y elements on the right (outputs). The inputs/outputs will be represented by different types of ...
1
vote
1answer
29 views

picture in picture: how to eliminate influences of outer node options on inner node?

In the case, when you have in some shape (rectangle in my case) a TikZ picture, than it seems that parameters of outer shape also influences on parameters of inner picture. This can be eliminate with ...
0
votes
1answer
180 views

How to create this figure?

I have now spend hours by creating this figure - without luck. I have tried different types of tikz, tikzpicture, pstricks and multido usepackage. Can you maybe help me? I would really appreciate ...
2
votes
2answers
47 views

How can I edit the ajustable style of the TikZ-circuits.ee.IEC resistor?

Good Evening! I want to draw some X-dependent resistor (like temperature-dependent, as shown in the picture [there are some parts in red at this moment]). I have a solution, but I do not think, this ...
7
votes
1answer
94 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
1answer
35 views

tikz-cd: Error: No shape named tikz@f@1-0-1 found

In my use of tikz-cd, the down, right and left arrows (\ar[d],\ar[r], \ar[l] respectively) work fine, but I seem to have no uparrow (nor any up right arrow or up left arrow). When I have \ar[u], I get ...
2
votes
0answers
92 views

How to use Tikz

I have used paint editor to create a scheme but I'm not satisfied by the result. So I decided to use Tikz. I haven't found any good tutorial, the ones I'm reading gives the commands without explaining ...
5
votes
2answers
118 views

circuitikz label placement seems inconsistent - how to fix it?

I'm new to circuitikz and fairly new to TikZ, and have a seemingly simple problem. The labels on my resistors are on opposite sides, for no reason that I can find. \documentclass{standalone} ...
12
votes
1answer
177 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 ...
2
votes
0answers
60 views

using gnuplot to plot data from a file

I am trying to plot some data using pgfplots, but the data are so extensive that the maximum capacity is reached. I get the error: TeX capacity exceeded, sorry [main memory size=3000000]. What can I ...
3
votes
1answer
61 views

How can I automate the generation of this dynamic-programming graph?

I would like to draw the following dynamical programming graph. I believe it could be sped by using the foreach syntax. The code I have started to write is \documentclass[tikz, convert = ...
1
vote
0answers
80 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
1answer
69 views

Alienation for a manually generated legend

I have generated the graphic below with the following code: \documentclass[11pt]{article} \usepackage{tikz,xifthen} \usetikzlibrary{arrows, decorations.text, decorations.markings, shapes, patterns, ...
3
votes
1answer
52 views

Adding text to circle in TikZ

I drew a circle and wanted to add text $T_1$ inside it: \draw (0,0) circle [radius=0.3] {$T_1$}; Why does this not work, and how can I fix it?
1
vote
2answers
75 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
0answers
25 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 ...
3
votes
1answer
67 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 ...
3
votes
2answers
35 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
45 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); ...
4
votes
1answer
118 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
35 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?
1
vote
1answer
47 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
70 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? ...
2
votes
0answers
36 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
66 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
25 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 ...
4
votes
0answers
46 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
37 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
77 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
39 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
64 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
75 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
24 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
144 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
59 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
449 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
155 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
35 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
59 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
88 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. ...