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)

1
vote
1answer
41 views

Include tikz pictures in main script

I include all my tikz figures with \includestandalone{filename}. I am using \tikzset after \begin{document} in all my tikz figure files but I use \usetikzlibrary in the header (outside of ...
0
votes
0answers
48 views

How to reverse battery polarity in tikz circuits library

I can't find the way to reverse the polarity of a battery symbol in the circuitikz library! Surely there's a way! Can anybody point in the right direction?
2
votes
1answer
35 views

Tikz: setting options for pin

I just found the pin option to drawing, and it looks useful in some of the things I want to draw. How do I format it though? I've tried pin=[red]60:{Hey!} and I get the error Cannot parse this ...
2
votes
1answer
41 views

drawing a line that stops at the edge of a shape

Is there any way to modify this example so the line to "Hey!" stops at the edge of its node boundary? (Or at least stops drawing some distance short of its final position) I know I can use a fill but ...
2
votes
2answers
165 views

Convert TikZ to EPS using pdfLaTeX

I would like to convert my TikZ images to EPS format and save in a separate file while pdfLaTeX compiles my document, ideally. Note I am using MikTeX and TeXstudio. Otherwise, I would like to be able ...
5
votes
2answers
39 views

positioning a node on a path rather than “above” or “below”

Is there a third alternative for nodes on a path, that means "on" rather than above or below? The default appears to be above. \documentclass{standalone} \usepackage{tikz} ...
3
votes
1answer
45 views

Flipping nodes in a pie chart

I only want to flip the nodes for "Pecan" and "Peach" in the pie chart. \documentclass{amsart} \usepackage{tikz} \begin{document} \begin{tikzpicture} \coordinate (O) at (0,0); \draw (O) circle (3); ...
4
votes
1answer
52 views

pgfpositionnodelater with nested \tikz environments (Issue with PGF 2.1 -> 3.0 upgrade)

I'm trying to use \pgfpositionnodelater to create and measure nodes before placing them. (Their size influences where they should be placed) This works fine until I try to use \pgfpositionnode later ...
2
votes
1answer
45 views

Node position based on two nodes

I'm trying to position nodes with tikz to draw a schematic. I would like to position nodes containing explanations text stacked below each other and at a specific x shift from the related word. My ...
4
votes
1answer
61 views

Follow up question to data cubes in Latex

This Question has to be seen as a follow up question of this one: Is it possible to produce data cubes in Latex with reasonable effort? Based on the code that @Qrrbrbirlbel posted I came up with ...
1
vote
1answer
46 views

Getting the proper shading within a circle - a bit of litography

In the following code, I have a diameter drawn in a circle. Along the diameter, I draw seven equally spaced nodes. The two nodes closest to the center, but not the center, are labeled B and C. I ...
2
votes
1answer
90 views

How to draw a graph in tikz with emoticons?

I would like to draw a graph and some emoticons with it using tikz in latex as shown in the picture below. N.B. I am doing a presentation in beamer and the meaning of the picture is that the triangle ...
1
vote
0answers
30 views

Displaying measures and labels of angles at the same distance from their vertices

I have the measures for two angles and the labels x, y, and z for three other angles. I use the angles package to them. How do I get them at the same distance from their vertices? ...
2
votes
1answer
52 views

Tikz coordinate calculations inside foreach

As part of a drawing that will go with an explanation of diffraction, I want to draw the "outer rays" of a beam of light and draw several rays in between. An MWE of how I'm going about this is shown ...
2
votes
1answer
125 views

Work breakdown structure (WBS) horizontally

I need to do a "work breakdown structure". As it has to many items on the second level i would like to arrange it horizontally? On http://www.texample.net/tikz/examples/work-breakdown-structure/ I ...
3
votes
1answer
42 views

URL with dotted/customized underline AND line breaking

How can I get a dotted URL underline with line breaking? I found this solution: Having all links underlined with dotted line but this TIKZ one does not work with line breaking. I also tried a ...
1
vote
1answer
28 views

How to connect to the corner of a rectangular node with a thick line without overlap?

I would like to connect a thick line with the corner of a rectangular node. \documentclass[tikz]{standalone} \begin{document} \begin{tikzpicture} \node (rect) at (0,0) [draw,minimum ...
3
votes
2answers
50 views

Why does adding multiple addplots shift my axis?

I was trying to define an axis environment within a node. Upon adding multiple addplots I observed a shift in the axis position, shifting further for more addplots. Below is an example to recreate the ...
2
votes
1answer
120 views

How is this code not drawing a line through a point

In the following code, I have nodes A and B on the same horizontal line, and I have a ray from B inclined at an angle of 58 degrees with respect to the horizontal line. To make a line through B, I ...
5
votes
2answers
161 views

Glowing path in tikz

I want to draw in tikz a line that diffuses and a dashed path that is basically the contour of this diffused area. I think that in photoshop the diffusing effect can be done by a blurred stroke. Is ...
0
votes
1answer
110 views

I try to draw the figure by using Tikz,but can't [on hold]

It know how to draw simple circle using TikZ. But this is little bit trickier for me.
4
votes
1answer
50 views

Positioning entries in a Venn diagram - edited version

The code here displays the numbers in a Venn diagram for three sets quite aesthetically. (The sets are A, B, and C, but f, F, g, G, h, and H are displayed; they are there just to facilitate reading ...
3
votes
1answer
46 views

Bounding lines around tax nodes

I am trying to draw lines around a number of nodes. I very much like the definition of \convexpath definition given here, but it is not working well on my setup (MacTex 2014 with all available ...
1
vote
0answers
28 views

pgfplot mesh with end arrow decoration

Inspired by this question I tried to decorate my pgfplot mesh with an end arrow. However, this end arrow is not properly positioned so that the end of the line shows behind the arrow tip. Here is a ...
2
votes
2answers
49 views

TikZ: can't add a break line into an equation in my flow chart

I'm trying to create a flowchart. Is it somehow possible to add a line break while working with equations? I have found a few solutions if there is no equation involved. \node [block, below of=init] ...
5
votes
1answer
53 views

Key names of the axis limits when not set explicitly

In the minimum working example below I use the keys xmin, xmax, ymin and ymax for calculations of coordinates for annotations. However, this only works when the axis limits are set explicitly in the ...
4
votes
1answer
43 views

Plot instance missing in PGFplots

I have written a small macro to draw triangles with slope in PGFplots axis environments. I try to draw two of these triangles. However, the first one is missing for some reason. How can I resolve ...
0
votes
0answers
32 views

How can i print the label of a subfloat inside a TikZ node?

I'm laying out a few tikzpictures side by side (made with pgfplots, but I think it should not matter). I'm trying to use the subfig package to be able to reference single subfigures. Everything works ...
2
votes
1answer
41 views

Use same label for different nodes in tikz graph

I'm using section 5 "Tutorial: Diagrams as Simple Graphs" of the TikZ manual to draw syntax diagrams in LaTeX. One issue I'm facing however, is that I want to use the same label for different nodes, ...
4
votes
3answers
55 views

How to clip shapes within a double path

I need to clip the circle so only the part of the circle within the path is visible (my output is the reverse). This is the code I have tried. What am I doing wrong? \documentclass{book} ...
2
votes
1answer
40 views

Ticks vanish in pgfplots if groupplot is combined with set layers and axis on top

I am trying to use set layers to get the grid behind the tick labels and axis on top=true to get the axis on top of the plot lines. If I use these settings in a groupplot neither the ticks nor their ...
3
votes
1answer
84 views

3-labelled automaton

I need to draw a (kind of) automaton with every arc having: a "letter label" at the midpoint of the arc, and (some) having a "number label" at the beginning of the arc, a "number label" at ...
3
votes
2answers
138 views

Calculation of coordinates for TikZ annotations in PGFplots axis environment

I'm trying to do some annotation with TikZ in a PGFplots axis environment by means of nodes. However, the placement of the nodes is going wrong all the time, see the minimum working example below. How ...
0
votes
1answer
30 views

How to detect pagebreaks and insert text at the top of the typeblock on each new page?

I have a document which pulls in an external .tex file which is procedurally generated from a database and then interpreted into a multiple page table-like graphic written in TikZ. However, when I ...
3
votes
2answers
140 views

Monte Carlo Method Drawing

I would like to produce a Monte-Carlo-Plot with tikz and pgfplots, similar to this: I've already tried to adapt from this thread: Filling specified area by random dots in TikZ I've tried defining ...
0
votes
1answer
53 views

Manipulating tikzpicture and includegraphics

I am trying to draw a cauldron with 2 images going in for cooking! I thought of using tikz to draw the cauldron and ti include the images by adding them as nodes in the tikzpicture environment. ...
7
votes
1answer
92 views

Positioning entries in a Venn diagram

I draw a Venn diagram for three sets A, B, and C. The radius of each circle is $2\sqrt{2}$, but I entered it as 2.828 because TikZ could not compile my code for the circles - such as \fill[draw=red] ...
3
votes
1answer
37 views

Disable right column for this page

I have a long, two column document. In one of these pages, I added a graphic that spans exactly the right half of that page and touches the edge; done with this code: \begin{tikzpicture}[remember ...
5
votes
1answer
83 views

How to draw a collection of small bipartite graphs in latex?

I would like to draw simple graphs in latex with tikz. My figure that I would like to produce looks like this and I would like to put it in beamer.
2
votes
1answer
27 views

Automated plotting with \input inside \addplot

I'm trying to draw some figures with externally generated data. I'd like to draw a simple line inside a tikzpicture using pgfplots like so: \documentclass{article} \usepackage{pgfplots} ...
2
votes
1answer
100 views

Drawing a triangle

I want to draw a triangle (with the package TikZ). I don't know how to draw the line, which links the BC points. I know I have to use these commands: +(a,b), ++(a,b), (a:b|-c,d). Unfortunately I ...
11
votes
2answers
596 views

TikZ- Draw a cooking pot

I am trying to reproduce the following picture in tikz I am able to draw something that looks like that but it's not the same... Any chance to draw it or make it even more fancy? My code is ...
8
votes
2answers
335 views

Is it possible to produce data cubes in Latex with reasonable effort?

I want to state from the beginning that this is not supposed to be a “please draw for me” post. I just would like to know if it is possible to produce a data cube similar to this with reasonable ...
2
votes
1answer
47 views

How to move a tikz picture inside a beamer frame

I am trying to place a tikzpicture in a beamer frame on top of an image. In principle this should be easy, however changing the at(x,y) cordinate doesn't seem to have any effect at all. My code is ...
1
vote
1answer
73 views

Drawing pie skill chart for resume [duplicate]

I am trying to do a fancy resume and I want to include in it a pie skill chart (see image below). Any Idea on How Can I create this image in Latex. Thank you for your help, Cheers
3
votes
1answer
38 views

TeXstudio - get output of pgf externalize in log Window

I like the functionality of TeXstudio to show me errors concerning my latex-code in the Log-window. If I use pgfplots and externalize all externalized pictures are compiled in a separate call. So I ...
3
votes
1answer
28 views

Number format for a node

In the following minimum working example, how do I change number format that is used for the node? For instance, cut off the number after 5 digits. \documentclass{standalone} \usepackage{currfile} ...
2
votes
1answer
23 views

Using math-mode in pgfplots axis unit

I want to apply a unit to my axis. Usually I use the siunitx package for that. However, this time I would like to use a Greek letter with a subscript \mu_\text{B} but my document won't compile. Here ...
4
votes
2answers
70 views

Problem with tikz foreach

I am using a foreach loop to add plots to an axis environment and want each plot to have its own color. To achieve this I tried the following: \foreach \x/\barcolor in {1/red, 2/green, 3/blue, ...
2
votes
2answers
103 views

Help with an easy tikzpicture (mathematical proof)

I'm completely lost trying to make this (I guess) rather easy picture. Any help would be greatly appreciated