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)

5
votes
0answers
23 views

Specify SVG element ids when converting pgf/tikz figures to SVG

I have a bunch of tikz figures that I would like to convert to svg for inclusion in a webpage. I can successfully use dvisvgm to convert the figures to svg. I noticed that in the resulting svg, some ...
1
vote
1answer
39 views

Circling label in TikZ

To label a node with "1" in TikZ, I can use \path (0,1) coordinate (P1) node[right=0.05cm] {1}; Is there a way to circle the label "1"?
4
votes
1answer
84 views

How do I make a TikZ matrix match height?

I'm trying to make a table using the matrix TikZlibrary. The problem is that the height does not match. \documentclass[tikz,border=2pt]{standalone} \usetikzlibrary{matrix} ...
1
vote
0answers
38 views

Displaying two plots side by side not displaying titles correctly [duplicate]

I’m writing a report and using the following code to display a bode-diagram. To save some space (I have several of these figures), I’ve displayed them side by side, but the title of the right plots’s ...
9
votes
1answer
122 views

Tikz plot polar equation with foreach

Im trying to animate a polar equation using beamer, i couldnt find anything related to my problem here or on Google so my last chance is to request some help. I tried to take out the domain command ...
6
votes
3answers
126 views

Drawing vertical hierarchical n-ary tree in tikz

I am trying to draw a simple vertical tree to represent a hierarchical partition of a graph in communities. I have written some code to draw it in tikz, but I am not very satisfied of the result. My ...
3
votes
1answer
58 views

Error when trying to typeset resistances in circuitkz

I get an error called \ProcessOptions\relax. I don't have any idea what could it be. I guess that maybe spanish babel gives problems. \documentclass[letterpaper,11pt]{article} ...
6
votes
3answers
140 views

Upside-down syntax trees for linguistics with horizontal lines

I know that syntax analysis can be done in Latex using using TikZ, but the tree-structure that produces isn't really used in my country. Here, we mostly use straight lines instead of hierarchy trees. ...
8
votes
1answer
45 views

Two identical diagrams inserted with subcaption box come out at different scales

I have two diagrams that are 100% identical except for a red line in the other one. However, when they are included in a figure as two subfigures with subcapionbox, the one with the red line is ...
3
votes
1answer
40 views

How to create something like a function (procedure, macros, etc.) in TikZ?

I want to draw this thing many a time: \node[circle,draw,thick,inner sep=0pt,minimum size=2ex] (sum) [left = of myobject] {}; \draw[semithick] (sum.north west) -- (sum.south east); \draw[semithick] ...
2
votes
1answer
65 views

What's the better way to include a Tikz sheme into a beamer presentation

I have this Tikz schem Code \documentclass[border=10pt]{standalone} %\usepackage[margin=1cm]{geometry} \usepackage{tikz,xcolor} \usetikzlibrary{shapes.geometric,arrows,positioning,fit,calc,} ...
8
votes
1answer
146 views

Drawing Roman laurel leaves (SPQR) in TikZ

I was trying to get the symbol of the old Roman emblem (SPQR). I'm actually interested in the laurel leaves, and not so much in the banner per se. What I would like to have is something like this ...
2
votes
1answer
83 views

Draw a ERD in Crow's foot

I am draw my entity relationship diagram in a UML tool, I am new to TeX writing and now want to draw it in latex. The image of my ERD is given below; Please help me with code and tell me which ...
7
votes
1answer
137 views

Complex dynamically 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 ...
2
votes
1answer
47 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 ...
4
votes
2answers
348 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 ...
5
votes
1answer
40 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 ...
3
votes
2answers
64 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 ...
3
votes
1answer
173 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 ...
2
votes
0answers
65 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 ...
1
vote
0answers
88 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 ...
4
votes
1answer
68 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 = ...
3
votes
1answer
56 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
0answers
28 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
2answers
38 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 ...
5
votes
1answer
123 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
2answers
83 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? ...
0
votes
1answer
52 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); ...
2
votes
1answer
38 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 ...
1
vote
1answer
51 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) ...
4
votes
1answer
73 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
16
votes
2answers
262 views
+50

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
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 ...
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 ...
2
votes
1answer
73 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 ...
6
votes
1answer
93 views
+50

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 ...
0
votes
0answers
21 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, ...
7
votes
1answer
97 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? ...
3
votes
2answers
83 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 ...
3
votes
1answer
41 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} ...
4
votes
1answer
83 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 ...
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 ...
5
votes
1answer
28 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) ...
4
votes
0answers
62 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 ...
3
votes
1answer
80 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 ...
10
votes
3answers
453 views

Draw arrow in picture

\documentclass[a4paper,10pt]{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc}% \usepackage{lmodern} \usepackage[nomarginpar, textwidth = 16cm]{geometry} ...
8
votes
1answer
147 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 ...
1
vote
1answer
60 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
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 ...