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
354 views

PDF/A compatibility with TikZ

When a LaTeX document contains TikZ figures with color gradients, it seems that Acrobat Pro's preflight function can no longer convert the PDF to comply with the PDF/A-1b standard. For instance, the ...
19
votes
0answers
533 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, ...
8
votes
0answers
85 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 ...
8
votes
0answers
237 views

How to use arrowheads from a unicode math font in TikZ diagrams under XeLaTeX or LuaLaTeX?

I like arrowheads in my TikZ diagrams to match the math font arrowheads. For Computer Modern, this is no problem: the TikZ arrows library provides matching arrowheads. But I often use other fonts ...
7
votes
0answers
420 views

best practice to include (standalone precompiled) graphics

General understanding I know that several people have asked about how to include plots and graphics (created by tikz and pstricks) into a latex document. What is the best way to include Matlab ...
7
votes
0answers
385 views

Scale .pgf image but preserve font size

Using Matplotlib, I generated a .pgf image. import matplotlib matplotlib.rcParams.update({"pgf.texsystem": "pdflatex"}) from matplotlib.pyplot import subplots, show from numpy import linspace x = ...
6
votes
0answers
59 views

tikz foreach loops: is there an equivalent of metapost's step?

I apologise if I'm using and searching with incorrect terminology. This seems an obvious question (to me) so I'm surprised I've not found anything (and so assume I'm missing something). In metapost, ...
6
votes
0answers
153 views

Cube with louvre planes in LaTeX

I have this code which produces the diagram below: \documentclass{article} \usepackage{tikz} \usepackage{verbatim} ...
6
votes
0answers
77 views

TikZ library creation

I'm wondering about the best (ie faster) way to create a new Tikz library. Let's assume I have the components in a PDF/SVG/whatever vector graphic program. There is a possibility to directly convert ...
6
votes
0answers
106 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 ...
6
votes
0answers
182 views

Typography and style - good choices for font styles in TikZ or pgfplots graphics?

When creating graphics or graphs with TikZ and/or pgfplots, one can put several commands to format the text to his likings. My question is: what are sound possibilities to format the elements in said ...
6
votes
0answers
125 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
274 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 ...
5
votes
0answers
91 views

Cross in particular plane in 3D

I'm creating tikz graphics in (x,y,z) Cartesian coordinate system. I'm defining objects (circle in my WE) in some plane using \tikzset{xyplane/.style={canvas is yx plane at z=#1}}. I noticed it ...
5
votes
0answers
81 views

How to draw revolved disk shape using TikZ?

Is there an elegant way to rotate this shape about the axis and draw in 3D? Ideally I would like to be able to draw a revolved view of this as 180 deg, 270 deg and the full revolution at 360 deg. ...
5
votes
0answers
78 views

Managing texts with many TikZ-pictures

I am writing a long text with many TikZ pictures. Since compilation time is beginning to grow, I would like to tell TikZ not to draw some (all) pictures. So far I have just commented unnecessary ...
5
votes
0answers
92 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
156 views

Reuse an image resp. a box in TikZ but have side-effects only once

I have a huge document (a pool of exercise problems) with lots of \input statements (one file per subexercise). In order to not get lost in this mess and easily open files from the PDF, I include a ...
5
votes
0answers
120 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

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
97 views

TikZ - bug in \pgfarrowsdeclarecombine*?

Can someone tell me if the following is a bug? MWE: \documentclass{article} \usepackage{tikz} \usetikzlibrary{arrows} \pgfarrowsdeclarecombine{onetwo}{onetwo}{triangle 45}{triangle 45}{open triangle ...
5
votes
0answers
246 views

legend problem in highlighting a data plot

I followed the tips on highlighting in data plots at http://www.howtotex.com/tips-tricks/highlighting-in-tikz-plots/ The highlighting does not work well with \addlegendentry. A MWE is shown below. ...
5
votes
0answers
266 views

Font size for TikZ picture datavisualization

This is a folloup question to: set fontsize for TikZ figure As I mentioned I design my pictures around the fontsize, therefore it is good for me if I can set the font size to a particular size for ...
5
votes
0answers
284 views

How to declare variable sizes in tikz to let LaTeX decide how to fill the page

LaTeX sometimes does some tricks to fill lines to the end, to fill pages up to the bottom and to prevent pages only containing a single line of text. When I create some tikzpictures there are ...
4
votes
0answers
54 views

TikZ/PGF 3.0 datavisualization vs pgfplots

To follow-up on a previous question TikZ datavisualization or pgfplots?, the current release of TikZ 3.0 has a flexible datavisualization engine that creates the same kind of plots as the more mature ...
4
votes
0answers
102 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 ...
4
votes
0answers
80 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 ...
4
votes
0answers
42 views

Error 'Dimension too large', with TikZ and PGF

I have adapted an example from TEXample.net (Original author: Andreas Menge, http://www.texample.net/tikz/examples/3d-graph-model/) for creating parallelepipeds with a helper grid to give perspective. ...
4
votes
0answers
118 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 ...
4
votes
0answers
119 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
77 views

Bottom margin not respected with tikz and verticaly centered boxes

I've been working on making a Cards Against Humanity clone in TeX and have everything but this one last bit working. The text on one card is long enough that I need to stick the logo/game name on the ...
4
votes
0answers
104 views

TikZ: turn a box into a shape

I want to turn a rectangle with ports in the top and bottom into a shape I can use with a node. How can I do this? \documentclass[tikz,14pt,border=10pt]{standalone} %%%< \usepackage{verbatim} ...
4
votes
0answers
123 views

TikZ Chromaticity Diagram

I'm trying to make a chromaticity diagram in tikZ, does anyone know how to make one? I want this My issue is not in forming the spectral locus that I can do, right now I'm only using three points ...
4
votes
0answers
102 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 ...
4
votes
0answers
156 views

What exactly does `inner sep` mean when node shape is circle

inner sep is not behaving as I would expect: \documentclass{article} \usepackage{tikz} \usetikzlibrary{calc} \begin{document} \begin{tikzpicture}[every node/.style={circle,draw}] \coordinate (P1) ...
4
votes
0answers
171 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 ...
4
votes
0answers
356 views

3d arrows in tikz, or arrows that fit perspective

I'm trying to draw a 3d arrow in a 3d box (well lots of them actually). I've got the 3d box sorted, but the arrow doesn't look quite right. I've set up my axes/projection with: ...
4
votes
0answers
146 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
109 views

tikz figure on beamer

How could we make the following figure, while having in each "click" one curve with a comment for it, and at the end having the whole shape? For the tikz figure How could I make curves in that way ...
4
votes
0answers
137 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
173 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
429 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
361 views

TikZ path decorated with coil or snake

A recurrent question on the forum is... How to draw a decorated path without a straight segment at the end? Usually the path described are straight lines (See post1, post2 or post3), but there are ...
4
votes
0answers
200 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
202 views

How to draw (and paint) the Voronoi regions of a series of points using Tikz?

How can I draw (and paint) Voronoi regions of a series of points in plane using Tikz? How about if the points are in 3d space?
4
votes
0answers
73 views

`shorten` and bounding box in tikz; possible bug?

While working out this answer, I found out that shorten options do not count towards computing the bounding box of a tikzpicture. Case in point: \documentclass{standalone} \usepackage[]{tikz} ...
4
votes
0answers
152 views

How to change style of a node based on its name?

I've create pie charts using pgf-pie and I have exactly the same problem as in this pgf-pie issue. I changed pgf-pie code to draw small percentages outside of the main circle. But I have one problem ...
4
votes
0answers
224 views

Common label for a groupplot

This can be considered a combination of the following questions How can a title be placed for a group of pgfplots? Align ylabels of grouped plots at a common line The following piece of code ...
4
votes
0answers
700 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
263 views

Using `external` selective for TikZ-pictures

For the following example: \documentclass{beamer} \usepackage[utf8]{inputenc} \usepackage{tikz} \usetikzlibrary{calc,external} \usepackage{pgfplots} \tikzexternalize \begin{document} ...