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

Specify where and how edge connects to child (tikz)

I have the following tikz tree: I'd like to change where the edge meets the child to where I placed the red dotes. Also, I'd like to have bend edges. I've tried [bend left] but it didn't change ...
2
votes
0answers
38 views

Pgfplots and large exponents in expression and domain

After I discovered the fpu library for increased precision, I tried to make a plot involving large exponents. I choosed as an example a plot of the gravitational force of the moon on a test mass in SI-...
7
votes
1answer
41 views

How to skip a ticklabel on a tkzAxe?

The picture below shows my problem: I want to skip the "2" on the x_2-axis. How can I do that? Here's the corresponding code: \documentclass[11pt,a4paper]{article} \usepackage{tkz-euclide} \...
2
votes
1answer
32 views

Positioning name of node label in tikzpicture

I have the following diagram: \documentclass{article} \usepackage{amsmath,amsfonts,graphicx} \usepackage{algpseudocode} \usepackage{tikz, nth} \usetikzlibrary{arrows.meta,decorations,decorations....
0
votes
0answers
27 views

Adding border to table of contents in xepersian package

I'm trying to add a border to the table of contents and so far I've done this: \def\@makeschapterhead#1{% \begin{tikzpicture}[remember picture,overlay] \node at (current page.north west) {\begin{...
0
votes
0answers
17 views

Subfloats with tikz files [duplicate]

I have several tikz files which I include in the following way: \begin{figure}[!htbp] \setlength\figureheight{5cm} \setlength\figurewidth{0.4\textwidth} \subfloat[Subcaption1.\label{fig:...
1
vote
1answer
62 views

How to create Surface finish texture symbols with TikZ?

Relate to How to create geometry tolerance symbols with TikZ? I want flexibility, adaptive control by parameter, thanks for your answer. https://en.wikipedia.org/wiki/Surface_finish \...
8
votes
1answer
101 views

Integrated blocks for thesis structure

I would like to draw jigsaw blocks (boxes) and then write text into it. Something like the following figure. I could not find a package to get this shape, however, I am posting a minimal example ...
9
votes
4answers
2k views

Painting an ellipse that fits a row of node but is not narrow and long

I want to draw a Tikz diagram, in which an ellipse contains a row of smaller ellipses. I tried doing so using the fitting library: \begin{tikzpicture}[ every node/.style={inner sep=1pt}, proc/....
1
vote
1answer
50 views

Drawing topology of network with Tikz

I want to draw with Tikz a topology as illustrated below The shape of node preferred is ball, can you help me ?
2
votes
3answers
151 views

Drawing a figure with edges

I am trying to draw a picture that would look complexity-wise like this But instead of making it rectangular-looking, I need to make it triangular-looking that would look something like this (but ...
2
votes
1answer
32 views

Customise Space between Nodes in Tree (using Forest)

I have the following tree, and I would like the central and the right branches to have a wider separation between them, to avoid confusion. I have been trying some things because I thought it would ...
0
votes
1answer
40 views

How to label a textbullet with tikz?

I have this code: \documentclass[table,dvipsnames,svgnames]{beamer} \usepackage{tikz} \begin{document} \begin{tikzpicture} \node[red] at (6.6, 2.7) {\textbullet}; \end{tikzpicture} \...
1
vote
0answers
33 views

tkz-euclide but in 3d?

I just recently found the package tkz-euclide and I think it's amazing. I was wondering if there is a similar package to work in 3d. And if not what is, in your opinion, the best package for 3d ...
1
vote
0answers
43 views

Using \pause and multiple tikzpictures in one slide

I have two tickpicture blocks. What I need, is to use \pause (or overlay) another plots on top of each one: \begin{tikzpicture} \draw (0, 0) node[inner sep=0] {\includegraphics[width=1\...
6
votes
1answer
44 views

rotating custom shapes in Tikz

I'm trying to build upon the rectangle node shape but what I came up with doesn't rotate nicely (the hashed pattern, the second rectangle). As you can see, I've tried adding as many transform shape ...
2
votes
1answer
50 views

3D pgf/tikz; first time making a 3D graph

This will be my first 3D graph on LaTeX, and I need help figuring out how to generate the graph of f(x,y)=xye^{x+2y-9x^2-9y^2}. Thank you for your help.
2
votes
0answers
24 views

TikzEdt checking for new version gives “server not found”

Since some weeks ago when I run "Check for updates..." in TikzEdt (version 0.2.3.0 with Windows 10) I get the error: Checking for new version failed: Errore del server remoto: (404) Non trovato. ...
2
votes
2answers
32 views

Multiple object instances represented by two slightly shifted rectangles

In a software diagram, I'd like to be able to represent multiple instances of an object by two rectangles with one of them slightly shifted. I recently learned about the pic style so I'm using it with ...
0
votes
1answer
43 views

Annotate row and column highlighted in one table with different color by Tikzmark in Beamer

I found example for row only here: Annotate the table row highlighted by Tikzmark in Beamer Also found example for column only here: Annotate the table column highlighted by Tikzmark in Beamer but ...
2
votes
0answers
15 views

Filling bar chart with patterns for black and white printing [duplicate]

I am trying to plot a bar chart like below: \documentclass{standalone} \usepackage{graphicx} \usepackage{tikz} \usepackage{pgfplots} %\usepackage{subcaption} \definecolor{blues1}{RGB}{198, 219, 239} ...
2
votes
0answers
47 views

Using equation/function in 3D TikZ

I have a subset in 3D, than has the restrictions: 1<=x<=2, 1<=y<=2, 1<=z, 2x+2y-z<=5. So far I have just plotted the point, where I restrict x and y. How do i plot the last ...
4
votes
1answer
43 views

arrow tip when using “.. controls ..” in tikz

When I draw a commutative diagram with tikz, I normally use the syntax \documentclass{article} \usepackage{tikz} \begin{document} \begin{center} \begin{tikzpicture} \node (a) at (0,0) {$A$}; \node (...
2
votes
0answers
13 views

TikZ: Problem with relative node positions for “big” nodes [duplicate]

I want to place two nodes besides each other, using TikZs right of= placement. But if the first node is two broad, like in the minimum example below, this does not work right. How can I make TikZ ...
18
votes
2answers
354 views

Pgfplot - Cross section of a 3D line plot (Poincare Sections)

I have plotted a 3D line using this following data: p p1t p2t -65.79 -210.81 137.73 -124.76 -182.7 189.67 -170.78 -141.97 233.17 -206.39 -96.42 257.48 -226.99 -40.212 268.45 -231.57 20.337 255....
3
votes
1answer
34 views

How to define a moving line?

In the following code, I draw two parallel lines. I am looking forward to know how to define a moving line which from the blue line to the red line which will result in a animation. The code is as ...
1
vote
1answer
56 views

How to get random-steps decorated tables?

I use tikz's decoration={random steps} a lot in a document for boxes and separator lines. In the same document I have tables set as tabularx, but the cell backgrounds / lines in those tables are ...
27
votes
4answers
1k views

Polaroid photo effect in tikz

Is there any way to make a polaroid photo effect in TikZ? I am thinking of something like this A computer font as the caption might be better in fact but I couldn't find a suitable example online. ...
3
votes
1answer
39 views

Plotting figure side by side and numbering them using subfigure

I am trying to plot two figure side by side using subfigure. However, the figures are coming one below another instead of side by side and also the caption is printed twice for each o the figure! I ...
1
vote
0answers
47 views

Can't select text in PDF created using Asymptote

I am making 3D diagrams using Asymptote, export them as PDF and then use them in LaTeX documents. I cannot select the text/labels inserted in the pictures/diagram in the final PDF of the LaTeX ...
3
votes
1answer
92 views

Auto-export TikZ images (previously expand (print) contents of a TikZ style)

EDIT: The external library is great but I'd like to add I figured out how to print the contents of a style (although not fully expanded, so if it contains other styles, they will not be). A style is ...
0
votes
1answer
25 views

Pgfplots domain [duplicate]

I have three columns of data and one which stops at a moment, but the other continues. But LaTeX creates the values as a constant, and I don't want them to appear, how to do? \begin{figure}[h!] ...
2
votes
0answers
65 views

Typesetting category of elements diagrams

This nlab page features the two diagrams below which I would like to typeset myself, except I only know xypic which cannot really produce them. I would like to typeset the following: What is a ...
2
votes
4answers
200 views

How to draw a triangle with line parallel inside

i need help with this triangle (Image 1), i don't know draw this in tex :c
1
vote
1answer
37 views

Help with Arrow Thickness

I need help with making the arrows thicker for the following: \documentclass[landscape, 12pt]{report} \usepackage{hyperref} \usepackage{tikz} \newcommand{\myarrow}{\raisebox{11ex}{\tikz \draw[->] ...
3
votes
3answers
86 views

How to color tick label background when curve overlaps it

I have lots of pgfplots in my document with curves that pass vertically through points where I want an x tick label. This makes those labels hard to read. I do want those labels to still be there. I ...
4
votes
3answers
206 views

Typeset simplified ROM circuit diagram using Tikz

I'm trying to typeset the following image using Tikz: I have tried many options, but there doesn't seem to be any good solution doing this an efficient way. My code I used at last: \begin{...
3
votes
1answer
55 views

TikZ: Change position of arrowhead along line?

I have a TikZ plotmark and an arrow leading to it: \documentclass{article} \usepackage{tikz} \usetikzlibrary{plotmarks} \begin{document} \begin{tikzpicture} \node at (4,0) {\pgfuseplotmark{*}}; ...
2
votes
0answers
30 views

Tikz plot of a (log-) normal quantile function and inverse error function

I want to plot the lognormal and normal quantile functions in tikz. To fix notation, let's refer to https://en.wikipedia.org/wiki/Normal_distribution, which gives the quantile of the normal ...
2
votes
1answer
95 views

How can I draw the Minkowski sum of two sets? [duplicate]

I would like to represent the ɛ-neighborhood of a convex polygon, which is the Minkowski sum of the polygon and a disk of radius ɛ. The polygon is given by its vertices, from which of course I could ...
6
votes
2answers
100 views

Adding shadow to font in beamer title

I'm trying to port a Powerpoint template to beamer, and I'm trying to replicate this font style: I am using this font in two places: Title page. This text is a paragraph (3 lines) inside a ...
4
votes
2answers
132 views

Decoration of (relative) segments of Bézier curves

I would like to modify a bezier curve in tikz, e.g. \draw (0,0) .. controls +(87:2.3) and +(50:-0.7) .. (1,1); in such a way, that a part in the middle is draw with dots (instead of a full solid ...
4
votes
1answer
28 views

Link Arrows in pgfgantt for Long Periods of Time

I am making a Gantt chart with pgfgantt. The arrowheads for dependencies between the bars do not show properly (e.g. pointing to left rather than right, for an input to another bar). My time-frame is ...
2
votes
0answers
36 views

How can I rotate this ellipse on xy plane?

I want to enclose the red circles into an ellipse, but this ellipse should rotate, but the rotation is wrong. \documentclass[border=1cm]{standalone} \usepackage[x11names,dvipsnames]{xcolor} \...
2
votes
1answer
20 views

'Undefined control sequence' with \addplot

When trying to insert a TikZ figure, using \addplot, I've got an 'undefined control sequence'. My code is: \documentclass{article} \usepackage{tikz} \usepackage{pgfplots} \pgfplotsset{compat=newest} ...
1
vote
2answers
31 views

Background image moves to the right with the addition of text

I'm building a title page for a custom report .sty file. A MWE follows: \documentclass{report} \usepackage{lipsum} \usepackage{geometry} \usepackage{mwe} \usepackage{tikz} \usepackage{pgf} \...
3
votes
1answer
33 views

Aligning tikzpicture to Center of Box?

I need to align the arrows in the following LaTeX so that they are moved up to the midpoint of the boxes. Meaning halfway up the box instead of aligned at the bottom like they are now. Here is my ...
1
vote
2answers
56 views

Generate a square color matrix in Latex with TikZ

How can we generate this type of image using tikz package? Thank you all