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)

0
votes
0answers
37 views

central and non-central chi square distribution in one plot with tikz

What I want is to draw a chi square distribution - both a central and non-central into one plot and draw parts of the surface underneath as solid color. Note: I read Plotting the chi square ...
1
vote
1answer
34 views

Cannot line break in chemical equation in flowchart using mhchem and TikZ

I can't seem to get a line break mid equation; in this example, to fit in a box (and not change the size of the box). my usual method of \\ is not working. \documentclass[12pt]{report} ...
1
vote
0answers
105 views

How to draw a squeezed ellipse with fading color on a sphere surface with TikZ?

Ideally, I would like to draw something like part (c) of the image below: . Here, I narrow down the question to how to draw an ellipse on the surface of a sphere with fading color as shown on part (b) ...
3
votes
0answers
51 views

Uniformly spaced line markers

I'm reading line data from file and plotting it. By default, the curve has markers, where are the original data points. The data points are very uneven, but I would like to have evenly distributed ...
0
votes
0answers
47 views

Resize tikzpicture without change \node position

I'm using tikzpicture to create some graphs. But I have a problem, when I change graph size for better position on text, all \node goes to wrong position. Here is my code. This are my .dat. ...
4
votes
1answer
68 views

Label Venn diagram section with arrow

I'd like to draw a curved arrow originating beneath the diagram and pointing to the center of the diagram, where the circles all converge. Where the arrow originates, I'd like to be able to make a ...
3
votes
2answers
68 views

Changing the arrow heads in pgfplots axis lines

Consider the following: \documentclass{article} \usepackage{tikz,pgfplots} \usetikzlibrary{arrows.meta} \tikzset{>={Latex[round]}} \begin{document} \begin{tikzpicture} \begin{axis}[inner ...
1
vote
0answers
61 views

Using Tikz Calendar in Persian

I see this question: Using Tikz Calendar in Portuguese as a Syllabus and I try to translate in persian (solar hijri) below code work nice but the problem is this: for example 1st day of "Dey" (one ...
2
votes
0answers
51 views

TikZ: nodes and pics along path [duplicate]

I want to put both nodes and pics along a path. This works perfectly well: \documentclass{article} \usepackage{tikz} \begin{document} \tikzset{p/.pic={\node [circle, draw] at (0,0) {};}} $\tikz{ ...
1
vote
0answers
43 views

translate tikz calendar names to persian?

I see the quastion How to translate tikz calendar names? and I try to make farsi calendar wti this code: \documentclass{standalone} \usepackage[farsi]{babel} \usepackage[farsi]{translator} ...
8
votes
8answers
634 views

Drawing minimal xy axis

can anybody help me to draw this minimal example of an xy axis? I couldn't find anything similar on the forum. The axis should be black but the grid behind it a shade o gray, dashed. It would be ...
16
votes
6answers
391 views

Cayley Graph of Free Group in TikZ

What is the best way to create a TikZ picture which resembles the image below (Caylay Graph of a free group) without using absolute positions and doing everything "manually"? The picture has a very ...
0
votes
1answer
32 views

Caption/Space problem in tikz/pgf/subcaptionbox

I plot 4 Graphs with Tikz and use subcaptionbox. Following badnesses occur: (1) There is no space between the caption of the upper figure to the figure below. (2) The second figures (b) caption ...
1
vote
1answer
57 views

Questions about a flow chart

I am a latex newbie and have been trying to generate a flow chart like this using TikZ package. Below is my code but I could not complete the following: 1) How can I connect the question mark to ...
3
votes
1answer
87 views

TikZ: arrow tip as shape

I have a custom TikZ arrow head called myarrow. How can I turn it into a shape? I want to be able place it wherever I want without needing an edge underneath, with a command like this: \node ...
2
votes
0answers
58 views

Why this loop with “evaluate” does not work?

\documentclass[margin=5pt]{standalone} \usepackage{tikz} \usetikzlibrary{shapes,calc} \begin{document} \begin{tikzpicture} \foreach \x [evaluate=\x as \name using \x*20] in{0,0.05,0.1,0.15,...,5} ...
3
votes
1answer
64 views

Another instance of beamer <-> TikZ interaction

Successfully using constructs like \node<3-> (something) ...; or \draw<2-> (from here) -- (to here); in tikzpictures inside beamer with overlays, I've now encountered a problem. ...
9
votes
3answers
382 views

Understanding the math tikzlibrary

In my question The Spiral of Roots in TikZ, the answer by Mark Wibrow caught my attention but while trying to edit the code I found myself struggling with an ifelse statement. What I am trying to ...
4
votes
2answers
170 views

How to make the rotation of a 9 x 9 table?

How to make the rotation in the following table from an angle of ninety degrees clockwise? \documentclass[a4]{article} \usepackage{tikz} \begin{document} \begin{center} \begin{tikzpicture}[scale=.4] ...
5
votes
1answer
63 views

TikZ + PGF function Plotting: Is there a max(a,b) function?

I am trying to plot a function with TikZ and PGF. This function contains a max operator (returning the greater value of the given two parameters). I want to do the following: \documentclass[ ...
0
votes
0answers
71 views

Is there a (tikz) package that supports flowcharts according to ISO 5807?

I wonder if there is a package that fully supports the flowchart symbols defined in ISO 5807:1985 (or at least a hugh amount of them)? I just found the tikz flowchart package from Adrian P. Robson. ...
3
votes
3answers
127 views

How to illustrate saccades with the help of tikz?

While reading our eyes moves in so-called saccades which are "jumps" between "syllables" (actually it is a jump from word presence to word presence (or word image to wordimage -- sorry don't know the ...
2
votes
1answer
87 views

tikz draws line in wrong place (2 pages above its definition)

I am trying to get tikz to draw a line between nodes inside an attribute-value matrix defined using the avm package. For this, I am using \tikzmark as described in the answer here: tree-dvips ...
0
votes
2answers
182 views

Bottom up neural network with TikZ

I need to create a diagram of a neural network. I found this example online: http://www.texample.net/tikz/examples/neural-network/ However this examples shows how to create a graph from left to ...
5
votes
2answers
235 views

How can I draw a helio charts?

\documentclass{article} \usepackage{datatool,tikz} \usepackage[active,tightpage]{preview} \PreviewEnvironment{tikzpicture} \begin{filecontents}{ooo.dat} m , n 0 , Materialwirtschaft 15 , ...
2
votes
1answer
57 views

Error with tikzcd

I write a code for a simple diagram using tikz-cd and does not compile. I don't know why, I have installed texlive-full in lubuntu 14.04 LTS. \begin{tikzcd} & C^\prime \arrow[dr, "g"] & \\ ...
-1
votes
0answers
47 views

How to draw this electrical circuit circuit with LateX? [duplicate]

I want to draw these two circuits in Latex Is there some better way to do this than drawing them line by line?
3
votes
1answer
78 views

How to change line style while drawing in Tikz

I'm trying to draw a dotted line from A to B and a straight line from B to C. If I use two draw commands, then there is an obvious break in the line, because I use rounded edges. Just using one draw ...
2
votes
0answers
55 views

Grouping bins in bar charts?

I have below bar-chart. I want to group the bars together by color. It makes no sense to compare the bins directly, but only the values with the same color directly. Is there a way to create two ...
2
votes
1answer
51 views

How loop edge set the arrow type?

When we use -> tha arrow type can be overwritten by >=Arrow, before or after the -> . Or by putting after the -> another -Arrow style. For a loop edge, we can overwrite the arrow type by ...
4
votes
1answer
43 views

Specifying this region to shade

I have a plot on a set of curved axes. I want shading from the center of the axis circles fading to white on the outer axis. Using center=red puts the center of the shading in the center of the ...
3
votes
1answer
69 views

Changing Font Size of Node

I am new to TkiZ. I am trying to decrease the font size of a node locally. Tried to read the below (Page 224): http://mirror.utexas.edu/ctan/graphics/pgf/base/doc/pgfmanual.pdf The changes are not ...
1
vote
1answer
40 views

Putting space about labels for vertices and shifting these labels

A line is drawn through a side of two triangles. One of these lines are drawn on top of the labels B' and C' for vertices of one triangle. I used the option inner sep=2pt to put some space about ...
9
votes
3answers
295 views

Typesetting A when a register is 1, B when 2, etc

I have a register \count0=<some-value> and need to get the letter of the alphabet on the index of \count0. That is, if it is 1, I need an A, if 2, a B, etc. Is this possible? I'm reluctant ...
4
votes
1answer
59 views

Can't spy with overlay, remember picture options

\documentclass{article} \usepackage{tikz} \usetikzlibrary{spy} \begin{document} \begin{tikzpicture}[remember picture,overlay,spy using overlays={connect spies,blue!50}] \node(a)[circle]{Text}; ...
4
votes
1answer
59 views

Redefining variables in a \foreach loop

I'm trying to plot some recursively defined sequence with tikz and am encountering some behavior I can't understand, here is my code: \documentclass{minimal} \usepackage{tikz} \usetikzlibrary{calc} ...
2
votes
0answers
40 views

Why isn't pgf honouring my font selections for matplotlib-generated graphics?

I wanted to use a euro symbol in my axis descriptions for matplotlib plots saved as pgf files with the pgf backend. When I use the following code: import numpy as np import matplotlib.pyplot as mplot ...
4
votes
2answers
59 views

Overruling global node style in matrix

I want to build a matrix of several nodes of different types. In my example there is a matrix containing two "modules" and one "label". For convenience I wanted to use matrix of nodes with ...
6
votes
3answers
110 views

Position arrow decoration by center, not by tip

I have lots of curves, each of which I would like to decorate with an arrow precisely at the centre. Here is a simple attempt to do this with TikZ: \documentclass{article} \usepackage{tikz} ...
2
votes
1answer
70 views

Drawing lines half the thickness of the default thickness

In the following code, two triangles are drawn - one is the reflection of the other across the line y=x. I would like to have a line, with the command \draw[loosely dash dot], drawn either half or a ...
5
votes
2answers
222 views

Beginner in Latex: Replicating a 3D graph with vectors

I am about to write my first document in latex and I have been struggling to find some software to draw the following picture I found in another PDF document. I learned that there is no way to extract ...
2
votes
1answer
87 views

Programmatically expand my image in TikZ

I've got an image made of a number of slowly expanding arcs. Now I want to add another 10 wedges, over the same total angle (so each arc will be ~14º). I'm trying to use the following code, but I'm ...
0
votes
0answers
42 views

A line not plotted

Here, I am trying to get TikZ to plot the line y=x. I get an error. \documentclass[10pt]{amsart} \usepackage{tikz} \usetikzlibrary{calc,angles,positioning,intersections,quotes,decorations.markings} ...
0
votes
1answer
41 views

A line is not plotted

I have a plot of a triangle and its reflection across the line y=x. The code is not compiled because there is an error in the command to plot the line y=x. Here is the command. ...
4
votes
0answers
55 views

TikZ: \foreach loop not executing expected number of iterations

I am trying to draw a Bézier curve defined by five control points following the algorithm discussed here. I generate the points of the curve with a \foreach loop: one point per iteration (also, from ...
0
votes
1answer
75 views

Putting two flowcharts using tikz,

I try to put two flowchart in my paper. I try to use tikz. Each one seprately works. But while I try to put both of them in two figures I face with this error: <argument> ...f@ya \pgf@y ...
2
votes
0answers
61 views

How do I add some “texture” to a tikz fill?

I want to create something like this: By filling a rectangle. NOTE: Ignore the borders of the image, I just want to give that texture to a tikz rectangle.
1
vote
2answers
32 views

tikz foreach loop alignment failure

\documentclass[tikz]{standalone} \usepackage{pgf,tikz} \usetikzlibrary{positioning} \begin{document} \begin{figure}[t] \begin{tikzpicture}[node distance=0.2em] \node (T0) at (0,0) {$T_{0}$}; ...
2
votes
2answers
71 views

Adding space to a center line

How to draw for instance a beam (or even fancier forms) from a given center line? Here is what i mean but with a rather not so good solution. I would like to add pattern, etc. ...
14
votes
5answers
2k views

How to draw these coins?

I wanto to draw it, but So I can make a part, but still without much quality \documentclass{article} \usepackage{tikz} \usetikzlibrary{shapes,backgrounds} \usepackage{verbatim} ...