Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [tikz-pgf]

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.

Filter by
Sorted by
Tagged with
0 votes
1 answer
24 views

Adding labels about boxed nodes in tikz pictures

I need something roughly along the following figure: I managed to this in tikz: \documentclass[border=0.2cm]{standalone} \usepackage{tikz} \usetikzlibrary{arrows} \tikzset{ %Define standard ...
Stefan Müller's user avatar
0 votes
0 answers
13 views

Using macro \pgfgetlastxy{\XCoord}{\YCoord} to get x and y component for axis cs

In my MNWE see below, I can't imagine what I am doing wrong. Also see the attached picture. I try to extract coordinate with slightly modified macro given in the answer for tex.stackexchange.com/...
JardaFait's user avatar
  • 4,006
0 votes
0 answers
11 views

tikz-uml on overleaf `tikz-uml.sty' not found [duplicate]

I use overleaf but I cannot compile this code which does not contain any errors. The error that overleaf gives me is : LaTeX Error: File `tikz-uml.sty' not found. \documentclass[12pt,article]{memoir} \...
matheux's user avatar
  • 99
0 votes
0 answers
6 views

Package pgfplots Warning: Axis range for axis y is approximately empty

I'm trying to plot these following data: 0.000000000000E+0 1.973601225684E+0 1.000000000000E+0 1.973601176100E+0 2.000000000000E+0 1.973601185980E+0 3.000000000000E+0 1.973601205420E+0 4.000000000000E+...
Matthieu Thomas's user avatar
4 votes
1 answer
111 views

Create DevOps cycle in TikZ

My goal is to create a DevOps cycle in Tikz with the established infinity layout, like this one or the one on this page. I started by using the wheelchart package, but I can't get the formular for ...
John's user avatar
  • 97
0 votes
0 answers
18 views

How to create a square coordinate frame with x in 0~0.72 and y in 0~50 for plotting points in it?

Like the question title, I'm trying to achieve this, like the following MWE: \documentclass[tikz]{standalone} \usepackage{pgfplots} \pgfplotsset{compat=1.18} \begin{document} \begin{tikzpicture} ...
Meiu's user avatar
  • 558
3 votes
1 answer
135 views

Center a matrix in a box?

I have a matrix of integers that I would like to center in a rectangular frame; however, as you can see, there is a little extra space below the matrix. How can I equalize the space above and below? (...
Mirlan's user avatar
  • 211
0 votes
0 answers
43 views

Try an algorithm that can automatically paginate

I'm trying to find an algorithm that can do automatic paging, I know this has been implemented in longtable and tcolorbox. I use tikz, \ExplSyntaxOn \definecolor{tocline}{RGB}{57, 77, 5} \cs_set:Npn \...
ljguo's user avatar
  • 1,412
2 votes
1 answer
79 views

How to properly align a scope and a node?

I am using two different approaches to draw similar looking blocks. Using first approach, I draw first block (top row) made of rectangular nodes inside a scope and name it as group 1. Similarly, ...
dd_rookie's user avatar
  • 121
2 votes
2 answers
206 views

working with several tikz forest

EDIT: ultimately my problem was how to have several trees in one single tikzpicture and being able to access node positions. See the accepted answer for how to do that. My workaround caused the ...
Olivier Gauthé's user avatar
1 vote
1 answer
40 views

Failing to align recursive tikz pictures to a baseline

\makeatletter \newcommand{\gettikzxy}[3]{% \tikz@scan@one@point\pgfutil@firstofone#1\relax \edef#2{\the\pgf@x}% \edef#3{\the\pgf@y}% } \makeatother \newcommand\partFTube[2]{% fill, total; ...
user209882's user avatar
6 votes
0 answers
102 views

Can I simulate colour-blindness (in Beamer / TikZ)

I'm putting together a talk on figures for publications, and one point I want to make is about them being accessible to colour-blind readers/viewers. So far I've been using ColorOracle to simulate ...
Chris H's user avatar
  • 8,877
3 votes
1 answer
104 views

Use the decorate function and mark points on a curve to draw tangents

I am trying to draw tangent for simple curve (f(x) = x^2) with using of decoration={markings, mark= at position #1 with {...}}(see How to get a tangent coordinate system for the decoration of a path?)....
JardaFait's user avatar
  • 4,006
3 votes
1 answer
74 views

How to save coordinates from paths

I want to draw a sequence of connected line segments using separate paths, so I can add arrow tips and tails to them. In the MWE below, how can I draw a path from the end of (O) -- (A) -- ++(B) to the ...
Jasper's user avatar
  • 429
3 votes
2 answers
172 views

How to move the color blocks into the red frame region marked?

I'd like to use the area below the two first subfigures to place the color blocks, how can I achieve this effect? The mwe is following \documentclass[aspectratio=2013]{beamer} \usepackage{tikz,...
Meiu's user avatar
  • 558
7 votes
1 answer
94 views

Problem with add/.style in tkz-euclide

add is a style for changing the start and end points when drawing a line from one node to another. Its definition is: \tikzset{add/.style args={#1 and #2}{to path={% ($(\tikztostart)!-#1!(\...
Alain Matthes's user avatar
0 votes
0 answers
95 views

Combined Tikz picture is not inserted

\documentclass{article} \usepackage[a4paper]{geometry} \usepackage[ngerman]{babel} \usepackage[utf8]{inputenc} \usepackage{graphicx} \usepackage{caption} \usepackage{tikz} \usepackage{tikz-timing} \...
mario1000's user avatar
  • 336
1 vote
1 answer
51 views

Tikz: How to vertically align text across multiple nodes?

The title says it. In the example below, how can I make the text start from the top in all boxes? So node3, node1, node2 to be on the same top line, like node3 is right now? I have checked this, this, ...
PaulG's user avatar
  • 133
1 vote
1 answer
30 views

Strange extra arrow behavior in tikz because xshift

The following code gives me a strange arrow: \documentclass{article} \usepackage{tikz} \usetikzlibrary{bending, arrows, arrows.meta} \begin{document} \tikz{ \node (P) {$(x+3)(x-5)$}; \...
Watson's user avatar
  • 984
1 vote
1 answer
83 views

Customizable Vertical Rule / Divider Like `\vrule` With Automatic Height

I need to create a customizable vertical rule (divider) that behaves like \vrule regarding height calculation within different environments, such as minipages, mdframes, arrays, and tcolorbox boxes. ...
aglobalphenomenon's user avatar
1 vote
1 answer
20 views

Date format option not working on genealogytree

I have a genealogytree TeX file that was working just fine when compiling on an old Macbook. I now changed to a Debian based system, and suddenly the file no longer compiles with the required "...
tchuncly's user avatar
0 votes
2 answers
29 views

Modification of exam `answer plot` to allow drawing partial opacity when `\printanswers` is uncommented

Following up on this question and this question regarding "answer plots" for the exam class, I am running into an issue. I have a region shading at less than 100% opacity. If I try adding ...
EthanAlvaree's user avatar
  • 1,421
1 vote
2 answers
72 views

How to create a command to plot a series of square lattices on a given line?

As the figure below, for a fixed line on a square-lattice layer with the scale of 30*30, it y-coordinate is 12, then I'd like to plot squares on the x-coordinates of 1,6-13,21,28-30, 13 square dots in ...
Meiu's user avatar
  • 558
3 votes
0 answers
51 views

How to fixed the little bug of sharp conjunction of tikzpictures?

When I use tikz to plot the figure, the conjunction of two lines is not connected so good. Shown as below, is there any solution to fix it? Here below is the MWE: \documentclass[border=10pt]{...
Explorer's user avatar
  • 135
1 vote
1 answer
49 views

How do I make the text bend along the function using tikz if possible?

I am trying to label my diagram with the equation but I would love to make it bend along the equation. I haven't quite figured it out. I am hoping there is a solution involving tikz because it is what ...
Ms Thanh's user avatar
2 votes
2 answers
87 views

Checking if the version of TikZ is newer in a format-independent way

Notice: that question has been answered here, posted to be useful to the general public. I am struggling to write a macro to use in circuitikz to apply the change to arrow tips you can see here (which ...
Rmano's user avatar
  • 42.3k
3 votes
2 answers
98 views

NiceMatrix + Tikz Determinants Picture

I'm having trouble recreating a particular picture I want to use. It's a 3 x 3 determinants formula, which I'm trying to use the nodes created by NiceMatrix to create loops around the entries to ...
Xir0s's user avatar
  • 31
5 votes
5 answers
652 views

tikz diagram skier on a slope

is it possible to reproduce this schema with tikzpicture ? This is what I tried : \documentclass{article} \usepackage{tikz}%,pgf} %\usepackage{pgfplots} %\usetikzlibrary{calc,angles} \usetikzlibrary{...
matheux's user avatar
  • 99
1 vote
0 answers
38 views

Update tikz style of a named node type to be a box with two colours

Right now I have a node type that looks like this (pictured with wires coming out): but I'd like it to just have two colours -- white on the left and orange on the right (no shading). I've read about ...
Adina Goldberg's user avatar
0 votes
0 answers
39 views

PGFplots, tables and multiple paths

I'm trying to use \addplot table to read multiple lines from the same file, but I want to be able to identify them as different paths so that I can apply a decoration on each separately. The result I ...
Antonin Bourgeois's user avatar
6 votes
1 answer
159 views

How can I get `f(2/3) = 20/9` and `f(4/3) = 16/9` of the function f(x) = 3 *x^3 - 9*x^2 + 8*x when I use pgf/tikz

Based on this answer, I am trying to calc f(2/3) and f(4/3) of the function f(x) = 3 *x^3 - 9*x^2 + 8*x, my code \documentclass[12pt]{article} \usepackage{tikz} \usetikzlibrary{fpu} \usepackage{...
Thuy Nguyen's user avatar
  • 1,146
4 votes
1 answer
75 views

PGFPlots library fillbetween causing a bunch of "Missing Character" warnings

When trying to shade the area between 2 paths using the fillbetween pgfplotslibrary, I'm getting the following warnings: Missing character: There is no . in font nullfont! Missing character: There is ...
msom's user avatar
  • 43
1 vote
1 answer
47 views

Tikz graphs not aligned

I've been trying to figure the solution to no avail. I have five graphs, first four are in a 2x2 shape and last one is below them. Issue is that one of them has much higher values on y-axis which in ...
mm6643's user avatar
  • 25
0 votes
1 answer
89 views

TikZ-PGF surface edges smoothing

I have this surface I plotted using Latex but the edge is ragged. Anyone knows how to fix that? I tried increasing the number of samples but the raggedness persists and the computing time becomes too ...
frencho's user avatar
0 votes
1 answer
18 views

Using \boxplot calculated whisker values to sort outliers

I'm working on getting the \boxplot command from the 'statistics' package to calcualte the lower and upper whisker values of a data set read from a sinlge colum .txt file then use those whisker values ...
grandpapocketcandy's user avatar
0 votes
1 answer
42 views

Center Tikz pictures used as tick labels in Pgfplots

I am trying to use Tikz pictures (piecharts) as x-tick labels in a Pgfplots boxplot and while they appear, I cannot get them properly aligned horizontally, in contrast with normal text labels. \...
Filippo Bistaffa's user avatar
0 votes
1 answer
88 views

Two for loops and the second starts with i+1

I need some help with generating an image. (Disclaimer: Most of it is ChatGPT generated). It is compiling so the warning isn't too serious, but it still bothers me and I can't think of a solution to ...
Benedikt Berg's user avatar
0 votes
1 answer
33 views

Strange rendering of 3d surface with pgfplots

I'm trying to use pgfplots to plot the following 3d surface (as it comes out of mathematica) but by using the following pgfplot code which contain the exact same equation as the mathematica code \...
Davide Morgante's user avatar
1 vote
1 answer
78 views

Reproducing the lichess opening tree stat bar

Can LaTeX offer something like this or the like shapes with same info?
Wassim Saeed's user avatar
0 votes
1 answer
76 views

Two dimensional colormaps in TikZ

I have a two-dimensional data on a grid and would want to color the image according to a two-dimensional colormap. What I have in mind is something like this: https://colorstamps.readthedocs.io/en/...
Franz's user avatar
  • 175
0 votes
0 answers
25 views

arrows convergence [duplicate]

I want to make the tips of the arrow next to 𝐸𝑔 converge with each other with a little bit of space between them. Also, I would like the arrows to be thicker. These are the code lines I used: \begin{...
Yusef Hamdellah's user avatar
0 votes
0 answers
46 views

Logarithmic Projection of World Map (tikz)

I was making a little diagram for my kid of places she's been using their (manually scaled) great circle distances and bearings. It occurs to me there might be a way not only to automate the scaling, ...
commonhare's user avatar
  • 2,680
0 votes
0 answers
24 views

Use of the package 'bodeplot' giving warnings and doesn't produce the plot

I am just a beginner and am writing my first report in LaTeX, so excuse me if the solution is very obvious. I am trying to plot asymptotic approximation of bode plots using the package bodeplot as ...
caramalizedTomato's user avatar
1 vote
1 answer
38 views

modify shorten value for inner draw command

To generate a big arrow with white background inside, below code try to draw a small arrow in style define. If the outside shorten value is 0, then current logic works fine, but if define a 5pt ...
lucky1928's user avatar
  • 4,285
2 votes
2 answers
70 views

add customize line header not smooth connected

I would like to add a line and a arrow as head of line like below. it works basically but the connection between the added line and arrows not smooth. I guess I need some thing like --cycle to make ...
lucky1928's user avatar
  • 4,285
6 votes
1 answer
123 views

Naming tikz pics doesn't work on v.3.1.10

In previous versions of tikz the solution of naming pics using a local bounding box used to work. However, in the version 3.1.10, the previous code produces the error: ! Package pgf Error: No shape ...
adn's user avatar
  • 11.4k
2 votes
2 answers
106 views

I cannot get Pgfplots to display all my axis labels

I would like two axes (no graph), both with an axis break at the beginning. The horizontal axis needs to go till 195 and the vertical axis till 80. At the moment, I see the correct values but only the ...
ziadmbaroudi's user avatar
0 votes
1 answer
32 views

groupplot: width and alignment

What do I have to set so that an addplot in a groupplot is as wide as the two bottom ones; and the y-axes lie on a line. \documentclass[tikz, margin=5mm]{standalone} %\documentclass[a4paper]{article} ...
cis's user avatar
  • 8,922
2 votes
1 answer
43 views

inner xsep/ysep 0 not work as expected

I try to understand a answer from here, I modified the answer with inner xsep=0 inner ysep=0. The expected results should be the inner sep should take effect between latter B and the inner circle, but ...
lucky1928's user avatar
  • 4,285
0 votes
1 answer
50 views

Tikz: image act as transparency filter

Tikz allows us to use a blending mode, to turn the first image into the second: This is great, but now I'd like to do the same, but while being able to choose the color of the incrusted image, for ...
tobiasBora's user avatar
  • 8,994

1
2 3 4 5
704