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)

3
votes
0answers
1k views

PGFPlots: importing data from a txt file

So I imported data from two txt files. However, I would like to plot the mean of the data and then the standard deviation bars. How can this be done? \documentclass[tikz, convert = false]{...
3
votes
0answers
742 views

TikZ scaling graphic and adjust node position and keep font size

I have several pictures in my thesis. I want to draw arrows with text over these pictures. After that I want to scale the picture, but the node position should adjust to the scaling and arrows, and ...
3
votes
0answers
103 views

Has anyone combined marginfix and tikzmark yet?

I am working on a big book project, and up until today I refrained from using glue. But now I had to, and, lo and behold, suddenly my margin notes' position is broken :( The reason is that marginfix ...
3
votes
0answers
800 views

Clustered Stacked bar Chart Overlapping Labels

I have following code by which I generate the following graph \documentclass{article} \usepackage{pgfplots} \usepackage{tikz} \usepackage{xcolor} \usetikzlibrary{arrows,automata,calc,shapes, ...
3
votes
0answers
498 views

Free space in bar-chart with empty entries

I would like to plot some data set with the ybar option of pgfplot. But not all entries are nonzero. The zero entries waste space between the bars and when the plot gets crowed it is not clear anymore ...
2
votes
0answers
16 views

several problems wih pgf-blur (doube shadow, loop in object hiearchy in xdvipdfmx)

I am trying to hunt down some bugs in pgf-blur, some of which have been reported here already (this for example). All the following experiments are done with TL 2016. There are two bugs: Bug: ...
2
votes
0answers
37 views

Move grid lines to background in tikz

I'm using matlab2tikz for exporting Matlab plots to tikz which works very well. I have now made a plot with grid lines, unfortunately the grid lines are in the foreground, i.e. in front of my plot. ...
2
votes
0answers
34 views

Include Tikz-documents with a latex body in Lyx

I also posted this with a little different focus on stackoverflow already, but I am still looking for a elegant solution, so I will try again here. I use tikzDevice in R to transform my graphics into ...
2
votes
0answers
101 views
+50

Cut off graphs using dot2texi with TikZ

I am creating concept maps using dot2texi and TiKz. However, with more complex maps the current style sometimes causes the map to be cut off. This despite the fact that in theory there is actually ...
2
votes
0answers
35 views

Identifying a fix for an Undefined control sequence (\pgfdeclareplothandler) error

I would like to identify a fix for the following error: "C:\Program Files\MiKTeX 2.9\tex\generic\pgf\libraries\pgflibraryplothandlers. code.tex" ! Undefined control sequence. l.24 \...
2
votes
0answers
43 views

Aligning elements in height

I have created a tikz file representing a legend (for different plots). my file looks as follows: % This file was created by matlab2tikz. % \definecolor{mycolor1}{rgb}{0.00000,0.70000,0.70000}% \...
2
votes
0answers
28 views

TikzEdt checking for new version gives “server not found”

Since some weeks ago when I run "Check for updates..." in TikzEdt (version 0.2.3.0 with Windows 10) I get the error: Checking for new version failed: Errore del server remoto: (404) Non trovato. ...
2
votes
0answers
60 views

Using equation/function in 3D TikZ

I have a subset in 3D, than has the restrictions: 1<=x<=2, 1<=y<=2, 1<=z, 2x+2y-z<=5. So far I have just plotted the point, where I restrict x and y. How do i plot the last ...
2
votes
0answers
69 views

Typesetting category of elements diagrams

This nlab page features the two diagrams below which I would like to typeset myself, except I only know xypic which cannot really produce them. I would like to typeset the following: What is a ...
2
votes
0answers
37 views

Tikz plot of a (log-) normal quantile function and inverse error function

I want to plot the lognormal and normal quantile functions in tikz. To fix notation, let's refer to https://en.wikipedia.org/wiki/Normal_distribution, which gives the quantile of the normal ...
2
votes
0answers
41 views

How can I rotate this ellipse on xy plane?

I want to enclose the red circles into an ellipse, but this ellipse should rotate, but the rotation is wrong. \documentclass[border=1cm]{standalone} \usepackage[x11names,dvipsnames]{xcolor} \...
2
votes
0answers
48 views

Nested coordinate calculations

I have the following coordinate calculation \coordinate (a0) at ($(c1)!0.5!(c2)$); \coordinate (a1) at ($(c3 -| a0) + (1,3)$); \draw (a1) rectangle (b1); I wanted to eliminate the first coordinate ...
2
votes
0answers
39 views

Zoombox misplaced figures using \tikzexternalize

I get misplaced figures when I combine zoomboxes and \tikzexternalize. For a MWE, I use the same image as in the original zoombox post on How to create magnified subfigures and corresponding boxes for ...
2
votes
0answers
41 views

Visible and non-visible lines in simple 3D drawings (cube - planes)

I want to make some simple 3D drawings, most of them in Cavalière perspective. I also want to see the difference between visible lines and the non-visible lines. The code I've made is: \...
2
votes
0answers
84 views

How to create a checkerboard tile pattern in pgfplot tikz

I am aware of several patterns available in tikz patterns, such as vertical lines, crosshatch and etc. However, I need to create some tile pattern similar to that of checkerboard pattern in order to ...
2
votes
0answers
260 views

Starting Tikz/pgf in LuaLatex: Package pgf Error: Driver file “pgfsys-luatex.def” not found

I'm starting to migrate from pdflatex to LuaLatex and with that to using Tikz and the memoir classs. In the case of Tikz I'm following the standard user manual (Manual for Version 2.10-CVS by Till ...
2
votes
0answers
30 views

Mark local maximum and calculate gradient in PGFplots

I'm using data from a tensometer to generate a stress-strain curve, but I want to find the yield point and the gradient between the start of testing and that point to calculate Young's modulus. Can ...
2
votes
0answers
43 views

MATLAB generated Tikz not working

When trying to use a .tikz file generated from a MATLAB script, the .tex file errors and is not able to build. The .tex code is as follows: \documentclass{article} \usepackage{amsmath} \...
2
votes
0answers
45 views

TikZ: Changing units used by `let` operation

While making a more complicated picture, I stumbled upon unexpected behaviour from a plot command in a let operation. After quite some experimenting, I'm pretty sure I've identified the problem, but ...
2
votes
0answers
57 views

Shading part of a sector of a circle

In the following code, two concentric circles centered at the origin are drawn. How do I get the sector of the big circle between 225 degrees and 315 degrees and outside the smaller circle shaded? \...
2
votes
0answers
52 views

Braids diagrams and quantum groups

I need to include some graphical proofs of quantum groups theorem, looking like the one below: It's very similar to the braids package, but I also need to include operators, like the S in the ...
2
votes
0answers
114 views

How to improve the 3D effect of this plot? (TikZ and pgfplots)

I have been experimenting with plots for a particular data series I have generated. The code below plots a surface around a polar axis reading in data from a file. The file can be downloaded here (...
2
votes
0answers
154 views

The error of ' ! I can't find file `tikzlibraryarrows.meta.code.tex'.'

I want to draw some 3D cubes. I found a useful script on how to draw parallelepiped and cube with latex?. The part of code is as follows, \documentclass[border=5pt, multi, tikz]{standalone} \...
2
votes
0answers
80 views

fading tikz fancyhdr problem in book printing

I recently had a book printed, where I used fading lines in the header. In the PDF it looks correct, bu in the actual print, the lines on the left pages didn't fade as much as the lines on the right ...
2
votes
0answers
58 views

How to Run this TikZ video in OS X and Beamer?

Code found here and video here % OS X recommendation 1st code block; use the second for others \documentclass[10pt]{beamer} \usetheme{Warsaw} \usepackage{media9} \usepackage{tikz} \begin{document} ...
2
votes
0answers
44 views

Boundary not shown when drawing grid lattice with tikz

I want to draw some grids using tikz but some of them don't shown the left vertical boundary. Currently I have to decrease the coordinate of the left boundary a little to make it work, say, change 6 ...
2
votes
0answers
80 views

Bodegraph - How do I convert transfer function coefficients into parsable arguments?

I need help understanding how the conversion explained in Problems with bode diagram (representing an image) is done. Here it is explained that the transfer function is needed on a specific form, ...
2
votes
0answers
41 views

controls not recognized

I want to draw a curved line and define the coordinates relative to previous nodes I have used (instead of absolute coordinates which works fine). This is what I have so far but it gives the following ...
2
votes
0answers
78 views

Recursive tree in Tikz

I'm trying to build a large inverted tree structure in Tikz, like the one below (except much larger, and ideally recursive): In this tree structure, each 'line' is made up of three nodes, and each ...
2
votes
0answers
54 views

I miss my ylabel in my latex pdf file

I draw the pic with tex, and I have included all the packages listed: \usepackage[perpage]{footmisc} \usepackage{graphicx} \usepackage{tabularx} \usepackage{paralist} \usepackage{uestc/common}...
2
votes
0answers
53 views

Tikz behaviour at page end

I am using tikz to put braces around an enumerated list as mentioned here. I have two curly braces with multiple comments as shown below The problem is I am not able to get the braces at the right ...
2
votes
0answers
59 views

Sphere shading in cmyk colours

I'm trying to make a sphere in cmyk colours. In rgb, the spheres are nicely overlapping as expected. Is the solution using @Christian Feuersänger suggestion here? \documentclass{standalone} \...
2
votes
0answers
107 views

How to draw irregular 3d shapes in TikZ?

I would like to draw the cylinder-like irregular shape displayed below using TikZ. I know how to plot regular cylinders using TikZ, however the commands I know don't apply for irregular 3d shapes, ...
2
votes
0answers
35 views

The endpoints of the domain entered as a function in a `pgfplots` not recognized

I have the graph of y = 1/x in a tikzpicture plotted to the right of text in a minipage environment. I have domain=-3:{-1/9} for the part of the graph to be plotted over the set of negative real ...
2
votes
0answers
64 views

How to use MOdiagram for d-orbital splitting?

I've been trying to use the package MOdiagram to simply draw the orbital diagram of one atom, but I have the problem that MOdiagram (as far as I know) only allows you to input s, p, d, and f orbitals, ...
2
votes
0answers
61 views

unable to compile tex file without deleting .aux and . bbl files

When I delete the files .aux and .bbl the compilation succeed allowing me to generate a PDF file, but if I want to compile without deleting these files the following error message appears. Command ...
2
votes
0answers
61 views

How to fix a coordinate for a node wrt grid in Tikz picture (Tikz101)

I am at Tikz 101 level so am figuring out a unified way of drawing graphics so that the all are positioned wrt to a fixed ref point in all slides in a beamer document. To get a reference coordinate, ...
2
votes
0answers
67 views

How to get rid of the following error with pgfplots?

When I am running the following code with data.txt file... \documentclass{standalone} \usepackage{tikz,pgfplots} \begin{document} \pgfplotstableread{data.txt}\Rtable \begin{...
2
votes
0answers
48 views

Have tikz bezier control points defined off of page

I have taken it on myself to reproduce some of my university's PPT templates (not that I necessarily love the design, but I have some good reasons for undertaking this venture) using Beamer. I have ...
2
votes
0answers
119 views

Use animateinline inside tikzpicture

I am doing a beamer presentation with animated tikzpicture environments. In the MWE, the top figure consists of a plot which never changes and a point moving on it. Since the plot is long to compile, ...
2
votes
0answers
63 views

Normal and tangent vector at specific absolute rather than relative point

I would like to draw a normal vector on a curve at a specific point. I looked up several questions (e.g. 1, 2, 3, etc) and the answers contain nice solutions for drawing a tangent or normal vector to ...
2
votes
0answers
59 views

How to set the size of a shape?

Using some custom shapes I found that the text labels are not considered for the calculation of the bounding box of my shapes. Do I need to draw some (invisible) shape to generate the bounding box or ...
2
votes
0answers
57 views

How does tikz-3dplot parse keys?

I'm trying to draw in spherical polar using tikz-3dplot and I don't understand how some of the \td... commands parse their args. What I do is define a pic, which takes 2 arguments (using /.style args) ...
2
votes
0answers
45 views

dot2tex & tikz: align cluster

my code produces the following graph: \documentclass{standalone} \usepackage{tikz} \usepackage{dot2texi} \begin{document} \begin{tikzpicture}[auto] \tikzstyle{n} = [draw,shape=rectangle,minimum ...
2
votes
0answers
104 views

Problem with the TikZ library hobby

I am using the last version of MiKTeX. After the last update I realize that the TikZ library hobby is no longer working. As proposed by the answer of this question, I downloaded it again from here but ...