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)

2
votes
0answers
22 views

lyx with background won't load unless I type \newpage after the text

I try to write a document with a background in lyx, I made sure it works on Texmaker, on Texmaker it needed to be built a couple of times and then it got it right but when I try to preview or export ...
2
votes
0answers
52 views

How to add vertical and horizontal lines to ybar figure and defining colors for bars?

I'm trying to reproduce a figure from a paper so it would be in line with the visual style of my paper. The figure I'm trying to reproduce is Since originally posting I've found a way to define ...
2
votes
0answers
41 views

Externalised pgfplots figure.eps gets rotated 180 degrees

I am externalizing some plots by pgfplots in .eps format by using these two sizes case1: width=0.55\textwidth height=0.40\textwidth case2: width=0.6\textwidth height=0.45\textwidth which give a ...
2
votes
0answers
69 views

How do I get a straight line in \begin{tikzpicture}[decoration=Koch snowflake]?

The following code \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{decorations.fractals} \usepackage{pgfplots} \begin{document} \begin{tikzpicture}[scale=3,decoration=Koch snowflake] ...
2
votes
0answers
62 views

beamer: make a picture stay in the foreground

I am trying to write some style file for a poster framework, we can use. The header is almost ready: \setbeamertemplate{headline} { \begin{beamercolorbox}[ht=15cm]{headline} ...
2
votes
0answers
103 views

Solid of revolution about arbitrary axis

I'd like to rotate the region between y=cos(x) and y=x^2 - 0.25*pi^2 about the line x=pi. How to do this? So far I have only managed to rotate around the x-axis: \documentclass[letterpaper]{article} ...
2
votes
0answers
64 views

Custom tikz pattern: hatchangle

In PSTricks there exist the fillstyles vlines, hlines, crosshatch which have counterparts in tikz patterns library. However, in PSTricks they can be modified by following options: hatchwidth, ...
2
votes
0answers
50 views

Why is there a compilation error? - moderntimeline

I am using article class to prepare my CV. When I went through this, I found that moderntimeline package can be used only with moderncv. So I took only the TikZ code answered by Jake.But I get ...
2
votes
0answers
149 views

Generating On-Shell Diagrams

There is a paper called "Scattering Amplitudes and the Positive Grassmannian", and they have diagrams that they call "On-Shell Diagrams". (See pg. 10 of http://arxiv.org/pdf/1212.5605v2.pdf). I am ...
2
votes
0answers
48 views

callout with multiple pointers, how to design it

I know, that this question was asked more than year ago (see here), but given answer is limited to callouts without border line. Is there a way to improve there given answer with callout shape with ...
2
votes
0answers
48 views

Tikz: Drawing lines with \draw[opacity = 0] produces .dvi files in which the lines are visible

Here's my MWE: \documentclass[11pt]{article} \usepackage{pgf,tikz} \begin{document} \begin{figure} \begin{tikzpicture} % Bounding box coordinates \coordinate (q) at (1, 0); ...
2
votes
0answers
43 views

Location and size of pgf plot axis in a tikzpicture - with tikz positioning library?

This could be a second part to Positioning pgfplots axis in tikzpicture , I guess ; consider the following MWE: \documentclass{standalone} \usepackage{pgfplots} \usetikzlibrary{positioning} ...
2
votes
0answers
144 views

pgf-Tikz code generator for Latex

LatexDraw is a PSTricks code generator for Latex. LatexDraw generates PSTricks codes of any fugure are drawn. Are there any such tools that will generate pgf-tikz code of any figure for latex? If ...
2
votes
0answers
57 views

TikZ: Printing press cannot print document due to RGB colors, layers and transparency

The place I print my thesis needs the PDF file to conform to certain demands. Demands I was not aware of prior to sending them the document. So, here is the challenge: Using PGF/TikZ how can I bulk ...
2
votes
0answers
104 views

polar chart heat map

I was wondering if anyone could help me with making a polar heat map. To the template i chosen is http://www.texample.net/tikz/examples/polar-coordinates-template/ what i would like to do is to colour ...
2
votes
0answers
68 views

pgfkeys: I do not know the key '/tikz/triangle 60'

Here I am back again with a new question. I try to make a poster with beamerposter. Now I would like to draw a arrow with tikz, but I get this error message pgfkeys: I do not know the key ...
2
votes
0answers
63 views

(not)implies sign as edges in tikz graph

I would like to make a graph in tikz as in However I would like to have an implies symbol instead of an arrow. How can I make a figure such as above but with implies (as well as not implies signs) ...
2
votes
0answers
36 views

Why doesn't prefixing an estyle work

Prefixing a style to a previously created /.estyle using the current (June 2014) iteration of Mac Latex inserts a \noexpand before the original style. As you can imagine this causes chaos! Bug?
2
votes
0answers
50 views

How to position a node in the corner of the (current) TikZ picture?

I'm drawing a flowchart as a standalone TikZ picture and want to position the legend in the lower right corner of the picture. How can I reference this position or find its coordinates?
2
votes
0answers
62 views

Passing an array type argument for new command

I've looked around and can't seem to find anywhere, but I was wondering if there is somewhere you can do something like the following: \newcommand{\loopy}[1]{ \begin{tikzpicture} \foreach ...
2
votes
0answers
65 views

Fork down edge style with Tikz 3.0 tree graph

When node/child style is used, it is possible to achieve fork down edge style picured here: What would be the syntax for the similar edge style, but using graph? The below MWE produces sloped ...
2
votes
0answers
153 views

Installing pfgornament?

Note: I have already searched through this site on how to do this but a lot of the things explained make little to no sense to me, I am a novice at this stuff so I was wondering if could get a little ...
2
votes
0answers
93 views

Double arrow a la chef with two edges shows gap

I am looking for a double arrow that describes a complete 180 degree path. I found a wonderful example, but I have a little issue with one of the edges. \documentclass{article} \usepackage{tikz} ...
2
votes
0answers
55 views

How to zoom (and apply grid on) subfigures

So I have folders containing triplets of images which all have the same style as shown in an example below It is basically an automatically generated image and a color-bar besides it. I want to ...
2
votes
0answers
118 views

How to draw “stacked blocks” with tikz?

I want to draw using tikz a figure which looks like the following: I started writing it using nodes and positioning them using right of =, above of = but I don't know how to avoid using hard coded ...
2
votes
0answers
98 views

How to draw an arc greater than 180 deg in tikz-3dplot?

\tdplotdrawarc command draws an inferior arc by default, but how to draw an superior arc? I know that there is a way to draw an superior arc in tikz: \tikz \draw (0,0) arc [start angle=0, end ...
2
votes
0answers
65 views

TikZ coordinate transformation resulting in miscalculated node position

Why does the coordinate transformation in the following example result in a miscalculated position for E? \documentclass[border=4pt]{standalone} \usepackage{tikz} \usetikzlibrary{calc} ...
2
votes
0answers
79 views

Colour of edges according to edge value

I am currently modelling traffic and my map of roads consists of nodes connected with lines. For each road there is maximum capacity and amount of traffic and each road therefore has a utility value ...
2
votes
0answers
108 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 ...
2
votes
0answers
75 views

Getting undefined control sequence even the command is defined

I want to add a command to pgfgantt package that draw vertical line at a specified date (like the one for the today line). Here's what' I want to get (green line) : So I looked to pgfgantt.sty to ...
2
votes
0answers
86 views

Using tikz overlay / remember picture option with forest trees

I want to connect two forest trees with an arrow, in a similar way it is discussed here for plain tikz trees. However, it seems to be impossible to add options to the forest environment in a similar ...
2
votes
0answers
88 views

Tikz for generating pdfs and using in latex, compiling problems

I tried using the advices online for implementing tikz into the texmaker and Miktex combiantion. The Miktex is updated and the texmaker runs normally. The tikz version from a flow example runs ...
2
votes
0answers
79 views

How to draw a graph on a sphere using tikz

I'm trying to make some TiKz graphics for a project I am working on and I am a little stuck. What I am looking for is to be able to draw some planar graphs on a sphere's surface? Any help would be ...
2
votes
0answers
183 views

Export to TikZ path in Inkscape

I'm currently using Inkscape 0.48.4 (64 bits) on Windows 8. I downloaded the inkscape2tikz extension, copied the three files on the lower left and put them in the inkscape/share/extensions directory. ...
2
votes
0answers
88 views

Lattice or Per Gelosia multiplication - how to avoid the use of the fp package

Is there a simple way to improve the harmony of the nodes in particular of the upper row and the right column distance ? Edit Thanks to egreg the node are more in harmony. Still : Is it possible to ...
2
votes
0answers
83 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
64 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
104 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
92 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
136 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
395 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
234 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
122 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
56 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
159 views

Relative paths when using tikz externalize + subfiles

I have a large document which consists of ~100 smaller files which are compiled together using the subfiles package. To be able to use a common style file for them, whose relative path should be the ...
2
votes
0answers
75 views

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

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 ...
2
votes
0answers
134 views

How to close path for complex path in TikZ?

I'm doing a bit of 3D primitive fugures using this code: \documentclass[tikz,10pt]{standalone} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage[english]{babel} \usepackage{mathptmx} ...
2
votes
0answers
829 views

Tikz edge label position

Is there a way to set the location of the position of edge label when using the tikz graph package? I attempted to look for samples of this being done in the manual, but was unable to find any ...
2
votes
0answers
85 views

Defining a command for drawing contours

I have seen a lot of questions asking about how to draw arrows along curves. The decoration libary can help with this, but the solution seems very manual.. Is it possible to make a command that draws ...
2
votes
0answers
156 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 ...