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)

27
votes
0answers
996 views

A script language for beamer animations?

This is a follow-up question to Clever beamer animation? Writing a script that changes a tikz picture in beamer? as suggested there, I will put a bounty on this one. What I seek is a set of macros, ...
12
votes
0answers
204 views

Doing things to every page of a multi-page table

So, the designers did their job and specified coloured backgrounds and rounded corners for all tables. Like so: As described here, this requires doing nasty things like putting the whole table ...
11
votes
0answers
170 views

Did one manage to get the new dvisvgm driver from PGF 3.0 to work?

Background: PGF 3.0 added a new, direct way to create SVG. It now has a dvisvgm driver (pgfsys-dvisvgm.def) which has fewer (claimed) limitations than the pgfsys-tex4ht.def driver. Except it doesn't ...
11
votes
0answers
427 views

Why isn't the arc drawn on the good plane using tikz-3dplot in Tait-Bryan convention

As some people on tex.sx, I used the tikz-3dplot and changed some commands to use Tait-Bryan convention instead of the default Euler convention. As you can see on the following picture, the rotation ...
8
votes
0answers
276 views

How to exclude or remove weekends from ganttchart

Hi there and sorry for the incomplete question which only a psychic could answer :-) My problem is that I want to have my nice ganttchart or time schedule, but without including weekends. As my ...
7
votes
0answers
55 views

TikZ image breaks PDF printing

I have a strange conundrum. I created this image in TikZ: \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{fadings} \begin{document} \begin{tikzpicture} \draw[color=black!30!white,line ...
7
votes
0answers
73 views

TikZ: suspend drawing for part of a path

This is something very basic that I've often been slightly annoyed with when using Tikz, mostly since I think I've seen that it is possible somewhere before and I'm annoyed with myself for not ...
7
votes
0answers
67 views

Cannot use pgf-blur twice with XeLaTex

The following code \documentclass{article} %\def\pgfsysdriver{pgfsys-dvipdfmx.def} %this line does not matter \usepackage{tikz}\usetikzlibrary{shadows.blur} \begin{document} \begin{tikzpicture} ...
7
votes
0answers
249 views

Draw background lines dashed in TikZ-3dplot depending on view position

In the graphic the red line is partly covered (in the background) of the 3d-object. Is it possible to draw the background parts of the lines dashed (or calculate the "intersection" points)? After ...
6
votes
0answers
63 views

Tikz generated PDF produces ? when citing references

I am trying to generate a PDF figure on the fly using TikZ (code below). The figure references from my .bib file and so when I run pdflatex the first time, the PDF gets generated with ? ...
6
votes
0answers
130 views

HowTo: Tikz 3d Plot of an object

Hi I have problem with plotting an integration area. In the x-y-plane the area ist bounded by the polynoms 3x^2-1 and 3-x^2. In z-direction there are the limits z=0 and z=4-x-y. Now I want to plot the ...
6
votes
0answers
201 views

Special effects in TikZ leads to unprintable PDF

So I recently made a picture of the Mexican Hat Potential (related to the Brout-Englert-Higgs Mechanism of particle physics). I am more than satisfied with the graph and everything, but I noticed ...
6
votes
0answers
134 views

How to typeset a letter or grapheme specimen with alternates?

I want to print a font specimen for certain letters, each of which should cover a complete A4 page. The Open Type font contains many letters with several glyphs, which are accessible as character ...
6
votes
0answers
183 views

how to add parameters to shape which internally use 'append after command'

years ago Mark Wibrow provided me the following code to adding text in inside border of a (rectangle) shape on this comp.text.tex thread: \documentclass[tikz,border=5mm]{standalone} %%% code from ...
6
votes
0answers
3k views

How to incorporate and scale matplotlib plots in latex using the PGF backend?

I am using the pgf backend of matplotlib to generate pgf files which I want to put into my latex document using tikzscale to be able to resize them easily. Example python code: #!/usr/bin/env python ...
5
votes
0answers
70 views

Beamer's (implicit) options regarding tikzpictures and shadows

While trying to use the torn page effect in a beamer document, I was confronted to an unexpected problem. If you just take the the code of this answer and compile it, you get: If you just change ...
5
votes
0answers
290 views

Links in mindmap as table of contents in beamer

I decided to use a mindmap to show the ToC of my presentation and the section outline. I'd like to have the nodes clickable like the standard ToC, but I couldn't find any command like ...
5
votes
0answers
252 views

Transform paper folding diagram to 3D object or vice versa

I made this commands to make paper models, and I ask if it is possible to have a 3D view of them converting in tikz-3D, or backward. But it's easier to draw the flat model and generate the volume ...
5
votes
0answers
234 views

tikz: draw a piece of a path between given coordinates

I have a path in my application that I want to split up in smaller paths. These, I would like to draw with a label attached to them. Take the following image as an example: The upper arc is split ...
5
votes
0answers
177 views

Create violine plots

I use pgfplots for most of my plots. Now I need to add a violin plot. Is this possible with pgfplots or any other package?
5
votes
0answers
465 views

What is a good BPMN tool in Tikz

I'm looking for a nice package (or tool) to write BPMN diagrams directly into my documents. However, I had no luck so far. I found several tools that may help doing the diagrams, and then exporting ...
5
votes
0answers
138 views

Bad segment length evaluation in Tikz l-system

I would like to draw a fractal tree with Tikz lindenmayersystems library. Here is the code I use: \documentclass[tikz]{standalone} \usepackage{tikz} \usetikzlibrary{lindenmayersystems} ...
5
votes
0answers
344 views

Chains in nested tikz pictures

I am trying to draw a complex item (consisting of multiple \nodes) as a cohesive whole using a nested \tikzpicture. My outermost picture uses a chain, onto which every \node is put. My inner picture ...
5
votes
0answers
208 views

Is it possible to produce a context free grammar for Tikz path? node?

Even further, I would be happy to see a definition of the tikz language in the usual manner programming languages such as Java and Pascal are defined. The reason I ask is that I keep getting ...
5
votes
0answers
202 views

Absolute path for pgf externalisation

The graphic externalisation works well when it is done in a subfolder of my TeX files with the command \tikzsetexternalprefix{figures/} However, I get an error message when I try to set a different ...
5
votes
0answers
1k views

Tikzscale, trim axis left/right, and externalizing

tikzscale and trim axis do not play well together, with the produced figure being larger than requested because it ignores the size of the labels. I was wondering whether it is possible to use both ...
4
votes
0answers
47 views

Hyperlink a rotated nodepart

I would like to have the entire node part a link. But, it seems that once you rotate, hyperref has issues. The reference below say to place the rotated content in the hyperlink, but not sure how to do ...
4
votes
0answers
279 views

Batman Equation in LaTeX

Based on the answer from Gonzalo Medina, the Batman Equation in LaTeX is nearly finished. \documentclass[border=10pt, tikz]{standalone} \usepackage{pgfplots} \usetikzlibrary{arrows} \tikzset{ ...
4
votes
0answers
99 views

How to draw interlocking tori with Tikz?

I need to draw a couple of interlocking tori, as in the picture, using Tikz. I've been looking at some examples online and all I find is instructions to do it with Gnuplot, nothing about Tikz. If ...
4
votes
0answers
146 views

Draw a transparency gradient arc over a rectangle with tikz

Consider the following code: % DOCUMENT TYPE \documentclass[12pt,a4paper]{article} % PACKAGES \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage[english]{babel} ...
4
votes
0answers
88 views

Add label to a rotated doubly linked list

I have done a doubly linked list as below but I still not satisfy the label annotation of begin and end. I know it's a bad style now but don't how simplify it. \documentclass{article} ...
4
votes
0answers
104 views

How can I get arrows to attach to outside of rectangle split in a graphdrawing layout?

I'm trying to make use of the newer (pgf > 3.0) graphdrawing layouts to do class diagrams, but I can't seem to figure out how to get arrows to attach to the outline of a rectangle split. I've read ...
4
votes
0answers
158 views

tikz-plots get recompiled every time when using tikzscale

For my thesis I have a lot of tikzplots exported from matlab using the matlab2tikz library. I want to use the tikzscale-Package together with externalization of the plots to save compiling time. Using ...
4
votes
0answers
90 views

Text highlighting that works with CMYK xcolor mode?

I looked at Cool Text Highlighting in LaTeX, and as my MWE (below) demonstrates: ... the first part, highlighted with soul's \hl, fails when [cmyk]{xcolor} is used. The accepted answer in the link ...
4
votes
0answers
161 views

tikz stops drawing into pdf after 20 line segments in plot generated through knitr tikzDevice

Problem If I try to draw a curve generated through knitr using tikzDevice into .pdf only 20 line segments of that curve are drawn and TeXstudio, through which I do it, just leaves message running ...
4
votes
0answers
69 views

How to colour scatter points and create legend entries based on a data type column

Say I have a file like this: \documentclass{standalone} \usepackage{pgfplots,filecontents} \begin{filecontents*}{data} 1 10 type1 2 25 type2 3 75 type2 4 100 type3 5 150 type3 \end{filecontents*} ...
4
votes
0answers
463 views

pgfplots: howto read touchstone files (s1p, s2p, s3p,…)

With pgfplots you can simply create nice plots that seamlessly integrate into your tikz figure. As a high frequency engineer you will inevitably use a network analyzer to measure S-parameters. The de ...
4
votes
0answers
249 views

Draw register map with TikZ

I was wondering if there was a way to easily draw a register map (like the one below) in LaTeX, possibly in TikZ? The closest I've gotten is just using the tabular environment and that's not even ...
4
votes
0answers
458 views

Decorating a PGFPlots bar graph with Tikz decorations

Update :- This appears to be a problem in which nodes near coords are handled by PGFPlots and incompatibility with Tikz decorations and fading library. I simply commented the nodes near coords line ...
4
votes
0answers
252 views

Problems with pgfplots, loops inside tikzpicture and reading from files

I was trying to implement this method (How to import ASCII coordinates to TikZ) to import coordinates and draw them, but I am having this problem Undefined control sequence \end{tikzpicture} Extra }, ...
4
votes
0answers
218 views

pgfplots: Plot only parts of table and in “random” order

I have been lurking around stackexchange for a long time and so far been able to find solutions for my newbie problems but now I'm really stuck! My problem is probably not that complicated, yet a bit ...
4
votes
0answers
216 views

Hebrew text along a (circular) path is typeset LTR instead of RTL

I have read Typesetting straight baselines in a circular arrangement and I would like to have a solution for my situation. I would like to insert some text in Hebrew on an annulus. Here is my attempt ...
4
votes
0answers
797 views

Create legend tikzpicture without pgfplots

I already tried to create a legend with pgfplots but it seems that conflicts with tikz-uml library (another tikzpicture that I have in the same file) so I want to know how can I create a legend with ...
4
votes
0answers
290 views

Convolve two 2D Gaussians using tikzfading - intensity issues

I would like to visualize the convolution of two 2D Gaussians (or something looking similar). To do this, I declare them in a tikzfadingfrompicture environment. However, to get the desired result and ...
4
votes
0answers
301 views

drawing lines using polar axis coordinate system in pgfplots

I would like to draw arrows with polar axis notation in a pgfplots figure that has Cartesian axes with the draw command: \draw[->] (polar axis cs:radius=1, angle=30) -- (polar axis cs:radius=2, ...
4
votes
0answers
163 views

Is is possible to associate part of a drawing to a pdfcomment (or similar) interactive bubble?

It is apparently possible to put a TikZ drawing inside a pdfcomment (but using mbox). Is is possible to associate only part of a drawing (e.g. a line) to a pdfcomment? Below it is the suggested ...
3
votes
0answers
40 views

Pgfplots: Transpose headrow as first column in: confusion matrix with colormaps / heatmaps

My question builds on code from this question: original question/answer What I am trying to achieve: I want to use pgfplots to build a table, where the header row is automatically added as first ...
3
votes
0answers
42 views

How to avoid double & dotted/dashed lines unexpectedly joins the segments?

As you can notice, the dots of the dotted double line are joined by two very thin lines. Also the dashed-double line joins them automatically. Is there a way out to remove those unions? (I left knots ...
3
votes
0answers
90 views

Pgfplots Boxplots with a thick line at the mean value

pgfplot produces nice looking plots, that have consistent look and feel. But sometimes you have a good reason to change that look, and I found it tricky to change style of an specific line, circle, ...
3
votes
0answers
54 views

How to select a range of data within a .csv file in latex using pgfplots?

I am generating a plot of data using pgfplots in latex. I am using data from several excel files as .csv. Here is the MWE: \documentclass[border=5mm,convert]{standalone} \usepackage{pgfplots} ...