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

TikZ dashes and closed curves

When a closed curve is dashed, the dash spacing at the start/end point can be very unfortunate. Is there an option to tell TikZ that it should slightly adapt the dash spacing to avoid such cases? (I ...
0
votes
0answers
22 views

Missing file error with Tikz intersections

I'm using TexPad for Mac, and I got stuck for the following error, how can I do? I've tried to install some package but it didn't work! Or at least I didn't find the right one!
4
votes
3answers
103 views

Help designing a TiKZ drawing

I've been using LaTeX for a long time, however I have never been into the TiKZ class, I need to create the following drawing, I only have to draw the boundary of the mesh and the dots (not the ...
6
votes
2answers
57 views

Use tikz spy in a scope in order to relatively adress points in two images/scopes

I am continuing the example I started here, and want to have two images in one picture being positioned relative to each other and using two scopes for the ´spies´. The following MWE includes a first ...
1
vote
0answers
15 views

pgfplots table read handle non-numerical entries

In a previous question, I asked how to create a Root Locus plot and got a pretty good answer thanks to @percusse using \pgfplotstableread that gets me 90% of the way there. However, the one thing I ...
2
votes
1answer
60 views

Tikz: Finding intersection of Brownian motion and circle

I'm trying to draw a two-dimensional Brownian motion started in a circle and now want to label the first exit time of the motion: \documentclass[parskip]{scrartcl} \usepackage{tikz} ...
1
vote
1answer
33 views

TikZ: How to distinguish multiple vertices with the same id?

(Almost minimal) working example: \documentclass{beamer} \usepackage{tikz} \usepackage{verbatim} \usetikzlibrary{arrows,shapes} \begin{document} \pgfdeclarelayer{background} ...
0
votes
1answer
30 views

Replace vertex in TikZ

I'm completely new to TikZ and took a look at an example graph: http://www.texample.net/tikz/examples/prims-algorithm/ For a presentation I need to replace a vertex by another vertex at a certain ...
1
vote
2answers
47 views

Plotted line in tikz stops in middle of grid

The plotted line stops and doesn't go on till the border of the grid: This is my code: \documentclass{article} \usepackage{tikz} \usepackage{amsmath} \begin{document} ...
1
vote
1answer
27 views

Align tikz picture on the right side of the screen, next to text

I want to have some code, and then on the right side of it a tikz picture. I tried 'flushright' but that didn't work. This is my code: \documentclass{article} \usepackage{amsmath} \usepackage{tikz} ...
3
votes
2answers
136 views

Effective potential with tikz

How I can draw a perfect picture of an effective Newtonian potential? I tryed, but it is not so good as I want. \begin{tikzpicture} \begin{axis}[ xmin=0, ] \addplot[ red, smooth, domain=-5:1, ...
3
votes
2answers
39 views

\texttt in decoration causes LaTeX to hang

I have the following code: \documentclass{standalone} \usepackage{tikz} \begin{document} \usetikzlibrary{decorations.text} \begin{tikzpicture} \path [->,decorate,decoration={raise=-5pt, text ...
5
votes
1answer
112 views

How to draw NO2 in LaTeX?

It would be nice if you could help me to draw NO2 in LaTeX. The figure should look like the example image. On this website is some information about the chemfig/chemmakro package. My code untill now ...
2
votes
0answers
74 views

Putting coordinate axes 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 but the images depicted is a jumbled mess. I intended to get a ...
2
votes
1answer
51 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
31 views

Undefined control sequence when using callout shapes [on hold]

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
41 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
72 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
77 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
48 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
117 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
49 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
36 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
25 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
72 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 ...
-2
votes
0answers
36 views

Bent shapes with TikZ [duplicate]

How would it be possible to draw something like this?
0
votes
0answers
36 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
71 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
27 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
65 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
43 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
89 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
101 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
68 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
92 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
83 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
52 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
96 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
88 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
74 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
65 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
64 views

How to draw flowchart-Diagram with text?

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