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

Putting coordinate axis on a TikZ picture

I get the following error: Package pgf Error: No shape named Q is known. Without the \begin{axis} ... \end{axis}, the code is compiled correctly. \documentclass[10pt]{amsart} \usepackage{amsmath} ...
2
votes
0answers
26 views

Horizontal decision tree in TikZ

I've been looking for a TikZ example for a while now that looks something like the attached powerpoint picture. I can't imagine that nobody has done something similar. I tried adapting this example, ...
0
votes
0answers
25 views

Undefined control sequence when using callout shapes

I wanted to use callout shapes from TikZ in a beamer presentation. Since I got problems with my own macros, I copied the source code from the TikZ manual and got the following error message ...
1
vote
0answers
33 views

Can I reduce the timeout for compilation?

I'm writing a document with many pictures using the tikz package. A small error in these often do not make compilation fail outright, but rather time out. (Example from ...
-1
votes
1answer
65 views

draw pair of scissors in tikz [on hold]

Is there someone who can help me to draw a pair of scissors in latex? The picture below is good enough. I have no problem with constructing the rings, but I don't know how to make the "body"? I have ...
1
vote
0answers
66 views

How can I draw Indian horoscope charts?

I was wondering if Indian horoscope charts can be drawn in LaTeX. Here is one example: It has 12 divisions. And in each of the divisions there may be one or multiple Grahas with their corresponding ...
2
votes
0answers
46 views

How to make a function inside the tikzpicture behave like outside

I have a makro which generates a structure(rule) and a reference to that structure. It does not behave when inside a tikzpicture. How to make the function robust to reference the structure even when ...
4
votes
1answer
112 views

Homework Problem Sheet Template

Could someone make this picture of Homework Problem Sheet Template in sample code in LaTeX with the same font size by the way i already add tow pictures in the front of document to make it more cute ...
0
votes
0answers
39 views

Self-Referencing Relationship: TikZ Crow's Foot ERD

I saw posting "Drawing a complete ER Diagram in Crow's foot style by TikZ" and answer. But, using the codes, I was not able to add any proper self-referencing relationship. E.g., an Employee ...
1
vote
1answer
44 views

Drawing Vertical Plots

is there any quick way to draw vertical plots with pgf-plots? I need to draw successive vertical lines for the plot below: \begin{center} \begin{tikzpicture} \begin{axis}[ clip=false, ylabel={}, ...
1
vote
1answer
31 views

Adjust edge endpoints depending on node label

I would like to draw a tree where the position of edge endpoints relative to the node depends on contents of the node, and may change between the parent edge and the child edges, to point out a ...
2
votes
1answer
24 views

How to group nodes of an automaton with tikzpicture

I want to obtain this result: and so far I've written this code: \documentclass{minimal} \usepackage{tikz} \usetikzlibrary{automata,positioning} \begin{document} \begin{tikzpicture}[% ...
2
votes
2answers
65 views

How can I add more coordinates to standard TikZ shapes?

Question I would like to know how to add an arbitrary number of coordinates to the default shapes of TikZ—particularly to the side of a polygon. Sample This is similar to ...
-1
votes
0answers
35 views

Bent shapes with TikZ [duplicate]

How would it be possible to draw something like this?
0
votes
0answers
31 views

font size with tikzset and tikzscale not working

I want to set the font family and size for all pgf/tikz figures in my preamble. But when I use tikzscale, then this is ignored. Can anyone help? \documentclass[a4paper,12pt]{scrbook} ...
6
votes
1answer
70 views

Equivalent to “shorten <=” for intermediate points

Halo everybody, I try to plot a data set using tikz & pgf. I want that the points in the plot are connected, but the line shouldn't touch the points. I can achieve this for the first and the last ...
0
votes
0answers
26 views

How do I create a tikz picture overlay that does not disturb the vertical placement of other text? [duplicate]

I'm having difficulty getting a tikzpicture to not cause a disruption in the vertical placement of material outside of the environment. Here's a MWE that illustrates the problem. ...
4
votes
1answer
59 views

Graph doesn't stay within grid

I've plotted two simple functions in Latex using tikz. It looks like this: As you can see, the curve doesn't stay within its grid. How can I fix this? This is my code. I'm using documentclass ...
4
votes
1answer
41 views

Mutiple composable styles for a tikz node using “append after command”

I'm trying to build a little drawing library in which each node will have the same base, but can be annotated with various options which will cause extra things to be drawn in/on the node. I'm ...
3
votes
1answer
87 views

Complex function plot using TikZ or PGFPlots

I need to plot some steps of this approximation http://mathoverflow.net/a/27127 but don't know how to start.
2
votes
2answers
72 views

How to combine a top-down and bottom-up binary tree in one picture?

I want to draw a binary tree like the one in the picture below. Unfortunately, I do not have any clue, whatsoever, on how to draw two trees from top and bottom to match their leaves. Any help would be ...
3
votes
3answers
99 views

How to get coordinates going from 0 to 1 in tikz image

I'm trying to create a cover page with a background image filling the entire page. On top of that in the lower third of the page should be a transparent rectangle going from side to side and on top of ...
4
votes
3answers
67 views

Change line shape on TikZ

I'd like to draw a diagram of a long exact sequence. This is what I have done: \documentclass{beamer} \usecolortheme{wolverine} \beamertemplatenavigationsymbolsempty \usepackage{tikz} ...
6
votes
1answer
85 views

How to make right angle mark in geometry 3D like this picture?

I want to mark right angle. I tried in Geogebra \documentclass{standalone} \usepackage{pstricks-add} \begin{document} \psset{xunit=1.0cm,yunit=1.0cm,algebraic=true,dotstyle=*,dotsize=3pt ...
4
votes
1answer
82 views

Wrong spacing of circled numbers using Tikz and exam class

I am using XeLaTex. I am also using the package exam. I am preparing a multiple choice test, but I have no Scantron and I want students to tick the desired circled answer by pen. This is the relevant ...
1
vote
0answers
51 views

How to get two data series in tikz plot?

How do I create a second data series from the code below? I have tried separating the two curves with curly brackets but it was not the correct code. \begin{figure}[h!tp] \centering ...
1
vote
1answer
51 views

How to make this bar plot visible?

I am trying to visualize about 21 data points, each which gives a different value for 3 different tasks, so there are 63 unique values to plot. I have tried using pgfplots colored bar plot, but I ...
6
votes
1answer
93 views

Enumerate within TikZ node

Compiling the following code with pdflatex: \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture}[remember picture, overlay] \draw (current page.center) node { ...
2
votes
2answers
55 views

Polynomial root labeling tikzpicture

I would like to label the roots of the polynomial below: \begin{center} \begin{tikzpicture}[scale=1.2,thick] \draw[->](-3mm,0mm)--(36mm,0mm) node at (34mm,-2.4mm){$p$}; % ...
1
vote
2answers
58 views

pgfplots mistake with label

i have a problem with my graph. i can't figure out why latex puts this into my description. i had to specify the xticklabels manually. but latex still gives me that number on that position. i'd like ...
4
votes
1answer
47 views

Exclude from fill. It works, but WHY?

I need to create a plot with an area filled outside a circle. Because the filled area has to be colored with 2 different colors, simply applying the odd-even rule did not work. This, it worked for one ...
2
votes
0answers
27 views

Adding prefix to TikZ node and coordinate names

This question is somewhat related to my search for a good practice to include TikZ stuff in my documents. Suppose a document (book) with a lot of formulas and equations which you have decorated with ...
4
votes
3answers
84 views

Custom position of an arrow in flowchart

Here is my code: \documentclass[12pt,twoside,a4paper]{book} \usepackage{tikz} \usetikzlibrary{shapes,arrows} \begin{decument} \tikzstyle{process} = [rectangle, minimum width=3cm, minimum height=1cm, ...
3
votes
1answer
48 views

Incompatibility of calc and some styles for forest

I got a cool solution for integrating a tabular-like object into a forest figure (Relating tree nodes in forest to content in a table) but this is incompatible with another cool solution for fixing ...
4
votes
0answers
73 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 ...
6
votes
1answer
62 views

TikZ figure renders different when changing document class

When using standalone or article class, my TikZ figure renders as it should. But when changing to tufte-handout, I get some misalignments. Why is this? How can I solve it? The code of the ...
3
votes
1answer
61 views

How to draw flowchart-Diagram with text?

\documentclass{article} %\usepackage[latin1]{inputenc} \usepackage{tikz} \usetikzlibrary{shapes,arrows} % For flowchart and Diagram %%%< \usepackage{verbatim} ...
1
vote
1answer
48 views

Flowchart Formatting - corrections

I am trying to come up with a flow chart as shown below: I tried as follows: \documentclass[border=10pt]{standalone} \usepackage{tikz} \usetikzlibrary{arrows,positioning,shapes.geometric} ...
2
votes
1answer
40 views

How to convert polar coordinates to cartesian coordinates

I am new to tikz. I am using the following code (Polar co-ordinates) \def\radius{12cm} \begin{tikzpicture} \foreach \x in {0,10,...,350} { \draw [shading=radial, inner color=white, outer ...
5
votes
1answer
287 views

How can I draw a twisted 3D arrow?

Does anyone know how I can draw an 3D arrow that in itself is twisted by 90 degrees? I need such arrow to show how polarized light is twisted in a liquid crystal. I would like to include that arrow ...
7
votes
4answers
222 views

With TikZ is it possible to pass the node content through a preprocessor?

I've written a macro that scans its content for illegal characters and then changes them to something more appropriate. In the following example, the macro scans for _ and replaces them with ...
5
votes
1answer
76 views

Labels and Pins with Tikzlibrary Graphs

I want to draw a simple block diagram with boxes, additions, multiplications, splits with pgf 3.0.0. I am quite content with the result so far, but I can not pin (with arrow) or label the nodes in ...
3
votes
1answer
38 views

Showing Tikz tree nodes after each other (using bracketing format of \Tree)

I want to display a tikz tree node by node. First A, then A and B and in the end all nodes. Note that I need to do it with the presented format: \Tree [. \node{A};] since trees are automatically ...
1
vote
0answers
31 views

How can I make the node order for references in TikZ not matter?

Question I am wondering if it is possible to make the order of nodes irrelevant, such that references work regardless of when they are mentioned...like some kind of pre-parsing of the code that ...
6
votes
5answers
243 views

How to set actual width for a rounded corners image using TikZ?

This question is closely related to LaTeX Photo With Rounded Corners. Suppose I want to put a rounded corners image in a marginnote, so the image fits the \linewidth of the margin. If I use the ...
4
votes
1answer
90 views

how do I create a complete graph in tikz?

I have the following code that I created: \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture}[->] \node[label=west:$s$,circle,fill,inner sep=1.5pt] (n0) at (-1,1) ...
2
votes
1answer
55 views

Changing the positions of text and figures in tikzpicture

Suppose that I have something like: \documentclass{article} \usepackage{tikz} \begin{document} \noindent \begin{tikzpicture} \draw[fill=black!40, draw = black!40, line width=2pt] (-2, -2.5) ...
3
votes
0answers
37 views

Problem with tikz external library and chemfig - fatal error in external image

I have a document with a lot of diagrams created with PGFPlots and want to externalize those. All other tikz snippets should not get externalized. I achieve this by setting \tikzset{external/only ...
3
votes
1answer
43 views

Reverse Axes of pgfplots Ternary Plot

I am trying to make a ternary plot, however the default axis is opposite of what I need to accomplish. Here is an example: \documentclass{standalone} \usepackage{pgfplots} \pgfplotsset{compat=1.9} ...
6
votes
1answer
93 views

Relating tree nodes in forest to content in a table

I want to draw the following figure: I now converted my trees to forest and the following code is what I have: \documentclass{article} \usepackage{forest} \forestset{ sn edges/.style={for ...