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)

6
votes
2answers
325 views

Tikz shortandoff-on newcommand problem

Usually I have no problem with babel and !:, and I don't use shortandoff-on switch. But since I made a command using !#1 parameter, the problem comes up again. The same synthax used outside the ...
2
votes
1answer
196 views

TikZ: Merge areas

I need to make an area of multiple segments, but with one surrounding border, like in the following picture. I tried many different ways, but all were unsatisfying---in this example the lines of the ...
4
votes
1answer
147 views

Multirow not working for subplots

I tried to add a colorbar to a figure consisting of six subplots. In my MWE, I have replaces them with letters to spare you the extra hassle: % Einstellung der Dokumentklasse für A4 und weitere ...
6
votes
1answer
537 views

How to highlight sub-matrix / nodes with tikz? [duplicate]

I'm trying to highlight a box of different cells of a matrix that I'm rendering. Currently, this highlights the entire matrix in green. What I would like to do is within that box highlight another ...
4
votes
1answer
223 views

Why does \pgfsetendarrow (now) have no effect?

I'm not sure whether I am blind to the obvious or whether this is a bug or perhaps an intended deprecation. Here's an MWE: \documentclass{article} \usepackage{tikz} \begin{document} ...
1
vote
2answers
357 views

beamerarticle: pause statement in tikz

I wonder how to use \pause in tikz with beamerarticle. My MWE is below which throws errors. I know this code will work fine if I don't load beamerarticle with beamer. But I need to load beamerarticle ...
1
vote
0answers
23 views

Unable to use transitions with TikZ-UML [duplicate]

While trying to compile a small state diagram using TikZ-UML I'm getting the following error: ! Undefined control sequence. \tikzumlfont ->\small l.10 \umltrans{initial}{state1} Code: ...
3
votes
1answer
523 views

Compile-error using pgfgant:: “Missing number, treated as zero”

I'm trying to compile a tex file containing performance analysisdata I recieve from an application. However the compiler fails with 2 errors. The first seems to because of a deprecated function in ...
6
votes
2answers
259 views

tikz with tkz-euclide: gaps in fill using \tkzFillAngle

I've been using tikz and tkz-euclideto draw a 2D diagram of a section of a triangular mesh. I have drawn the nodes, edges and angles as in the MWE below. The problem is the fill of one of the angles ...
1
vote
3answers
312 views

Label position angle problem

Why the "F" are not positionned all around the node ? And how to fine tune the position then ? \documentclass[tikz]{standalone} \begin{document} \begin{tikzpicture} \foreach \x in {0,5,...,360} { ...
3
votes
1answer
756 views

Force pgfplots to draw legend according to cycle list instead of the first plots

I use pgfplots to plot multiple curves from a file. The graph is plotted in two steps Draw only the marks, taking the original values from the file Draw only the lines, approximating the curve of ...
12
votes
1answer
1k views

Add arrows to a smooth tikz function

Using this answer here I have been able to draw smooth curves using tikz Easy curves in TikZ but I also wanted arrows along my curves, after a bit of fiddling I came up with the following ...
1
vote
2answers
204 views

tikz-cd package on MacTex

I just updated by TeXShop using TeX Live utility yesterday, but I still get this error. All I am doing is the standard routine \[\begin{tikzcd} 0 \arrow[hookrightarrow]{r} & ...
3
votes
2answers
105 views

tikz: table with mathmode and drawing in article documentclass in LyX

This is a follow up question to my earlier question here (Thanks to @Gonzalo for nice answer). I want to make the same table with boxes in article documentclass. My MWE \documentclass{article} ...
3
votes
1answer
601 views

Pgfplots not plotting bar graph with all symbolic coordinates?

I am trying to create a bar graph using pgfplots. Specifically, I have 8 different bins of varying signal length against some computational time. I have set the x axis signal lengths to symbolic ...
1
vote
1answer
2k views

Dimension too large from matlab2tikz, and aligning graph axis

I have a MATLAB generated plot that looks as follows: Generated with this code: plot(fitGoodnessNRMSE,'b','LineWidth',1); axis([1 511 0.5 1]); ylabel('Normalized RMS error'); xlabel('q (um^-1)'); ...
4
votes
2answers
5k views

\centerline{} command alternative?

I am adding figures to a work and most of the figures are too wide and are thus not centered but are shifted to the right. I searched here and found a solution, that would consist in adding the ...
2
votes
1answer
89 views

How to create Custom Packages and import them in a TeX file

I would like to create E-R diagrams. It can be done with TikZ. But a whole set of commands have to be written. And every time I have to draw a E-R diagram, I have to write them back. I would like to ...
1
vote
1answer
68 views

Multiplicator caption position in tikz plot

I am trying to create a plot with two separate y-axes. The right y-axis is units * 10^5. However, the multiplication caption is not positioned correctly. I use the following code: \begin{tikzpicture} ...
4
votes
1answer
278 views

Drawing pgfplot from/to previously defined intersection points

I'm attempting to draw a plot, using pgfplots, where the start and end coordinates are intersection points I have computed earlier in the same tikzpicture. I start by defining the paths and ...
4
votes
2answers
133 views

\pgftransformtriangle problem

Why the red square and circle are not set and oriented on the blue points ? \documentclass[tikz]{standalone} \usepackage{tikz} \usetikzlibrary{calc} \def\Azi{30}%30 \def\Alt{20}%20 ...
8
votes
1answer
822 views

PgfGantt: Customization of canvas to mark Vacations

I've looked at the documentation, search on the forum, etcetera... and found no answer to my question. I'm writing a Gantt chart, \begin{ganttchart}[% x unit=.4cm, y unit title=0.5cm, ...
4
votes
3answers
486 views

specific Box Diagram with multiple arrows

I never did a box diagram before. I tried to build this diagram, but couldn't find a solution for these kind of arrows: Could someone tell me, how to perform this? Thank you in advance. \tikzset{ ...
4
votes
1answer
371 views

How to put a label to a /draw plot command in TikZ correctly?

I want to draw some interpolation curves and came across the following command \draw plot[smooth] coordinates {(1,1) (4,8) (6,3) (8,9)}; That seems quite nice. Now I wanted to add some labels and ...
5
votes
3answers
286 views

Draw table-looking layout with axes

I need to draw a container bay layout like the one below. I am a complete noob with TIKZ. You can see it as a kind of table with axes. Both axes have variable sizes, and it would be good for the ...
2
votes
1answer
116 views

Heaped up tikz figure-how to fix

My problem is: The figure looks ok on Geogebra, but after exporting to Tikz code and importing to LaTex, it is ugly and have some heaped up between point, lines, and the name of the point or line. ...
1
vote
0answers
119 views

How to use visualcounters in latex? [closed]

I want to use Progressbar in my LaTeX document. I found some idea from the visualcounter module by Aditya Mahajan, but I don't know how to utilize that one. Because I am new to LaTeX, any one help ...
1
vote
2answers
1k views

How to remove white space above and below Tikz figure

I used GMS package to write a maths book, and used Tikz code genrated by Geogebra to draw the image. The problem is there are too much white space above and below Tikz figure, as in the following ...
2
votes
1answer
532 views

Error when using the tikz package [closed]

When compiling a simple MWE like: \documentclass[letterpaper]{article} \usepackage{tikz} \begin{document} test \end{document} I obtain an error: ! Undefined control sequence. l.1102 ...
15
votes
2answers
741 views

How to use OGDF library with TikZ 3.0?

I try to compile (via lualatex) the following MWE without success. \documentclass[tikz]{standalone} \usetikzlibrary{graphdrawing} \usegdlibrary{ogdf} \begin{document} \begin{tikzpicture} \graph ...
1
vote
1answer
778 views

Compilation problem with tikz diagram

As I said, I'm writing math books for school; one of them is about matrices and I have several problems with it. It's a big code, so I'm trying to summarize it: Problem with TikZ matrix: When I ...
8
votes
3answers
551 views

indicate a right angle in 3d

The following MWE shows what appears to be a piece of paper folded. I want to indicate that the angle between the dashed lines is right angled by adding a simple square at M, such that the missing ...
6
votes
0answers
209 views

Different color [closed]

I use the following code to generate a plot \documentclass{article} \usepackage{xcolor} % colorize your documents \usepackage{graphicx} % and use graphics \usepackage{tikz,pgfplots} % ...
4
votes
1answer
177 views

Passing variable as argument

I need to pass a variable to a command, but I cannot get it to work. Here is a short example that shows that #1 can be sent to a command, but not a variable that is a copy of #1. Why is this? ...
4
votes
2answers
451 views

TikZ - How to draw the following

Rectangle in TikZ can be easily drawn. But how do I achieve the following using TikZ or pstricks? Here is what I have worked till now: \documentclass{beamer} \usetheme{CambridgeUS} ...
5
votes
1answer
560 views

How to move axis multiplier in a polar plot in pgfplot

How can I move the axis multiplier in a polar plot? In the following MWE, the axis multiplier is over the ticks and prevent the plot to be nice and readable. ...
4
votes
1answer
1k views

Using PGF/TikZ 3.0 on mac

Today I updated my MacTeX/texlive distribution and I have finally PGF/TikZ version 3.0.0!! However, after using the 2.10-CVS version as described in this answer for a long while, I want to make sure ...
7
votes
1answer
4k views

Problem in adjusting the mark size in pgfplot

I am trying to adjust the marker size in the following tikspicture. Unfortunately, when I configure the plot by adding mark size=0.85, the compiler complains with the following message. Illegal unit ...
3
votes
0answers
120 views

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

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 ...
6
votes
3answers
3k views

Table with arrows between cells

I want to create a table with arrows between some cells, for which I've used tabularx and TkiZ. I have the following problems: Text in cells aligned vertically to the center and at the same heigh ...
1
vote
0answers
173 views

Tree with some nodes and leafs in arbitrary places [closed]

I need to draw a quite abstract tree. This tree will visualize proof substituting in natural deduction (proof theory). I have a deduction (let's call it 'D1') of A with open assumption B and a ...
3
votes
2answers
622 views

Log scale with integer numbers on y-axes

I'm writing a report and one of the requirement of my Bode-plots is that they are logarithmic, but I need integer numbers (i.e. 10, 20 and 30) on the y-axes. I tried using ytick={} but these numbers ...
4
votes
1answer
161 views

Nodes for arcs, which angles are calculated simultaneously

TikZ finally enables nodes for arcs since version 3.0.0. However, there is one problem I came across to. Sometimes angles of the arc are calculated simultaneously, as in \draw (60:1) arc (30+30:0:1); ...
10
votes
2answers
357 views

Tikz figure inside equation with braces that are too large

I'm currently trying to include a tree, visualized using Tikz-qtree and Tikz into an equation. The problem I'm having is that the curly braces are way too large. The code I'm using at the moment is: ...
7
votes
3answers
303 views

How to arrange a large picture on the side on the current page?

I have a decorative picture that I want to display on the right side current page. The picture should fill the whole vertical length of the text body (maybe even 1cm larger). The picture is long and ...
3
votes
0answers
163 views

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

This two questions have been answered separatly it should be interesting to be able to shade a region using previously named pathes. Is there a possibility to combine this two macros ? ...
3
votes
1answer
359 views

Drawing arrows to nodes in trees

I try to draw rhe following three figures. The left is just a sequence of symbols NP V NP AP, the middle one is a unary branching tree and the right one is a binary brancing tree. I want to place a V ...
5
votes
3answers
301 views

Edge labels at same distances from the center

The attached code draws a vertex with five labelled outgoing edges. The labels should all be placed at the same distance from the center, but at least perceptually they are not. How can I fix this? ...
5
votes
1answer
703 views

Pie chart slice with pattern background

I was able to create a pie chart based on the answer in How to draw Bar & Pie Chart. I realized my document is printed in grayscale and learned about patterns (Where is the pattern list gallery ...
6
votes
3answers
854 views

Fill color of a text that fits the background with Tikz

I would like to fill the texts' background in the shaded rectangle to overlay the dashed arrows, with a color that fits the figure's background. I guess I should use the fill option with my ...