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

Why are the numbers I get from the PGF profiler library all so close to an integer number of seconds?

I wanted to see whether some macros I wrote could be made noticeably quicker by eliminating the use of parsed PGF math commands, in favour of using the PGF math function macros (\pgfmathadd, etc.) ...
3
votes
0answers
91 views

How to define a pgf curve with points instead of controls?

The syntax to produce a Bézier curve in pgf is \pgfpathcurveto{first control point}{second control point}{target} This defines the curvature by control points. Considering the degrees of freedom ...
3
votes
0answers
152 views

pgfplots - divide y-axis in 2 parts

I have a plot, code here. Now the problem I have is that because of the scale of y-axis it looks as if the plots are actually just 3 lines. Now what I want is that the y-axis is sort of splitted. Into ...
3
votes
0answers
295 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 = ...
3
votes
0answers
138 views

Help for reproducing this page with TikZ

I am not new to LaTex/XeLaTeX, but, I am new to the TikZ world, I want to put the number page and the name of the book (or what ever) as this example: ...
3
votes
0answers
79 views

Fontsize with knitr & tikzDevice

I saw there are already a couple of questions on the argument (here and here) but since they are a few months old and since I can't manage to make the option dev.args=list(pointsize=5) works even ...
3
votes
0answers
163 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?
3
votes
0answers
115 views

tikzipicture have different arrow tip colors in pdf output and dvi output

i have the following mwe \documentclass[tikz,border=4pt]{standalone} \usetikzlibrary{arrows} \begin{document} \begin{tikzpicture}[->,>=angle 45,scale=3,ultra thick] \draw[help lines] ...
3
votes
0answers
305 views

TikZ graph not aligning

I am having two issues with TikZ pictures. I have three graphs side by side, and I am having issues, but only with some of them, which is very odd. First the x-axis is going out of alignment (some ...
3
votes
0answers
142 views

Using TikZ with DokuWiki

I am using DokuWiki to write my notes. The one thing that I am missing is the ability to plot. I would like to use TikZ to fill this need, but I have been unable to get exactly what I want. I am using ...
3
votes
0answers
168 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 ...
3
votes
0answers
273 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
194 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, ...
3
votes
0answers
381 views

Multipart nodes with multipart subparts — style issue

I want to typeset multipart nodes that have multipart sub parts — similar to the following diagram (from Miller and Ranum) I have tried using TikZ horizontal split rectangles inside vertical split ...
3
votes
0answers
199 views

Is it possible to use nodes as anchors?

I'm trying to recreate a rather complicated reaction scheme with chemfig and TikZ. For that, I'd like to position several amino acid side chains at specific positions. What I'd like to do is to use ...
3
votes
0answers
221 views

Specify positions for top/bottom in Beamer vertical shading

MWE \documentclass{beamer} % Yes, this is a poster, if that matters in the slightest %\usepackage[orientation=portrait,size=a0]{beamerposter} \mode<presentation>{} ...
3
votes
0answers
238 views

Scale TikZ nodes and shapes for a given canvas size

I have the following code to produce an hexagon coverage area: \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{shapes.geometric} \usetikzlibrary{positioning} \usetikzlibrary{calc} ...
3
votes
0answers
200 views

How do I change properties of a cube in TikZ?

I am looking at an example from How to draw a cube with TikZ where all faces have a distinct color? \documentclass{minimal} \usepackage{tikz,tikz-3dplot} \begin{document} ...
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 ...
2
votes
0answers
36 views

Problem with pgf library in TexLive

I am using TexLive, and I am writing a paper with someone else. He has sent me all of his files. He uses tikz to draw commutative diagrams. I am trying to compile his files, but I get an undefined ...
2
votes
0answers
41 views

“Text along path” decorations take absurdly long to be compiled for non-default font sizes

I'm trying to use a text along path decoration in tikz-pgf which causes absurd loading times, sometimes far longer than an hour if I want to print a whopping two (!!) words in for example \large font ...
2
votes
0answers
57 views

Node at each end of arrow, Tikz

I'm drawing a vertical arrow and I want to have a node at each end, but tikz seems to be putting the lower node in funny places: This is the arrow with the node above in the right place: ...
2
votes
0answers
51 views

How to make a line break in a TikZ matrix cell?

Can I use TikZ's own tools to make a line break in the matrix cells or do I have to use a tabular-environment or a \parbox? MWE (doesn't work, I included the faulty code) \documentclass[ 11pt ...
2
votes
0answers
74 views

Tikzpicture highlight on matrix in different slides

I am new to latex but I have to make a presentation in university with it (or more I want to do the presentation in LaTeX). But I am struggling with the package tikz. So my first question is ...
2
votes
0answers
89 views

Creating and importing custom tikz symbol

I created a custom symbol switch and I wanted to include it in my block diagram, by using the node command but it failed (compile error). Here is what I did: \documentclass{article} ...
2
votes
0answers
86 views

Issues with installing “tikz-cd” and “arrows.meta”

I have an up-to-date MikTeX 2.9 installation with tikz/pgf 3.0, but trying to compile \documentclass{amsart} \usepackage{tikz} \usetikzlibrary{decorations.markings} \usetikzlibrary{arrows} ...
2
votes
0answers
50 views

Package PGF Math Error: Unknown function 'north' (in 'north west')

I have created the following shape (it has some more features but the error is always the same), based on a rectangle. \pgfdeclareshape{set}{ %Like in rectangle but without all the separators ...
2
votes
0answers
77 views

TikZ: Arrowhead color defined by an option for another command

I was studying the PGF manual when I faced the following behaviour. Referring to the code below, I specified a latex arrowhead after the \filldraw element and the arrowhead is drawn of the same ...
2
votes
0answers
50 views

tikz command fails after .cls file change

The following tex content is a part a tex file which is added to main file with command input. With a new .cls and some other unrelated changes, tex isn't compiling with error message of ! Package ...
2
votes
0answers
100 views

Generating Gantt Charts for process scheduling

I am trying to create a gantt chart for my thesis on blocking analysis. I know of the pgfgantt package for generating gantt charts. But this package generates charts for normal schedules, what I need ...
2
votes
0answers
56 views

TikZ node positioning on edge parameter/label

I wonder if there exists a trick to position a graph node (relative), based on a parameter (label?) of an edge leading to it? I mean a kind of time diagram, i.e. for example I have a timed automat, ...
2
votes
0answers
41 views

Constraint for a decoration: how to know result after decoration

My question is kind of extending of this answer. I want to decorate a path with text only when text fit the path, but also I want to know if decoration was success. I need to know this to be able to ...
2
votes
0answers
40 views

Sectional plane disappears after using “unit vector ratio”

I simply can't find a solution for my problem. I hope you can help! I use matlab2tikz to plot a 3D slice plot from matlab in tikz. The problem is after setting the unit vector ratio = 1 1 1 the ...
2
votes
0answers
110 views

Wrapper box for TikZ picture

I am trying to wrap a tikzpicture node inside a box, so that I can refer to this "bounding box" from inside the picture for positioning the nodes relative to that box. I am looking for a command ...
2
votes
0answers
129 views

How should I read the current TikZ “label distance”?

I decided that I don't like the behaviour of the label functionality of TikZ. I want to get labels that are positioned using the anchor opposite the specified label angle. So for example if the label ...
2
votes
0answers
81 views

{tabular} styled like blocks in beamer.cls based upon booktabs.sty markup

beamer tables In Table looking like a block, two methods are shown to give tables a look similar to the block environment in the beamer class. Both require that header and content rows are split: the ...
2
votes
0answers
32 views

How does \pgfdecoratedpathlength work?

I am trying to understand how it works the decoration pgf module, in order to solve the unanswered question Fiber-Optic-Style decoration. I am having an hard time with some macros, for example ...
2
votes
0answers
74 views

How to make travel smoothly a tikz picture across a slide?

The beamer frame below shows a tikz circle. I would like the tikz circle to travel smoothly across the frame according to some "random" path. Can you help me with the animateinline environment? ...
2
votes
0answers
96 views

load tikz library from relative path

I recently externalized some of my often used TikZ commands into a library. This is as simple as writing the commands to a dedicated file and naming it tikzlibraryname.code.tex. Then it can be ...
2
votes
0answers
71 views

Showing graph nodes at various distance after pause in beamer

I have a graph with some nodes. I have the tikz code and output for the same as: \begin{tikzpicture} \tikzstyle{v} = [circle,fill=black!25, text width = 9pt,text centered, minimum size = 5pt, inner ...
2
votes
0answers
121 views

TikZ: How to set a node on an exact position on a line?

to set a node on a line the usual way should be something like this: \begin{tikzpicture} % place nodes \node[draw] at (0, 0) (a) {A}; \node[draw] at (5, 0) (b) {B}; \node[draw] ...
2
votes
0answers
104 views

Tikz library files at given path

I am using tikz library files from this question. I use the code: \usetikzlibrary{paths.ortho} and put files tikzlibrarypaths.ortho.code.tex and tikzlibrarypaths.ortho.tex in the root folder. I ...
2
votes
0answers
117 views

Unwanted extra vertical spacing with tikz: is it a bug?

I am writing an environment to format its content in a box with a background and that can be split across pages. I am using a splitting algorithm similar to the one used in the boites package. I want ...
2
votes
0answers
249 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 ...
2
votes
0answers
144 views

How to align bars with the legend?

I'm able to draw bar chart using tex file mentioned below \documentclass[landscape,a3paper,11pt]{article} \usepackage{pstricks-add} \usepackage{pgfplots, pgfplotstable} \begin{document} ...
2
votes
0answers
69 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 ...
2
votes
0answers
113 views

Tikzpicture: Data from File

I want to create a number of trees from a series of input files. What syntax would the file need to be in to create the following tree? This is what I need done, but from a file and with loops ...
2
votes
0answers
79 views

Producing odt from tikzpicture?

How can I produce an odt file from a tex source which includes tikzpicture ? I tried mk4ht oolatex test.tex but I only be able to produce an empty odt file from the following code : ...
2
votes
0answers
67 views

different coordinate frames for anchors and backgroundpath in node shapes?

I want to create a triangle shape for flow diagrams, so far I succeeded but the anchors I have defined are badly placed. This seems to be wired as I have just copied and pasted the code from the ...
2
votes
0answers
81 views

TikZ-PGF child nodes in different locations

When I use TiKz to draw two trees, each in a nested picture, the position of the middle child of the second tree is different from the first. This is even though the code for the trees is basically ...