• constructing relative joined plot's and --'s with --cycle in tikz
    by Jasper on October 11, 2026 at 6:48 am

    I was looking at Use "plot" inside a \draw path in tikz. I want to fill such a region, and improve my (very inconvenient currently) syntax. Is it possible to do cycle in a way like this too? \documentclass[border=1cm]{standalone} \usepackage{tikz} \usetikzlibrary{calc} \begin{document} \begin{tikzpicture}[trig format=rad] \draw (0,1) coordinate (T0) -- (1,1) coordinate (T1) [shift={(T1)}] plot[domain=0:2*pi] (\x,{sin(\x)}) coordinate (T2) [shift={($(T1) + (T2)$)}] (0,0) -- (1,0) coordinate (T3) [shift={(T3)}] (0,0) -- (1,3) coordinate (T4) [shift={(T4)}] plot[domain=0:pi] (-2*\x,{sin(\x)}) coordinate (T5) [shift={($(T4) + (T5)$)}] plot[domain=0:1] (-\x,\x) [shift= {(T0)}] -- (0,0) ; \end{tikzpicture} \end{document}

  • How could I make a template from this bit of code?
    by Jolia on October 9, 2026 at 8:32 am

    I'm a teacher and for my tests, I have a template like that : \documentclass[11.5pt, oneside]{report} \usepackage{tikz} \RequirePackage{geometry} \geometry{a4paper,left=1.5cm,top=2.5cm,right=1.5cm,bottom=1cm} \begin{document} \begin{minipage}{0.60\linewidth} \begin{flushleft} \large NAME : {\dotfill} \\ \vspace{0.3cm} Forname : {\dotfill} \end{flushleft} \end{minipage} \hfill \begin{minipage}{0.15\linewidth} \begin{flushright} \large class \\ \vspace{0.3cm} date \end{flushright} \end{minipage} \vspace{0.5cm} \begin{center} {\Large \textbf{Contrôle number : test name}} \medbreak {\Large Sujet A} \medbreak {\Large Durée : duration.} \end{center} \vspace{0.5cm} \begin{tikzpicture} \draw[thick] (0,0)--(18,0)--(18,2.5)--(0,2.5)--cycle; \draw[thick] (0,0)--(2.5,2.5)--(2.5,0); \draw (1.8,0.7) node{\Huge maxgrade}; \end{tikzpicture} \end{document} I created a documentclass for my tests but I would like to find a way to define the date, the class, the number and name of the test, the duration of the test and the maximum grade and have them automatically be implemented in that way without having all those lines that make it hard to see and to modify. Does anyone have any idea of how I could do that?

  • How to show that a sinusoidal function continues indefinitely to the left?
    by Marco Moldenhauer on October 8, 2026 at 4:18 pm

    I plotted a sinusoidal function using the axis environment from the pgfplots package. My code \documentclass[margin=3mm]{standalone} \usepackage{pgfplots} \pgfplotsset{compat=1.18} \begin{document} \begin{tikzpicture} \begin{axis}[ width=50cm, height=0.80\textwidth, axis y line=middle, axis x line=middle, axis on top, % <-- Correct pgfplots key to draw ticks, grid, and lines over plots xmin=-15, xmax=5.8, ymin=-125, ymax=125, xtick={-14,-3*pi,-5*pi/2,-2*pi,-3*pi/2,-pi,-pi/2,0,1,pi/2,pi,3*pi/2,2*pi}, xticklabels={$-\inf$,$-3\cdot\pi$,$-\frac{5}{2}\cdot\pi$,$-2\cdot\pi$,$-\frac{3}{2}\cdot\pi$,$-\pi$,$-\frac{1}{2}\cdot\pi$,$0$,1,$\frac{1}{2}\cdot\pi$,$\pi$,$\frac{3}{2}\cdot\pi$,$2\cdot\pi$}, ytick={-112.5,-112.5/sqrt(2),0,112.5/sqrt(2),112.5}, yticklabels={-112.5,,0,,112.5}, legend cell align={left}, grid=both, grid style={line width=.1pt, draw=gray!10}, major grid style={line width=.2pt, draw=gray!20}, xlabel={$\alpha=\omega\cdot t$ in rad}, ylabel={$p(t)$ in Watt}, xlabel style={at={(ticklabel* cs:1)}, anchor=north west}, ylabel style={at={(ticklabel* cs:1)}, anchor=south west} ] % 1. Colored area between x = 0 and x = 1 \addplot[ domain=0:1, samples=100, fill=green!30, draw=none ] {-112.5*sin(deg(x))} \closedcycle; % 2. Colored area between x = -4*pi and x = 0 \addplot[ domain=-4*pi:0, samples=100, fill=red!30, draw=none ] {-112.5*sin(deg(x))} \closedcycle; % Main curve \addplot[ domain=-4*pi:2*pi, samples=200, smooth, blue, thick ] {-112.5*sin(deg(x))}; \end{axis} \end{tikzpicture} \end{document} My output What I would like to achieve I would like to visually indicate that the sinusoidal function continues to oscillate periodically indefinitely in the negative "x"-direction. I'm totally open to creative ideas or completely different approaches. Any suggestions are very welcome! 🙂

  • tikzpicture placing is different as specified [duplicate]
    by Rup_LA on October 8, 2026 at 1:48 pm

    I am writing a document and used tikzpicture in an example. After the example, a section begins. But after compiling, I am getting the next section before the tikzpicture diagram, while my code says it to do otherwise. Why is it happening? I am sharing a fragment of the code here as the code for the whole document is too long: \documentclass[a4paper,12pt]{article} \usepackage{amsmath,amssymb,graphicx,tikz,amsthm} \usetikzlibrary{positioning} \setlength{\topmargin}{-0.5in} \setlength{\topskip}{0.275in} % between header and text \setlength{\textheight}{9.5in} % height of main text \setlength{\textwidth}{6.25in} % width of text \setlength{\oddsidemargin}{0.1in} % odd page left margin \setlength{\evensidemargin}{0.1in} \newtheorem{theorem}{Theorem}[section] \theoremstyle{definition} \newtheorem{definition}{Definition}[section] \newtheorem{example}{Example} \begin{document} \begin{example} Here we give examples of two simple graphs where adding an edge results in spectral integral variation in one and two places. We also give one example where adding an edge does not result in spectral integral variation. The spectrum of each graph are written below that graph. \begin{figure}[htbp] \centering \tikzset{ vertex/.style={circle, draw=black, fill=white, inner sep=0pt, minimum size=4pt, thick} } % Left Graph \begin{tikzpicture}[baseline=(c.base), thick] % Coordinates: center and 4 cardinal directions \node[vertex] (c) at (0, 0) {}; \node[vertex] (n) at (0, 1.2) {}; \node[vertex](s) at (0, -1.2) {}; \node[vertex] (w) at (-1.2, 0) {}; \node[vertex] (e) at (1.2, 0) {}; % Edges forming the cross \draw (n) -- (c) -- (s); \draw (w) -- (c) -- (e); \node[below=1em of s] {$\{0, 1, 1, 1, 5\}$}; \end{tikzpicture} \hspace{2.5cm} % Right Graph \begin{tikzpicture}[baseline=(c.base), thick] % Coordinates \node[vertex] (c) at (0, 0) {}; \node[vertex] (n) at (0, 1.2) {}; \node[vertex] (s) at (0, -1.2) {}; \node[vertex] (w) at (-1.2, 0) {}; \node[vertex] (e) at (1.2, 0) {}; % Edges forming the cross plus the diagonal \draw (n) -- (c) -- (s); \draw (w) -- (c) -- (e); \draw[red] (s) -- (e); % Label underneath \node[below=1em of s] {$\{0, 1, 1, 3, 5\}$}; \end{tikzpicture} \\ \vspace{3em} \begin{tikzpicture}[baseline=(c.base), thick] \node[vertex] (u) at (0,0) {}; \node[vertex] (v) at (1.2,0) {}; \node[vertex] (w) at (2.4,0) {}; \draw (u) -- (v); \node[below=1em of v] {$\{ 0,0,2\}$}; \node[vertex] (p) at (5,0) {}; \node[vertex] (q) at (6.2,0) {}; \node[vertex] (r) at (7.4,0) {}; \draw (p) -- (q); \draw[red] (q) --(r); \node[below=1em of q] {$\{ 0,1,3 \}$}; \end{tikzpicture} \\ \vspace{3em} \begin{tikzpicture}[baseline=(c.base), thick] \node[vertex] (a) at (0,0) {}; \node[vertex] (b) at (1.2,0) {}; \node[vertex] (c) at (0,1.2) {}; \node[vertex] (d) at (1.2,1.2) {}; \draw (a)--(b); \draw (c)--(d); \node[draw=none] at (0.6,-1) {$\{ 0,0,2,2\}$}; \node[vertex] (p) at (4.5,0.5) {}; \node[vertex] (q) at (5.7,0.5) {}; \node[vertex] (r) at (6.9,0.5) {}; \node[vertex] (m) at (8.1,0.5) {}; \draw (p)--(q); \draw (m)--(r); \draw[red] (q)--(r); \node[draw=none] at (6.3,-1) {$\{ 0,2-\sqrt{2},2,2+\sqrt{2}\}$}; \end{tikzpicture} \end{figure} \end{example} \section{Work done} In this paper, we discuss the characterizations of simple graphs in which spectral integral variation occurs by adding an edge. We also investigate the case where (one of) the changed eigenvalue(s) is the algebraic connectivity. \end{document} which gives the result as shown below: Note that I've written the section after completing the example but it is coming before the pictures and then after the pictures again continued where it left.

  • How can I depict X-ray beams as wavefronts that interfere above the sample to form a standing wave?
    by user449589 on October 7, 2026 at 7:24 am

    I'm not very skilled using TikZ but I wanted to use it for all the figures in my bachelors thesis. So far I created this TikZ-picture: \documentclass{article} \usepackage{tikz} \usetikzlibrary{patterns} \usetikzlibrary{patterns.meta} \usetikzlibrary{decorations.pathreplacing} \usetikzlibrary{decorations.pathmorphing} \usetikzlibrary{decorations.markings} \usetikzlibrary{snakes} \usetikzlibrary{arrows.meta} \usetikzlibrary{calc,patterns,angles,quotes} \usepackage[table]{xcolor} \definecolor{Minzgrün}{RGB}{0,140,79} \definecolor{Fenstergrau}{RGB}{128,128,128} \definecolor{Telegrau 4}{RGB}{230,230,230} \definecolor{Tomatenrot}{RGB}{140,28,0} \begin{document} \begin{tikzpicture} [x=0.35cm,y=0.2cm,line cap=round,line join=round] \draw[line width=1.5pt] (17.5,12.5) arc [start angle=0, end angle=180, x radius=2.5, y radius=1]; \draw [black, line width=1pt] (16,13) -- (21,14) node [align=center,right]{Detector\\window}; \draw[line width=1.5pt] (19,2) arc [start angle=0, end angle=180, x radius=4, y radius=1.5]; \draw[black,line width=1.5pt] (5,0.5) -- (25,0.5) -- (25,2) -- (5,2) -- cycle; \draw[black,line width=1.5pt] (10,25) -- (10,12.5) -- (20,12.5) -- (20,25); \draw[black,line width=1.5pt] (12.5,17.5) -- (17.5,17.5) -- (17.5,20) -- (12.5,20) -- cycle; \fill[black,pattern=crosshatch dots] (12.5,17.5) -- (17.5,17.5) -- (17.5,20) -- (12.5,20) -- cycle; \draw [black,line width=1pt] (12,20) -- (8.5,21) node[align=center,left] {Energy-dispersive\\detector}; \draw[Fenstergrau,line width=1pt,postaction={decorate,decoration={markings,mark=at position 0.15 with{\arrow{>}},mark=at position 1 with {\arrow{>}}}}] (-5,4) -- (10,2) -- (25,4); \draw[Fenstergrau,line width=1pt,postaction={decorate,decoration={markings,mark=at position 0.15 with{\arrow{>}},mark=at position 1 with {\arrow{>}}}}] (5,4) -- (20,2) -- (35,4); \node[align=center] at (0,6.5){Incident beam}; \node[align=center] at (30,6.5){Reflected beam}; \draw[black,line width=1pt] (12.5,1.25) -- (10,-2.5) node [below, align=center] {Sample carrier\\(\textit{reflector})}; \draw[black,line width=1pt] (16,2.5) -- (21,-2.5) node [below, align=center] {Sample}; \draw[Minzgrün,line width=1.25pt,->,decorate,decoration={snake,amplitude=0.1cm,segment length=0.4cm, post length=0.2cm}](15,2.5) -- (15,17); \draw [black, line width=1pt] (14,8) -- (9,12) node [align=center, left] {Fluorescence\\radiation}; \end{tikzpicture} \end{document} But I would like to include the X-ray beams as wave fronts which interfere above the sample to form a standing wave like in this image: Sadly this is beyond my TikZ-skills. Maybe somebody can help me or tell me where to look for answers. Thanks a lot!

  • The water level and the principle of communicating vessels
    by Sebastiano on October 4, 2026 at 7:49 pm

    I would like to create a water level, i.e. a transparent flexible tube filled with water, so that the principle of communicating vessels is clearly illustrated. How can I represent the flexible tube, keeping it along the horizontal surface and making it run up the two vertical sides, so that the configuration is similar to the one shown in the image? Here my 1st MWE: \documentclass{article} \usepackage{tikz} \usepackage{tikzphysics} \begin{document} \begin{tikzpicture}[ line cap=round, line join=round ] \node[ ground, ground width=8.6cm, ground depth=3mm ] (G) at (0,0) {}; \node[ ground, ground width=3.2cm, ground depth=3mm, rotate=90 ] (GL) at (-3.5,1.6) {}; \node[ ground, ground width=3.2cm, ground depth=3mm, rotate=90 ] (GR) at (3.5,1.6) {}; \draw[dashed, thick] (-3.9,2.8) -- (4.2,2.8); \draw[thin] (-3.9,0) -- (-3.7,0); \node[left] at (-3.7,3.1) {\small 100.0}; \draw[thin] (-3.2,0) -- (-3.2,3.1); \draw[thin] (3.8,0) -- (3.8,3.1); \draw[thin] (3.7,0) -- (3.9,0); \node[right] at (3.9,3.1) {\small 100.0}; \draw[thin] (-4.3,0) -- (-3.8,0); \node[left] at (-4.3,0.08) {\small 0.00}; \end{tikzpicture} \end{document} Now with Mathcha I have created the flexible tube, \documentclass{article} \usepackage[margin=0.5in]{geometry} \usepackage{tikz} \usepackage{tikzphysics} \definecolor{water}{RGB}{73,194,221} \pagestyle{empty} \begin{document} \centering \begin{tikzpicture}[x=1cm,y=1cm] \node[ ground, ground width=8.6cm, ground depth=3mm ] (G) at (0,0) {}; \node[ ground, ground width=3.2cm, ground depth=3mm, rotate=90 ] (GL) at (-3.5,1.6) {}; \node[ ground, ground width=3.2cm, ground depth=3mm, rotate=90 ] (GR) at (3.5,1.6) {}; \draw[dashed, thick] (-3.9,2.5) -- (4.2,2.5); \draw[thin] (-3.9,0) -- (-3.7,0); \node[left] at (-3.7,3.1) {\small 100.0}; \draw[thin] (-3.2,0) -- (-3.2,3.1); \draw[thin] (3.8,0) -- (3.8,3.1); \draw[thin] (3.7,0) -- (3.9,0); \node[right] at (3.9,3.1) {\small 100.0}; \draw[thin] (-4.3,0) -- (-3.8,0); \node[left] at (-4.3,0.08) {\small 0.00}; \begin{scope}[shift={(-6cm,-.9cm)}] \draw[gray!70,line width=7pt] (3.48,4.32) .. controls (3.48,3.98) and (3.71,3.58) .. (3.72,3.21) .. controls (3.73,2.85) and (3.50,2.35) .. (3.84,1.74) .. controls (4.10,1.23) and (4.46,1.03) .. (4.97,1.03) .. controls (6.20,1.03) and (7.68,0.99) .. (8.36,1.59) .. controls (8.96,2.09) and (8.90,3.16) .. (8.90,4.23); \draw[gray!20,line width=4.5pt] (3.48,4.32) .. controls (3.48,3.98) and (3.71,3.58) .. (3.72,3.21) .. controls (3.73,2.85) and (3.50,2.35) .. (3.84,1.74) .. controls (4.10,1.23) and (4.46,1.03) .. (4.97,1.03) .. controls (6.20,1.03) and (7.68,0.99) .. (8.36,1.59) .. controls (8.96,2.09) and (8.90,3.16) .. (8.90,4.23); \draw[water,line width=4.5pt] (3.69,3.42) .. controls (3.81,3.02) and (3.49,2.39) .. (3.84,1.74) .. controls (4.10,1.23) and (4.46,1.03) .. (4.97,1.03) .. controls (6.20,1.03) and (7.68,0.99) .. (8.36,1.59) .. controls (8.82,1.98) and (8.92,2.72) .. (8.90,3.42); \end{scope} \end{tikzpicture} \end{document} but the tube is not filled correctly.

  • Canvas 3D effect for vectors flattened along an axis or plane
    by Sebastiano on July 15, 2026 at 7:39 pm

    I would like to realize the following image in TikZ, which I had created very roughly in Adobe Illustrator. I am interested in understanding how to use TikZ 3d canvas to squash vectors along planes or lines. I would also like to see how it is used for labels. Here my attempt. See after the missing pieces. \documentclass{article} \usepackage{amsmath} \usepackage{bm} \usepackage{tikz} \usetikzlibrary{arrows.meta, angles, calc} \tikzset{rhtip/.tip={Triangle[line width=1pt, fill=white, length=9pt, width=9pt]}} \definecolor{vectorgreen}{RGB}{76, 181, 93} \definecolor{vectororange}{RGB}{235, 104, 38} \definecolor{vectorbrown}{RGB}{175, 110, 52} \definecolor{ellipseblue}{RGB}{112, 196, 172} \definecolor{spherepurple}{RGB}{155, 120, 200} \begin{document} \begin{tikzpicture}[>=latex] \coordinate (O) at (0,0); \draw[thin, black!70] (O) -- (0, 4.2) node[right, font=\Large] {$z$}; \draw[thin, black!70] (O) -- (5.5, -1.0) node[below right, font=\Large] {$y$}; \draw[thin, black!70] (O) -- (-4.8, -1.9) node[left, font=\Large] {$x$}; \coordinate (C) at (-2.2, -0.88); \fill[black] (C) circle (3.5pt) node[below=8pt, font=\Large] {$C$}; \begin{scope}[shift={(C)}, rotate=12] \draw[ellipseblue, line width=1.5pt] (0,0) ellipse (1.1 and 2.5); \draw[ellipseblue, line width=1.5pt, ->, >=latex] (131:1.1 and 2.5) -- (130:1.1 and 2.5); \draw[thin, black!60] (0,0) -- (225:1.1 and 2.5) node[midway, below right, font=\Large] {$r$}; \shade[ball color=spherepurple] (155:1.1 and 2.5) circle (0.18); \end{scope} \coordinate (P) at (4.0, 2.3); \coordinate (P_proj) at (4.0, -1.6); \draw[dashed, thick, black!80] (P) -- (P_proj); \draw[dashed, thick, black!80] (O) -- (P_proj); \draw[-rhtip, vectororange, line width=2pt] (O) -- (0, 1.9); \node[above right=2pt, font=\Large] at (0, 1.9) {$\bm{\beta}$}; \draw[-rhtip, vectorbrown, line width=2pt] (O) -- (-1.4, -0.56); \node[above=6pt, font=\Large] at (-0.7, -0.15) {$\mathbf{a}$}; \draw[-rhtip, vectorgreen, line width=2pt] (O) -- (3.9, 2.2); \node[below right=4pt, font=\Large] at (1.8, 1.1) {$\mathbf{R}$}; \fill[black] (P) circle (3.5pt) node[above right=4pt, font=\Large] {$P$}; \shade[ball color=spherepurple] (O) circle (0.22); \node[above left=6pt, font=\Large] at (O) {$q$}; \draw[<->, >=latex, semithick, black!80] (30:1.3) arc (30:90:1.3); \node[font=\Large] at (60:1.65) {$\theta$}; \node[font=\Large, below left=6pt] at (1, 0, 1) {$\varphi$}; \end{tikzpicture} \end{document}

  • Use "plot" inside a \draw path in tikz
    by flawr on April 30, 2026 at 5:36 pm

    Is there a way to continue a path we draw using \draw with a plot, just as we do for instance also with arc or similar commands? In the example below I have a straight line, but I'd like the plot to append directly to that line, as indicated by the red dots. I can of course do that e.g. with plot[shift={(1,1)},...], but that means that I have to repeat that second coordinate in the path, which makes it again more cumbersome to use if we want to change something later (and the second straight line segment then points to the original endpoint without the shift). So this is more a question about "ergonomically" using this plot command inside other paths. E.g., I also like using the ++ syntax to precisely extend a path a certain distance horizontally, without having to repeat the previous y-coordinate, and I was wondering whether there is something similar we can do with the plot command inside such a path. \documentclass{standalone} \usepackage{tikz} \usepackage{xcolor} \usepackage{pgfplots} \pgfplotsset{compat=1.17} \usetikzlibrary{calc} \begin{document} \begin{tikzpicture}[domain=0:4] \draw[black!10!white, dashed] (0, 0) grid (4, 2); \draw (0, 1) -- (1, 1) node[left] {} plot[domain=0:1, samples=100] function{sin(6.3*x)} node[right] {} -- ++(1, 0); \end{tikzpicture} \end{document}

  • Nicely organized graph representing Feynman
    by FishDrowned on April 3, 2026 at 1:26 pm

    I don't quite understand why the first node is no longer pointing toward $C_0$. How can I move $C_0$ to be on the far right side, still level with the first node (kind of looking like a trapezoid) while still connected to the first node? \documentclass{article} \usepackage{tikz} \usetikzlibrary{graphs} \begin{document} \begin{center} \scalebox{1.2}{ \tikz \graph [grow right sep]{ x1 [as =$\displaystyle \int_a^b{f(x)dx}$] -> {x2[as=$C_0$, red], x3[as=$F(t)$] -> x4[as=$F^\prime(t)$] -> x5[as=$\displaystyle \int{F^\prime(t)dt}$] -> x6[as=$C(t) + C_{1}$, red]->x2}; }; } \end{center} \end{document} This is what it currently looks like: This is the intended result (essentially, ignore the terrible drawing lol): Any help or a push toward some sort of useful resource is much appreciated.

  • Drawing a porous sandwich beam
    by Tldi You on January 16, 2026 at 9:03 am

    Can we reproduce this image in LaTeX Tikz? I try this \documentclass[tikz,border=5pt]{standalone} \usepackage{tikz} \usetikzlibrary{patterns,arrows.meta,decorations.pathmorphing} \begin{document} \begin{tikzpicture}[scale=1] %------------------------------------------------- % Common styles %------------------------------------------------- \tikzset{ block/.style={draw, thick, fill=orange!20}, caps/.style={draw, thick, fill=blue!40}, axis/.style={->, thick}, profile/.style={thick}, } %================================================= % (b) SD %================================================= \begin{scope}[xshift=0cm] % Top and bottom caps \draw[caps] (0,4) rectangle (4,4.5); \draw[caps] (0,0) rectangle (4,0.5); % Main block with layered patterns \draw[block] (0,0.5) rectangle (4,4); % Internal layers \draw[pattern=checkerboard, pattern color=orange!70] (0,2.7) rectangle (4,4); \draw[pattern=crosshatch, pattern color=orange!70] (0,1.6) rectangle (4,2.7); \draw[pattern=grid, pattern color=orange!70] (0,0.5) rectangle (4,1.6); % Axes \draw[axis] (0,2.25) -- (5,2.25) node[above] {$x$}; \draw[axis] (0,2.25) -- (0,5) node[above] {$z$}; % Right profile \draw[domain=0.5:4,smooth,,red,variable=\z] plot ({6-cos(180*\z/((4-0.5)))},{\z}); % Labels \node[right] at (4.1,3.9) {$E_{\max},\,\rho_{\max}$}; \node[right] at (4.1,0.6) {$E_{\max},\,\rho_{\max}$}; \node at (2,-0.6) {(b) SD}; \end{scope} %================================================= % (c) ASD %================================================= \begin{scope}[xshift=8cm] % Top and bottom caps \draw[caps] (0,4) rectangle (4,4.5); \draw[caps] (0,0) rectangle (4,0.5); % Main block \draw[block] (0,0.5) rectangle (4,4); % Gradient-like pattern layers \draw[pattern=checkerboard, pattern color=orange!70] (0,2.5) rectangle (4,4); \draw[pattern=crosshatch dots, pattern color=orange!70] (0,0.5) rectangle (4,2.5); \draw[pattern=checkerboard, pattern color=orange!70] (0,0.5) rectangle (4,1.6); % Axes \draw[axis] (0,2.25) -- (5,2.25) node[above] {$x$}; \draw[axis] (0,0.5) -- (0,5) node[above] {$z$}; % Right profile (asymmetric) % \draw[profile] % (4,4) .. controls (4.8,3.5) and (4.8,1.5) .. (4,0.5); % Labels \node[right] at (4.1,3.9) {$E_{\max},\,\rho_{\max}$}; \node[right] at (4.1,0.6) {$E_{\min},\,\rho_{\min}$}; \node at (2,-0.6) {(c) ASD}; \draw[domain=0.5:4,smooth,,red,variable=\z] plot ({1*(5-cos(45+(180*\z)/(2*(4-0.5)))))},{\z}); \end{scope} \end{tikzpicture} \end{document} Current result:

  • Draw objects in tikz in "stamp"-style
    by Martin on March 30, 2025 at 6:55 pm

    I want to change the style of objects in tikz to some kind of "stamp"-style, where the objects are kind of not perfectly drawn and contain "imperfections" or faded elements. For me it is hard to explain what I mean by that, so I have included a picture that shows what I mean: I want to be able to apply this kind of effect (as "irregular" and "asymmetric" as possible) to different objects in tikz, in particular to texts (even if using a different font with xetex), lines, rectangles, ellipses and if possible even pictures. This should work with different colors. The following MWE includes the objects that I wish to apply this effect to (but I have no idea how to even start): \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{decorations.text} \usepackage[T1]{fontenc} \usepackage{xltxtra} \setmainfont{Algerian} \begin{document} \begin{tikzpicture} \draw (0,0) ellipse (4cm and 2cm); \draw[line width=1.5mm, yellow] (0,0) ellipse (3.8cm and 1.8cm); \node at (0,0) {\includegraphics[height=2.2cm]{example-image}}; \draw[white,thick,postaction={decorate,decoration={text along path,text align=center,text={This Is A Text}}}] (-2,1.0) to [bend left=15] (2,1.0); \draw[white,thick,postaction={decorate,decoration={text along path,text align=center,text={This Is Another Text}}}] (-2,-1.42) to [bend left=-15] (2,-1.42); \draw[red, fill=yellow] (2,-0.5) rectangle (3,0.5); \draw[green, fill=green](-3,-0.5) rectangle (-2,0.5); \end{tikzpicture} \end{document}

  • How to tune the function of line-to operation `|-` and `-|` in TikZ?
    by Explorer on December 27, 2024 at 4:29 am

    I was plot the flowchart as below with the MWE: \documentclass[border=8pt,tikz]{standalone} \usetikzlibrary{positioning} \begin{document} \begin{tikzpicture}[ cap = round, every rectangle node/.style = {draw,outer sep=0pt,minimum width=2cm}, empty/.style = {circle,inner sep=0pt,outer sep=0pt,minimum size=0pt}] \node[rectangle] (A) {input $x$}; \node[empty] (B) [right=1 of A] {}; \node[rectangle] (C) [above right=.3 and 3 of A] {$\frac15x$}; \node[rectangle] (D) [below right=.3 and 3 of A] {$x+4$}; \node[empty] (E) [right=5.5 of A] {}; \node[rectangle] (F) [right=1.5 of E] {output}; \node[empty] (F1) [below=1.2 of F] {}; \node[empty] (F2) [below=1.2 of A] {}; \draw[-latex] (A) -- (B) |- node [empty,sloped,pos=.75,above=-.2] {$x\ne1$} (C); \draw[-latex] (B) |- node [empty,sloped,pos=.75,below=-.2] {$x=1$} (D); \draw[-latex] (C) -| (E) (D) -| (E) -- (F); \draw[-latex] (F) -- (F1) -- node[empty,sloped,below=-.2] {$x<99$} (F2) -- (A); \end{tikzpicture} \end{document} However, I found that the Horizontal and Vertical Lines Operation |- and -| reached a limited function as the document below shown: In my above code: I have the following three questions: \draw[-latex] (A) -- (B) |- node [empty,sloped,pos=.75,above=-.2] {$x\ne1$} (C); \draw[-latex] (B) |- node [empty,sloped,pos=.75,below=-.2] {$x=1$} (D); \draw[-latex] (C) -| (E) (D) -| (E) -- (F); \draw[-latex] (F) -- (F1) -- node[empty,sloped,below=-.2] {$x<99$} (F2) -- (A); the code above of FOUR \draw of FOUR arrows is a little superfluous, but the arrow is based on \path Is there any tune of my code to avoid defining the node of (B) and (E) explicitly in my case, what I want is a more powerful |- and -| provide a parameter such as proportion=<fp in 0~1> which decide the horizonal/vertical length of the conjunction automatically In the framework of TikZ, is there exists better solution to plot flowchart like this without immersed in multiple seperate \path operation?

  • How do Tikz-3D local planes work?
    by gabyy_rx on September 22, 2024 at 9:38 pm

    I am trying to use the canvas system to define scopes with local planes. When defining a local plane, according to the documentation we define: plane origin=⟨point⟩ Origin of the plane plane x=⟨point⟩ Unit vector of the x-direction in the new plane plane y=⟨point⟩ Unit vector of the y-direction in the new plane So the default plane (in 3D) should be : plane origin = (0,0,0), plane x = (1,0,0), plane y = (0,1,0) If I run this code, I should get a green vector corresponding to the x direction starting from the origin, and the same vector in red starting from (0,3): \documentclass[tikz,border=3.14mm]{standalone} \begin{document} \usetikzlibrary {3d, angles, calc, patterns, quotes, math} \begin{tikzpicture} \draw[->,green] (0,0,0) -- (1,0,0) node[right] {$\vec u_x$}; \begin{scope}[plane x = {(1,0,0)}, plane y = {(0,1,0)}, plane origin = {(0,3,0)}, canvas is plane, transform shape]; \draw[->,red] (0,0) -- (1,0) ; \end{scope} \end{tikzpicture} \end{document} But I get this and I can't figure out why (3D/2D conversions... ??)

  • how can get 3d axis labels in latex tikzpicture?
    by Samia Rani on August 28, 2024 at 8:28 pm

    I am trying to draw the latex picture as same as shown in the given image. Almost all I have done but I am unable to draw the axis label as shown in the image. Please anyone can help me? \documentclass[tikz, border=1pt]{standalone} \usetikzlibrary{arrows.meta, ext.topaths.arcthrough, decorations.markings} \usetikzlibrary{math} \usepackage{pgfplots} \pgfplotsset{compat=1.18} \begin{document} \begin{tikzpicture} \begin{axis}[ view={60}{30}, axis lines=none, % Draw axes lines samples=30, samples y=10, domain=0:360, xmax=20, ymax=20, zmax=20, grid=major, enlargelimits=true, axis on top, shader=flat, opacity=1.0, colormap={gray}{color(0cm)=(lightgray); color(1cm)=(lightgray)}, xtick=\empty, % Remove x-axis ticks ytick=\empty, % Remove y-axis ticks ztick=\empty % Remove z-axis ticks ] % Upper cone z = sqrt(x^2 + y^2) \addplot3 [ surf, faceted color=black, % Color of the grid lines draw=black, % Draw the edges with black lines z buffer=sort, domain=0:360, y domain=0:10, ] ({y*cos(x)},{y*sin(x)},{y}); % Lower cone z = -sqrt(x^2 + y^2) \addplot3 [ surf, faceted color=black, % Color of the grid lines draw=black, % Draw the edges with black lines z buffer=sort, domain=0:360, y domain=0:10, ] ({y*cos(x)},{y*sin(x)},{-y}); \end{axis} \end{tikzpicture} \end{document}

  • Use of the package 'bodeplot' giving warnings and doesn't produce the plot
    by caramalizedTomato on July 11, 2024 at 8:29 pm

    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 answered here, I simply copied and pasted the following sample code as give in the documentation, \begin{BodeMagPlot}[% axes/{height=2cm, width=4cm} ] {0.01} {100} \addBodeZPKPlots[% asymptotic/{blue,dotted,thick}% ] {magnitude} {% z/{0,{-0.1,-0.5},{-0.1,0.5}}, p/{{-0.5,-10},{-0.5,10}}, k/10% } \end{BodeMagPlot} Now if I am using Overleaf to compile, I am getting the expected results, but then when I use the exact syntax in MikTeX installed on my PC, I do not get any plot, and instead, two warnings messages are displayed: \ifplatform.sty:0:shell escape is disabled, so I can only detect \ifwindows You have an axis with empty range (in direction y). Replacing it with a default range and clearing all plots As far as I can tell the second warning is why I didn't get any plot, but I couldn't understand how to rectify this by giving the range for y-axis, and why does this run in Overleaf, but not on my system? And if the first warning is responsible for this somehow.

  • Diagnosing Standalone and Gensymb conflict
    by Altissimo on January 9, 2024 at 5:52 pm

    Disclaimer: I am new-ish to LaTeX, and self-taught. I am trying to make a "Unit Circle" TikZ graphic, in which I would like to have the \degree symbol from the gensymb package in the label text of a node. My current workflow involves the standalone package, and uses the \include command to create a sort of "master file" containing each of my creations on its own page which I reference in other Overleaf projects using the 'output file from another project' and the graphicx package to reduce compile time. There is probably a better way to do this, but it keeps it simple enough for me and I like having everything in more or less the same place so I can make quick references between my images. It has worked so far, until now... My problem is, it is preferable if I don't have to update the preamble of my master document every time I add a new picture, especially since that's where I define things like colors which occasionally use identical names (e.g. gradient1). Hence, I load \usepackage[subpreambles]{standalone} to read the preamble of each standalone separately. Again, this has worked well enough so far that I have been able to solve any hiccups myself. I have failed to diagnose why exactly, but there is something going on with the [subpreambles] tag and loading the gensymb package. Here is my MWE: \documentclass[tikz]{standalone} \usepackage{textcomp,gensymb} % for degree symbol \begin{document} \begin{tikzpicture} \node at (0,0) {$0\degree$}; \end{tikzpicture} \end{document} which I have in Overleaf as degree-test.tex. When I try to reference this file in another: \documentclass[tikz]{standalone} \usepackage[subpreambles]{standalone} \begin{document} \include{degree-test} \end{document} I get the error: Package standalone Warning: Sub-preamble of file 'degree-test.tex' has changed. Content will be ignored. Please rerun LaTeX! on input line 4. I compile with LuaLaTeX, but other compilers produce similar results. Even removing \degree from the node label produces the error, despite not actually using the symbol. There must be some kind of conflict with commands which define certain things during the preamble, but I don't know how to read the error logs and they're very frightening on the surface. Is there a simple fix for this? EDIT: I have also disqualified \documentclass[tikz]{standalone} and \include vs \includestandalone as culprits.

  • Problems with simple bode plots using bodeplot package
    by StringChecker on September 25, 2023 at 6:49 pm

    I'm trying to plot the most simple Bode plot of the most simple lowpass filter function, given as G(s) = 1/(s+1). Here's my code: \documentclass{article} \usepackage{bodeplot} \begin{document} \BodeTF{num/{0,1},den/{1,1},d/0}{0.01}{100} \end{document} Gain plot seems ok - phase plot doesn't show expected (i. e.: NOTHING! Plus giving errors). What am I doing wrong? === EDIT 26-SEP-2023 === In Overleaf it works fine, using TexLive 2023. Just updated my MikTeX installation on my desktop PC - still no phase plot. Here's the log: This is LuaHBTeX, Version 1.17.0 (MiKTeX 23.9.24) (format=lualatex 2023.9.26) 26 SEP 2023 07:21 system commands enabled. **test.tex (./test.tex LaTeX2e <2023-06-01> patch level 1 L3 programming layer <2023-08-29> Lua module: luaotfload 2023-08-31 3.26 Lua based OpenType font support Lua module: lualibs 2023-07-13 2.76 ConTeXt Lua standard libraries. Lua module: lualibs-extended 2023-07-13 2.76 ConTeXt Lua libraries -- extended c ollection. luaotfload | conf : Root cache directory is "C:/Users/PC/AppData/Local/MiKTeX/lu atex-cache/generic/names". luaotfload | init : Loading fontloader "fontloader-2023-08-19.lua" from kpse-res olved path "C:/Users/PC/AppData/Local/Programs/MiKTeX/tex/luatex/luaotfload/font loader-2023-08-19.lua". Lua-only attribute luaotfload@noligature = 1 luaotfload | init : Context OpenType loader version 3.133 Inserting `luaotfload.node_processor' in `pre_linebreak_filter'. Inserting `luaotfload.node_processor' in `hpack_filter'. Inserting `luaotfload.glyph_stream' in `glyph_stream_provider'. Inserting `luaotfload.define_font' in `define_font'. Lua-only attribute luaotfload_color_attribute = 2 luaotfload | conf : Root cache directory is "C:/Users/PC/AppData/Local/MiKTeX/lu atex-cache/generic/names". Inserting `luaotfload.harf.strip_prefix' in `find_opentype_file'. Inserting `luaotfload.harf.strip_prefix' in `find_truetype_file'. Removing `luaotfload.glyph_stream' from `glyph_stream_provider'. Inserting `luaotfload.harf.glyphstream' in `glyph_stream_provider'. Inserting `luaotfload.harf.finalize_vlist' in `post_linebreak_filter'. Inserting `luaotfload.harf.finalize_hlist' in `hpack_filter'. Inserting `luaotfload.cleanup_files' in `wrapup_run'. Inserting `luaotfload.harf.finalize_unicode' in `finish_pdffile'. Inserting `luaotfload.glyphinfo' in `glyph_info'. Lua-only attribute luaotfload.letterspace_done = 3 Inserting `luaotfload.aux.set_sscale_dimens' in `luaotfload.patch_font'. Inserting `luaotfload.aux.set_font_index' in `luaotfload.patch_font'. Inserting `luaotfload.aux.patch_cambria_domh' in `luaotfload.patch_font'. Inserting `luaotfload.aux.fixup_fontdata' in `luaotfload.patch_font_unsafe'. Inserting `luaotfload.aux.set_capheight' in `luaotfload.patch_font'. Inserting `luaotfload.aux.set_xheight' in `luaotfload.patch_font'. Inserting `luaotfload.rewrite_fontname' in `luaotfload.patch_font'. Inserting `tracingstacklevels' in `input_level_string'. (C:/Users/PC/AppData/Lo cal/Programs/MiKTeX/tex/latex/base/article.cls Document Class: article 2023/05/17 v1.4n Standard LaTeX document class (C:/Users/PC/AppData/Local/Programs/MiKTeX/tex/latex/base/size10.clo File: size10.clo 2023/05/17 v1.4n Standard LaTeX file (size option) luaotfload | db : Font names database loaded from C:/Users/PC/AppData/Local/MiKT eX/luatex-cache/generic/names/luaotfload-names.luc.gz) \c@part=\count183 \c@section=\count184 \c@subsection=\count185 \c@subsubsection=\count186 \c@paragraph=\count187 \c@subparagraph=\count188 \c@figure=\count189 \c@table=\count190 \abovecaptionskip=\skip48 \belowcaptionskip=\skip49 \bibindent=\dimen139 ) (C:/Users/PC/AppData/Local/Programs/MiKTeX/tex/latex/bodeplot/bodeplot.sty Package: bodeplot (C:/Users/PC/AppData/Local/Programs/MiKTeX/tex/generic/pdftexcmds/pdftexcmds.st y Package: pdftexcmds 2020-06-27 v0.33 Utility functions of pdfTeX for LuaTeX (HO ) (C:/Users/PC/AppData/Local/Programs/MiKTeX/tex/generic/infwarerr/infwarerr.sty Package: infwarerr 2019/12/03 v1.5 Providing info/warning/error messages (HO) ) (C:/Users/PC/AppData/Local/Programs/MiKTeX/tex/generic/iftex/iftex.sty Package: iftex 2022/02/03 v1.0f TeX engine tests ) (C:/Users/PC/AppData/Local/Programs/MiKTeX/tex/generic/ltxcmds/ltxcmds.sty Package: ltxcmds 2020-05-10 v1.25 LaTeX kernel commands for general use (HO) ) Package pdftexcmds Info: \pdf@primitive is available. Package pdftexcmds Info: \pdf@ifprimitive is available. Package pdftexcmds Info: \pdfdraftmode found. \pdftexcmds@toks=\toks17 ) (C:/Users/PC/AppData/Local/Programs/MiKTeX/tex/latex/ifplatform/ifplatform.sty Package: ifplatform 2017/10/13 v0.4a Testing for the operating system (C:/Users/PC/AppData/Local/Programs/MiKTeX/tex/latex/tools/shellesc.sty Package: shellesc 2023/04/15 v1.0d unified shell escape interface for LaTeX Package shellesc Info: Unrestricted shell escape enabled on input line 75. ) (C:/Users/PC/AppData/Local/Programs/MiKTeX/tex/generic/catchfile/catchfile.sty Package: catchfile 2019/12/09 v1.8 Catch the contents of a file (HO) (C:/Users/PC/AppData/Local/Programs/MiKTeX/tex/generic/etexcmds/etexcmds.sty Package: etexcmds 2019/12/15 v1.7 Avoid name clashes with e-TeX commands (HO) )) (C:/Users/PC/AppData/Local/Programs/MiKTeX/tex/generic/iftex/ifluatex.sty Package: ifluatex 2019/10/25 v1.5 ifluatex legacy package. Use iftex instead. )) (C:/Users/PC/AppData/Local/Programs/MiKTeX/tex/latex/environ/environ.sty Package: environ 2014/05/04 v0.3 A new way to define environments (C:/Users/PC/AppData/Local/Programs/MiKTeX/tex/latex/trimspaces/trimspaces.sty Package: trimspaces 2009/09/17 v1.1 Trim spaces around a token list ) \@envbody=\toks18 ) (C:/Users/PC/AppData/Local/Programs/MiKTeX/tex/latex/pgfplots/pgfplots.sty (C:/Users/PC/AppData/Local/Programs/MiKTeX/tex/generic/pgfplots/pgfplots.revisi on.tex) Package: pgfplots 2021/05/15 v1.18.1 Data Visualization (1.18.1) (C:/Users/PC/AppData/Local/Programs/MiKTeX/tex/latex/graphics/graphicx.sty Package: graphicx 2021/09/16 v1.2d Enhanced LaTeX Graphics (DPC,SPQR) (C:/Users/PC/AppData/Local/Programs/MiKTeX/tex/latex/graphics/keyval.sty Package: keyval 2022/05/29 v1.15 key=value parser (DPC) \KV@toks@=\toks19 ) (C:/Users/PC/AppData/Local/Programs/MiKTeX/tex/latex/graphics/graphics.sty Package: graphics 2022/03/10 v1.4e Standard LaTeX Graphics (DPC,SPQR) (C:/Users/PC/AppData/Local/Programs/MiKTeX/tex/latex/graphics/trig.sty Package: trig 2021/08/11 v1.11 sin cos tan (DPC) ) (C:/Users/PC/AppData/Local/Programs/MiKTeX/tex/latex/graphics-cfg/graphics.cfg File: graphics.cfg 2016/06/04 v1.11 sample graphics configuration ) Package graphics Info: Driver file: luatex.def on input line 107. (C:/Users/PC/AppData/Local/Programs/MiKTeX/tex/latex/graphics-def/luatex.def File: luatex.def 2022/09/22 v1.2d Graphics/color driver for luatex )) \Gin@req@height=\dimen140 \Gin@req@width=\dimen141 ) (C:/Users/PC/AppData/Local/Programs/MiKTeX/tex/latex/pgf/frontendlayer/tikz.sty (C:/Users/PC/AppData/Local/Programs/MiKTeX/tex/latex/pgf/basiclayer/pgf.sty (C:/Users/PC/AppData/Local/Programs/MiKTeX/tex/latex/pgf/utilities/pgfrcs.sty (C:/Users/PC/AppData/Local/Programs/MiKTeX/tex/generic/pgf/utilities/pgfutil-co mmon.tex \pgfutil@everybye=\toks20 \pgfutil@tempdima=\dimen142 \pgfutil@tempdimb=\dimen143 ) (C:/Users/PC/AppData/Local/Programs/MiKTeX/tex/generic/pgf/utilities/pgfutil-la tex.def \pgfutil@abb=\box51 ) (C:/Users/PC/AppData/Local/Programs/MiKTeX/tex/generic/pgf/utilities/pgfrcs.cod e.tex (C:/Users/PC/AppData/Local/Programs/MiKTeX/tex/generic/pgf/pgf.revision.tex) Package: pgfrcs 2023-01-15 v3.1.10 (3.1.10) )) Package: pgf 2023-01-15 v3.1.10 (3.1.10) (C:/Users/PC/AppData/Local/Programs/MiKTeX/tex/latex/pgf/basiclayer/pgfcore.sty (C:/Users/PC/AppData/Local/Programs/MiKTeX/tex/latex/pgf/systemlayer/pgfsys.sty (C:/Users/PC/AppData/Local/Programs/MiKTeX/tex/generic/pgf/systemlayer/pgfsys.c ode.tex Package: pgfsys 2023-01-15 v3.1.10 (3.1.10) (C:/Users/PC/AppData/Local/Programs/MiKTeX/tex/generic/pgf/utilities/pgfkeys.co de.tex \pgfkeys@pathtoks=\toks21 \pgfkeys@temptoks=\toks22 (C:/Users/PC/AppData/Local/Programs/MiKTeX/tex/generic/pgf/utilities/pgfkeyslib raryfiltered.code.tex \pgfkeys@tmptoks=\toks23 )) \pgf@x=\dimen144 \pgf@y=\dimen145 \pgf@xa=\dimen146 \pgf@ya=\dimen147 \pgf@xb=\dimen148 \pgf@yb=\dimen149 \pgf@xc=\dimen150 \pgf@yc=\dimen151 \pgf@xd=\dimen152 \pgf@yd=\dimen153 \w@pgf@writea=\write3 \r@pgf@reada=\read2 \c@pgf@counta=\count191 \c@pgf@countb=\count192 \c@pgf@countc=\count193 \c@pgf@countd=\count194 \t@pgf@toka=\toks24 \t@pgf@tokb=\toks25 \t@pgf@tokc=\toks26 \pgf@sys@id@count=\count195 (C:/Users/PC/AppData/Local/Programs/MiKTeX/tex/generic/pgf/systemlayer/pgf.cfg File: pgf.cfg 2023-01-15 v3.1.10 (3.1.10) ) Driver file for pgf: pgfsys-luatex.def (C:/Users/PC/AppData/Local/Programs/MiKTeX/tex/generic/pgf/systemlayer/pgfsys-l uatex.def File: pgfsys-luatex.def 2023-01-15 v3.1.10 (3.1.10) (C:/Users/PC/AppData/Local/Programs/MiKTeX/tex/generic/pgf/systemlayer/pgfsys-c ommon-pdf.def File: pgfsys-common-pdf.def 2023-01-15 v3.1.10 (3.1.10) ))) (C:/Users/PC/AppData/Local/Programs/MiKTeX/tex/generic/pgf/systemlayer/pgfsysso ftpath.code.tex File: pgfsyssoftpath.code.tex 2023-01-15 v3.1.10 (3.1.10) \pgfsyssoftpath@smallbuffer@items=\count196 \pgfsyssoftpath@bigbuffer@items=\count197 ) (C:/Users/PC/AppData/Local/Programs/MiKTeX/tex/generic/pgf/systemlayer/pgfsyspr otocol.code.tex File: pgfsysprotocol.code.tex 2023-01-15 v3.1.10 (3.1.10) )) (C:/Users/PC/AppData/Local/Programs/MiKTeX/tex/latex/xcolor/xcolor.sty Package: xcolor 2022/06/12 v2.14 LaTeX color extensions (UK) (C:/Users/PC/AppData/Local/Programs/MiKTeX/tex/latex/graphics-cfg/color.cfg File: color.cfg 2016/01/02 v1.6 sample color configuration ) Package xcolor Info: Driver file: luatex.def on input line 227. (C:/Users/PC/AppData/Local/Programs/MiKTeX/tex/latex/graphics/mathcolor.ltx) Package xcolor Info: Model `cmy' substituted by `cmy0' on input line 1353. Package xcolor Info: Model `hsb' substituted by `rgb' on input line 1357. Package xcolor Info: Model `RGB' extended on input line 1369. Package xcolor Info: Model `HTML' substituted by `rgb' on input line 1371. Package xcolor Info: Model `Hsb' substituted by `hsb' on input line 1372. Package xcolor Info: Model `tHsb' substituted by `hsb' on input line 1373. Package xcolor Info: Model `HSB' substituted by `hsb' on input line 1374. Package xcolor Info: Model `Gray' substituted by `gray' on input line 1375. Package xcolor Info: Model `wave' substituted by `hsb' on input line 1376. ) (C:/Users/PC/AppData/Local/Programs/MiKTeX/tex/generic/pgf/basiclayer/pgfcore.c ode.tex Package: pgfcore 2023-01-15 v3.1.10 (3.1.10) (C:/Users/PC/AppData/Local/Programs/MiKTeX/tex/generic/pgf/math/pgfmath.code.te x (C:/Users/PC/AppData/Local/Programs/MiKTeX/tex/generic/pgf/math/pgfmathutil.cod e.tex) (C:/Users/PC/AppData/Local/Programs/MiKTeX/tex/generic/pgf/math/pgfmathparser.c ode.tex \pgfmath@dimen=\dimen154 \pgfmath@count=\count198 \pgfmath@box=\box52 \pgfmath@toks=\toks27 \pgfmath@stack@operand=\toks28 \pgfmath@stack@operation=\toks29 ) (C:/Users/PC/AppData/Local/Programs/MiKTeX/tex/generic/pgf/math/pgfmathfunction s.code.tex) (C:/Users/PC/AppData/Local/Programs/MiKTeX/tex/generic/pgf/math/pgfmathfunction s.basic.code.tex) (C:/Users/PC/AppData/Local/Programs/MiKTeX/tex/generic/pgf/math/pgfmathfunction s.trigonometric.code.tex) (C:/Users/PC/AppData/Local/Programs/MiKTeX/tex/generic/pgf/math/pgfmathfunction s.random.code.tex) (C:/Users/PC/AppData/Local/Programs/MiKTeX/tex/generic/pgf/math/pgfmathfunction s.comparison.code.tex) (C:/Users/PC/AppData/Local/Programs/MiKTeX/tex/generic/pgf/math/pgfmathfunction s.base.code.tex) (C:/Users/PC/AppData/Local/Programs/MiKTeX/tex/generic/pgf/math/pgfmathfunction s.round.code.tex) (C:/Users/PC/AppData/Local/Programs/MiKTeX/tex/generic/pgf/math/pgfmathfunction s.misc.code.tex) (C:/Users/PC/AppData/Local/Programs/MiKTeX/tex/generic/pgf/math/pgfmathfunction s.integerarithmetics.code.tex) (C:/Users/PC/AppData/Local/Programs/MiKTeX/tex/generic/pgf/math/pgfmathcalc.cod e.tex) (C:/Users/PC/AppData/Local/Programs/MiKTeX/tex/generic/pgf/math/pgfmathfloat.co de.tex \c@pgfmathroundto@lastzeros=\count199 )) (C:/Users/PC/AppData/Local/Programs/MiKTeX/tex/generic/pgf/math/pgfint.code.tex ) (C:/Users/PC/AppData/Local/Programs/MiKTeX/tex/generic/pgf/basiclayer/pgfcorepo ints.code.tex File: pgfcorepoints.code.tex 2023-01-15 v3.1.10 (3.1.10) \pgf@picminx=\dimen155 \pgf@picmaxx=\dimen156 \pgf@picminy=\dimen157 \pgf@picmaxy=\dimen158 \pgf@pathminx=\dimen159 \pgf@pathmaxx=\dimen160 \pgf@pathminy=\dimen161 \pgf@pathmaxy=\dimen162 \pgf@xx=\dimen163 \pgf@xy=\dimen164 \pgf@yx=\dimen165 \pgf@yy=\dimen166 \pgf@zx=\dimen167 \pgf@zy=\dimen168 ) (C:/Users/PC/AppData/Local/Programs/MiKTeX/tex/generic/pgf/basiclayer/pgfcorepa thconstruct.code.tex File: pgfcorepathconstruct.code.tex 2023-01-15 v3.1.10 (3.1.10) \pgf@path@lastx=\dimen169 \pgf@path@lasty=\dimen170 ) (C:/Users/PC/AppData/Local/Programs/MiKTeX/tex/generic/pgf/basiclayer/pgfcorepa thusage.code.tex File: pgfcorepathusage.code.tex 2023-01-15 v3.1.10 (3.1.10) \pgf@shorten@end@additional=\dimen171 \pgf@shorten@start@additional=\dimen172 ) (C:/Users/PC/AppData/Local/Programs/MiKTeX/tex/generic/pgf/basiclayer/pgfcoresc opes.code.tex File: pgfcorescopes.code.tex 2023-01-15 v3.1.10 (3.1.10) \pgfpic=\box53 \pgf@hbox=\box54 \pgf@layerbox@main=\box55 \pgf@picture@serial@count=\count266 ) (C:/Users/PC/AppData/Local/Programs/MiKTeX/tex/generic/pgf/basiclayer/pgfcoregr aphicstate.code.tex File: pgfcoregraphicstate.code.tex 2023-01-15 v3.1.10 (3.1.10) \pgflinewidth=\dimen173 ) (C:/Users/PC/AppData/Local/Programs/MiKTeX/tex/generic/pgf/basiclayer/pgfcoretr ansformations.code.tex File: pgfcoretransformations.code.tex 2023-01-15 v3.1.10 (3.1.10) \pgf@pt@x=\dimen174 \pgf@pt@y=\dimen175 \pgf@pt@temp=\dimen176 ) (C:/Users/PC/AppData/Local/Programs/MiKTeX/tex/generic/pgf/basiclayer/pgfcorequ ick.code.tex File: pgfcorequick.code.tex 2023-01-15 v3.1.10 (3.1.10) ) (C:/Users/PC/AppData/Local/Programs/MiKTeX/tex/generic/pgf/basiclayer/pgfcoreob jects.code.tex File: pgfcoreobjects.code.tex 2023-01-15 v3.1.10 (3.1.10) ) (C:/Users/PC/AppData/Local/Programs/MiKTeX/tex/generic/pgf/basiclayer/pgfcorepa thprocessing.code.tex File: pgfcorepathprocessing.code.tex 2023-01-15 v3.1.10 (3.1.10) ) (C:/Users/PC/AppData/Local/Programs/MiKTeX/tex/generic/pgf/basiclayer/pgfcorear rows.code.tex File: pgfcorearrows.code.tex 2023-01-15 v3.1.10 (3.1.10) \pgfarrowsep=\dimen177 ) (C:/Users/PC/AppData/Local/Programs/MiKTeX/tex/generic/pgf/basiclayer/pgfcoresh ade.code.tex File: pgfcoreshade.code.tex 2023-01-15 v3.1.10 (3.1.10) \pgf@max=\dimen178 \pgf@sys@shading@range@num=\count267 \pgf@shadingcount=\count268 ) (C:/Users/PC/AppData/Local/Programs/MiKTeX/tex/generic/pgf/basiclayer/pgfcoreim age.code.tex File: pgfcoreimage.code.tex 2023-01-15 v3.1.10 (3.1.10) ) (C:/Users/PC/AppData/Local/Programs/MiKTeX/tex/generic/pgf/basiclayer/pgfcoreex ternal.code.tex File: pgfcoreexternal.code.tex 2023-01-15 v3.1.10 (3.1.10) \pgfexternal@startupbox=\box56 ) (C:/Users/PC/AppData/Local/Programs/MiKTeX/tex/generic/pgf/basiclayer/pgfcorela yers.code.tex File: pgfcorelayers.code.tex 2023-01-15 v3.1.10 (3.1.10) ) (C:/Users/PC/AppData/Local/Programs/MiKTeX/tex/generic/pgf/basiclayer/pgfcoretr ansparency.code.tex File: pgfcoretransparency.code.tex 2023-01-15 v3.1.10 (3.1.10) ) (C:/Users/PC/AppData/Local/Programs/MiKTeX/tex/generic/pgf/basiclayer/pgfcorepa tterns.code.tex File: pgfcorepatterns.code.tex 2023-01-15 v3.1.10 (3.1.10) ) (C:/Users/PC/AppData/Local/Programs/MiKTeX/tex/generic/pgf/basiclayer/pgfcorerd f.code.tex File: pgfcorerdf.code.tex 2023-01-15 v3.1.10 (3.1.10) ))) (C:/Users/PC/AppData/Local/Programs/MiKTeX/tex/generic/pgf/modules/pgfmodulesha pes.code.tex File: pgfmoduleshapes.code.tex 2023-01-15 v3.1.10 (3.1.10) \pgfnodeparttextbox=\box57 ) (C:/Users/PC/AppData/Local/Programs/MiKTeX/tex/generic/pgf/modules/pgfmoduleplo t.code.tex File: pgfmoduleplot.code.tex 2023-01-15 v3.1.10 (3.1.10) ) (C:/Users/PC/AppData/Local/Programs/MiKTeX/tex/latex/pgf/compatibility/pgfcomp- version-0-65.sty Package: pgfcomp-version-0-65 2023-01-15 v3.1.10 (3.1.10) \pgf@nodesepstart=\dimen179 \pgf@nodesepend=\dimen180 ) (C:/Users/PC/AppData/Local/Programs/MiKTeX/tex/latex/pgf/compatibility/pgfcomp- version-1-18.sty Package: pgfcomp-version-1-18 2023-01-15 v3.1.10 (3.1.10) )) (C:/Users/PC/AppData/Local/Programs/MiKTeX/tex/latex/pgf/utilities/pgffor.sty (C:/Users/PC/AppData/Local/Programs/MiKTeX/tex/latex/pgf/utilities/pgfkeys.sty (C:/Users/PC/AppData/Local/Programs/MiKTeX/tex/generic/pgf/utilities/pgfkeys.co de.tex)) (C:/Users/PC/AppData/Local/Programs/MiKTeX/tex/latex/pgf/math/pgfmath.sty (C:/Users/PC/AppData/Local/Programs/MiKTeX/tex/generic/pgf/math/pgfmath.code.te x)) (C:/Users/PC/AppData/Local/Programs/MiKTeX/tex/generic/pgf/utilities/pgffor.cod e.tex Package: pgffor 2023-01-15 v3.1.10 (3.1.10) \pgffor@iter=\dimen181 \pgffor@skip=\dimen182 \pgffor@stack=\toks30 \pgffor@toks=\toks31 )) (C:/Users/PC/AppData/Local/Programs/MiKTeX/tex/generic/pgf/frontendlayer/tikz/t ikz.code.tex Package: tikz 2023-01-15 v3.1.10 (3.1.10) (C:/Users/PC/AppData/Local/Programs/MiKTeX/tex/generic/pgf/libraries/pgflibrary plothandlers.code.tex File: pgflibraryplothandlers.code.tex 2023-01-15 v3.1.10 (3.1.10) \pgf@plot@mark@count=\count269 \pgfplotmarksize=\dimen183 ) \tikz@lastx=\dimen184 \tikz@lasty=\dimen185 \tikz@lastxsaved=\dimen186 \tikz@lastysaved=\dimen187 \tikz@lastmovetox=\dimen188 \tikz@lastmovetoy=\dimen189 \tikzleveldistance=\dimen190 \tikzsiblingdistance=\dimen191 \tikz@figbox=\box58 \tikz@figbox@bg=\box59 \tikz@tempbox=\box60 \tikz@tempbox@bg=\box61 \tikztreelevel=\count270 \tikznumberofchildren=\count271 \tikznumberofcurrentchild=\count272 \tikz@fig@count=\count273 (C:/Users/PC/AppData/Local/Programs/MiKTeX/tex/generic/pgf/modules/pgfmodulemat rix.code.tex File: pgfmodulematrix.code.tex 2023-01-15 v3.1.10 (3.1.10) \pgfmatrixcurrentrow=\count274 \pgfmatrixcurrentcolumn=\count275 \pgf@matrix@numberofcolumns=\count276 ) \tikz@expandcount=\count277 (C:/Users/PC/AppData/Local/Programs/MiKTeX/tex/generic/pgf/frontendlayer/tikz/l ibraries/tikzlibrarytopaths.code.tex File: tikzlibrarytopaths.code.tex 2023-01-15 v3.1.10 (3.1.10) ))) (C:/Users/PC/AppData/Local/Programs/MiKTeX/tex/generic/pgfplots/pgfplots.code.t ex (C:/Users/PC/AppData/Local/Programs/MiKTeX/tex/generic/pgfplots/pgfplotscore.co de.tex Package pgfplots info on input line 124: Initializing with LUA version Lua 5.3 \pgfplots@luabackend@table=\catcodetable14 \t@pgfplots@toka=\toks32 \t@pgfplots@tokb=\toks33 \t@pgfplots@tokc=\toks34 \pgfplots@tmpa=\dimen192 \c@pgfplots@coordindex=\count278 \c@pgfplots@scanlineindex=\count279 (C:/Users/PC/AppData/Local/Programs/MiKTeX/tex/generic/pgfplots/sys/pgfplotssys generic.code.tex)) (C:/Users/PC/AppData/Local/Programs/MiKTeX/tex/generic/pgfplots/libs/pgfplotsli brary.code.tex) (C:/Users/PC/AppData/Local/Programs/MiKTeX/tex/generic/pgfplots/oldpgfcompatib/ pgfplotsoldpgfsupp_loader.code.tex (C:/Users/PC/AppData/Local/Programs/MiKTeX/tex/generic/pgf/libraries/pgflibrary fpu.code.tex) Package pgfplots: loading complementary utilities for your pgf version... \t@pgf@toka=\toks35 \t@pgf@tokb=\toks36 \t@pgf@tokc=\toks37 (C:/Users/PC/AppData/Local/Programs/MiKTeX/tex/generic/pgfplots/oldpgfcompatib/ pgfplotsoldpgfsupp_pgfutil-common-lists.tex) (C:/Users/PC/AppData/Local/Programs/MiKTeX/tex/generic/pgf/libraries/luamath/pg flibraryluamath.code.tex) Package pgfplots info on input line 290: luamath library shipped with pgf 3.1.1 0 is up-to-date ) (C:/Users/PC/AppData/Local/Programs/MiKTeX/tex/generic/pgfplots/util/pgfplotsut il.code.tex Package pgfplots info on input line 82: Found new luatex: initializing lua comm ands instead of write18 (shell-escape) (C:/Users/PC/AppData/Local/Programs/MiKTeX/tex/generic/pgfplots/liststructure/p gfplotsliststructure.code.tex) (C:/Users/PC/AppData/Local/Programs/MiKTeX/tex/generic/pgfplots/liststructure/p gfplotsliststructureext.code.tex) (C:/Users/PC/AppData/Local/Programs/MiKTeX/tex/generic/pgfplots/liststructure/p gfplotsarray.code.tex \c@pgfplotsarray@tmp=\count280 ) (C:/Users/PC/AppData/Local/Programs/MiKTeX/tex/generic/pgfplots/liststructure/p gfplotsmatrix.code.tex) (C:/Users/PC/AppData/Local/Programs/MiKTeX/tex/generic/pgfplots/numtable/pgfplo tstableshared.code.tex \c@pgfplotstable@counta=\count281 \t@pgfplotstable@a=\toks38 ) (C:/Users/PC/AppData/Local/Programs/MiKTeX/tex/generic/pgfplots/liststructure/p gfplotsdeque.code.tex) (C:/Users/PC/AppData/Local/Programs/MiKTeX/tex/generic/pgfplots/util/pgfplotsbi nary.code.tex (C:/Users/PC/AppData/Local/Programs/MiKTeX/tex/generic/pgfplots/util/pgfplotsbi nary.data.code.tex)) (C:/Users/PC/AppData/Local/Programs/MiKTeX/tex/generic/pgfplots/util/pgfplotsut il.verb.code.tex) (C:/Users/PC/AppData/Local/Programs/MiKTeX/tex/generic/pgfplots/libs/pgflibrary pgfplots.surfshading.code.tex \c@pgfplotslibrarysurf@no=\count282 (C:/Users/PC/AppData/Local/Programs/MiKTeX/tex/generic/pgfplots/sys/pgflibraryp gfplots.surfshading.pgfsys-luatex.def))) (C:/Users/PC/AppData/Local/Programs/MiKTeX/tex/generic/pgfplots/util/pgfplotsco lormap.code.tex (C:/Users/PC/AppData/Local/Programs/MiKTeX/tex/generic/pgfplots/util/pgfplotsco lor.code.tex)) (C:/Users/PC/AppData/Local/Programs/MiKTeX/tex/generic/pgfplots/pgfplotsstacked plots.code.tex) (C:/Users/PC/AppData/Local/Programs/MiKTeX/tex/generic/pgfplots/pgfplotsplothan dlers.code.tex (C:/Users/PC/AppData/Local/Programs/MiKTeX/tex/generic/pgfplots/pgfplotsmeshplo thandler.code.tex (C:/Users/PC/AppData/Local/Programs/MiKTeX/tex/generic/pgfplots/pgfplotsmeshplo timage.code.tex))) (C:/Users/PC/AppData/Local/Programs/MiKTeX/tex/generic/pgfplots/pgfplots.scalin g.code.tex) (C:/Users/PC/AppData/Local/Programs/MiKTeX/tex/generic/pgfplots/pgfplotscoordpr ocessing.code.tex) (C:/Users/PC/AppData/Local/Programs/MiKTeX/tex/generic/pgfplots/pgfplots.errorb ars.code.tex) (C:/Users/PC/AppData/Local/Programs/MiKTeX/tex/generic/pgfplots/pgfplots.marker s.code.tex) (C:/Users/PC/AppData/Local/Programs/MiKTeX/tex/generic/pgfplots/pgfplotsticks.c ode.tex) (C:/Users/PC/AppData/Local/Programs/MiKTeX/tex/generic/pgfplots/pgfplots.paths. code.tex) (C:/Users/PC/AppData/Local/Programs/MiKTeX/tex/generic/pgf/frontendlayer/tikz/l ibraries/tikzlibrarydecorations.code.tex (C:/Users/PC/AppData/Local/Programs/MiKTeX/tex/generic/pgf/modules/pgfmoduledec orations.code.tex \pgfdecoratedcompleteddistance=\dimen193 \pgfdecoratedremainingdistance=\dimen194 \pgfdecoratedinputsegmentcompleteddistance=\dimen195 \pgfdecoratedinputsegmentremainingdistance=\dimen196 \pgf@decorate@distancetomove=\dimen197 \pgf@decorate@repeatstate=\count283 \pgfdecorationsegmentamplitude=\dimen198 \pgfdecorationsegmentlength=\dimen199 ) \tikz@lib@dec@box=\box62 ) (C:/Users/PC/AppData/Local/Programs/MiKTeX/tex/generic/pgf/frontendlayer/tikz/l ibraries/tikzlibrarydecorations.pathmorphing.code.tex (C:/Users/PC/AppData/Local/Programs/MiKTeX/tex/generic/pgf/libraries/decoration s/pgflibrarydecorations.pathmorphing.code.tex)) (C:/Users/PC/AppData/Local/Programs/MiKTeX/tex/generic/pgf/frontendlayer/tikz/l ibraries/tikzlibrarydecorations.pathreplacing.code.tex (C:/Users/PC/AppData/Local/Programs/MiKTeX/tex/generic/pgf/libraries/decoration s/pgflibrarydecorations.pathreplacing.code.tex)) (C:/Users/PC/AppData/Local/Programs/MiKTeX/tex/generic/pgfplots/libs/tikzlibrar ypgfplots.contourlua.code.tex) \pgfplots@numplots=\count284 \pgfplots@xmin@reg=\dimen256 \pgfplots@xmax@reg=\dimen257 \pgfplots@ymin@reg=\dimen258 \pgfplots@ymax@reg=\dimen259 \pgfplots@zmin@reg=\dimen260 \pgfplots@zmax@reg=\dimen261 ) (C:/Users/PC/AppData/Local/Programs/MiKTeX/tex/generic/pgf/frontendlayer/tikz/l ibraries/tikzlibraryplotmarks.code.tex File: tikzlibraryplotmarks.code.tex 2023-01-15 v3.1.10 (3.1.10) (C:/Users/PC/AppData/Local/Programs/MiKTeX/tex/generic/pgf/libraries/pgflibrary plotmarks.code.tex File: pgflibraryplotmarks.code.tex 2023-01-15 v3.1.10 (3.1.10) ))) (C:/Users/PC/AppData/Local/Programs/MiKTeX/tex/generic/pgfplots/libs/tikzlibrar ypgfplots.groupplots.code.tex \pgfplots@group@current@plot=\count285 \pgfplots@group@current@row=\count286 \pgfplots@group@current@column=\count287 (C:/Users/PC/AppData/Local/Programs/MiKTeX/tex/generic/pgf/frontendlayer/tikz/l ibraries/tikzlibrarycalc.code.tex File: tikzlibrarycalc.code.tex 2023-01-15 v3.1.10 (3.1.10) )) \c@gnuplot@id=\count288 ) (C:/Users/PC/AppData/Local/Programs/MiKTeX/tex/latex/l3backend/l3backend-luatex .def File: l3backend-luatex.def 2023-04-19 L3 backend support: PDF output (LuaTeX) \l__color_backend_stack_int=\count289 Inserting `l3color' in `luaotfload.parse_color'. \l__pdf_internal_box=\box63 ) (./test.aux) \openout1 = test.aux LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 3. LaTeX Font Info: ... okay on input line 3. LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 3. LaTeX Font Info: ... okay on input line 3. LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 3. LaTeX Font Info: ... okay on input line 3. LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 3. LaTeX Font Info: ... okay on input line 3. LaTeX Font Info: Checking defaults for TS1/cmr/m/n on input line 3. LaTeX Font Info: Trying to load font information for TS1+cmr on input line 3 . (C:/Users/PC/AppData/Local/Programs/MiKTeX/tex/latex/base/ts1cmr.fd File: ts1cmr.fd 2023/04/13 v2.5m Standard LaTeX font definitions ) LaTeX Font Info: ... okay on input line 3. LaTeX Font Info: Checking defaults for TU/lmr/m/n on input line 3. LaTeX Font Info: ... okay on input line 3. LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 3. LaTeX Font Info: ... okay on input line 3. LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 3. LaTeX Font Info: ... okay on input line 3. (C:/Users/PC/AppData/Local/Programs/MiKTeX/tex/context/base/mkii/supp-pdf.mkii [Loading MPS to PDF converter (version 2006.09.02).] \scratchcounter=\count290 \scratchdimen=\dimen262 \scratchbox=\box64 \nofMPsegments=\count291 \nofMParguments=\count292 \everyMPshowfont=\toks39 \MPscratchCnt=\count293 \MPscratchDim=\dimen263 \MPnumerator=\count294 \makeMPintoPDFobject=\count295 \everyMPtoPDFconversion=\toks40 ) (C:/Users/PC/AppData/Local/Programs/MiKTeX/tex/latex/epstopdf-pkg/epstopdf-base .sty Package: epstopdf-base 2020-01-24 v2.11 Base part for package epstopdf Package epstopdf-base Info: Redefining graphics rule for `.eps' on input line 4 85. (C:/Users/PC/AppData/Local/Programs/MiKTeX/tex/latex/00miktex/epstopdf-sys.cfg File: epstopdf-sys.cfg 2021/03/18 v2.0 Configuration of epstopdf for MiKTeX )) Package pgfplots notification 'compat/show suggested version=true': document ha s been generated with the most recent feature set (\pgfplotsset{compat=1.18}). Package pgfplots info on input line 4: Using 'lua backend=false' for axis: xmod e=log unsupported (yet). \openout3 = test1.gnuplot PGFPlots: reading {test1.table} LaTeX Font Info: External font `cmex10' loaded for size (Font) <8> on input line 4. LaTeX Font Info: External font `cmex10' loaded for size (Font) <6> on input line 4. LaTeX Font Info: External font `cmex10' loaded for size (Font) <5> on input line 4. Package pgfplots info on input line 4: Using 'lua backend=false' for axis: xmod e=log unsupported (yet). \openout3 = test2.gnuplot PGFPlots: reading {test2.table} Package pgfplots Warning: the current plot has no coordinates (or all have been filtered away) on input line 4. [warning /pgfplots/warning/plot without coordinates] Package pgfplots Warning: You have an axis with empty range (in direction y). R eplacing it with a default range and clearing all plots. on input line 4. [warning /pgfplots/warning/empty range cleared axis] [1 {C:/Users/PC/AppData/Local/MiKTeX/fonts/map/pdftex/pdftex.map}] (./test.aux) *********** LaTeX2e <2023-06-01> patch level 1 L3 programming layer <2023-08-29> *********** ) Here is how much of LuaTeX's memory you used: 23799 strings out of 477259 100000,1977958 words of node,token memory allocated 413 words of node memory still in use: 3 hlist, 1 vlist, 1 rule, 2 glue, 3 kern, 1 glyph, 5 attribute, 48 glue_spec, 5 attribute_list, 2 write nodes avail lists: 2:2500,3:1759,4:46,5:23,6:2,7:1074,8:5,9:308,11:2 44440 multiletter control sequences out of 65536+600000 26 fonts using 1477063 bytes 114i,9n,111p,743b,2215s stack positions out of 10000i,1000n,20000p,200000b,200000s <//?/c:/users/pc/appdata/local/programs/miktex/fonts/opentype/public/lm/lmroman1 0-regular.otf><//?/c:/users/pc/appdata/local/programs/miktex/fonts/opentype/publ ic/lm/lmroman8-regular.otf><C:/Users/PC/AppData/Local/Programs/MiKTeX/fonts/type 1/public/amsfonts/cm/cmmi6.pfb><C:/Users/PC/AppData/Local/Programs/MiKTeX/fonts/ type1/public/amsfonts/cm/cmmi8.pfb><C:/Users/PC/AppData/Local/Programs/MiKTeX/fo nts/type1/public/amsfonts/cm/cmr6.pfb><C:/Users/PC/AppData/Local/Programs/MiKTeX

  • Beamer theme Metropolis changes TikZ draw
    by rake on August 11, 2022 at 11:04 pm

    I am having trouble adding a TikZ graphic to my Beamer presentation which uses the theme Metropolis. Here is an example of the issue: \documentclass{beamer} \usepackage[utf8]{inputenc} \usepackage{pgfplots} %\usetheme{metropolis} \pgfplotsset{compat=1.18} \begin{document} \begin{frame} \begin{center} \begin{tikzpicture} \begin{axis}[ view = {135}{20}, xlabel=$x$, ylabel=$y$, zlabel=$z$, xmin=-1, xmax=1, ymin=-1, ymax=1, zmin=0, zmax=1, ] \draw (0, 1, 0) -- (1, 1, 1); \end{axis} \end{tikzpicture} \end{center} \end{frame} \end{document} This code does what I want, but uncommenting the line \usetheme{metropolis} changes the graphic and makes the line shorter. (I don't think it's invisible, just a very small length.) How can I get the desired image while still using the Metropolis theme?

  • Plot differential equation trajectories of a 3-system
    by Zaragosa on April 3, 2022 at 10:19 pm

    I was reading about drawing differential equation trajectories with latex, but I wonder... is there a way to graph this? Consider the system x'=-y+xz^2 y'=x+yz^2 z'=-z(x^2+y^2) The following image I have taken from Perko's book Differential Equations and Dynamical Systems

  • How to plot this parametric curve
    by user248344 on January 18, 2022 at 7:08 am

    I am trying to plot this parametric function: (cos(t)+(t)*sin(t), sin(t)+(t)*cos(t)) (0≤t≤π) which gives the curve below: This is my attempt, but for some reason it doesn't work. \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture} \draw[thick] plot[variable=\t,domain=0:180,smooth,thick] ({cos(\t)-(\t)*sin(\t)},{sin(\t)-(\t)*cos(\t)}); \end{tikzpicture} \end{document} How should I fix these codes?

  • incrementally reveal columns of a matrix
    by healyp on March 3, 2021 at 6:58 pm

    I would like to incrementally or animatedly reveal the elements of a matrix. Ideally I would like to just fade in the elements (à la beamer's overlay) from gray to black on each advance but I would settle for a change of background to the cell (from a light gray to white). What I have is unsatisfactory: \begin{tikzpicture} % \tikzstyle{unseen} = [color=blue!70] \tikzstyle{seen} = [] \matrix (m) [matrix of math nodes, nodes in empty cells, minimum size=7mm, ampersand replacement=\&, every node/.style={font={\large\ttfamily\bfseries},fill=gray!10}] { 1 \& 0 \& 0 \& 0 \& 0 \& 0 \& 0 \\ 0 \& 1 \& 1 \& 1 \& 0 \& 0 \& 0 \\ 0 \& 1 \& 1 \& 0 \& 1 \& 1 \& 0 \\ 0 \& 0 \& 0 \& 1 \& 1 \& 1 \& 0 \\ 0 \& 0 \& 0 \& 0 \& 0 \& 0 \& 1 \\ }; \foreach \f/\r/\c in {1/2/1,2/3/1} { \draw<\f->[seen] (m-\r-\c.north west) rectangle (m-\r-\c.south east); } \end{tikzpicture} Since these are (for now) sparse binary matrices could I make the foreach list insert the 1 entries?

  • Beamer Metropolis Theme clashes with tikz, removes content from tikzpicture
    by axelniemeyer on January 21, 2021 at 3:13 pm

    Please find below a MWE. (Un-)commenting \usetheme{metropolis} removes content from the tikzpicture, and I am truly puzzled as to why that is. I am using XeLaTeX to compile. Thanks! \documentclass[xcolor=dvipsnames,aspectratio=149,10pt]{beamer} \usepackage{pgf,tikz,pgfplots,tikz-cd} \pgfplotsset{compat=1.15} \usepackage{mathrsfs} \usetikzlibrary{arrows,intersections, pgfplots.fillbetween} \usetheme{metropolis} \begin{document} \begin{frame} \begin{tikzpicture}[line cap=round,line join=round,>=triangle 45,x=5.0cm,y=5.0cm,scale=0.45] \begin{axis}[ x=5.0cm,y=5.0cm, xmin=-1.0, xmax=1.0, ymin=-1.0, ymax=1.0, xtick={-0.5,0.0,0.5}, ytick={-0.5,0.0,0.5}, xticklabels={,,}, yticklabels={,,}, line width= 2pt ] \clip(-1.,-1.) rectangle (1.,1.); \draw [line width=1.25pt] (-1,1.)-- (1,-1.); \draw [->,>=stealth,line width=1.pt,dash pattern=on 2pt off 2pt] (-0.4,0.4-0.25)-- (-0.4,0.4+0.25); \draw [->,>=stealth,line width=1.pt,dash pattern=on 2pt off 2pt] (-0.4-0.25,0.4)-- (-0.4+0.25,0.4); \draw [->,>=stealth,line width=1.pt,dash pattern=on 2pt off 2pt] (0.4,-0.4+0.25) -- (0.4,-0.4-0.25); \draw [->,>=stealth,line width=1.pt,dash pattern=on 2pt off 2pt] (0.4+0.25,-0.4) -- (0.4-0.25,-0.4); \end{axis} \end{tikzpicture} \end{frame} \end{document}

  • how to keep footline when we use \setbeamercovered{invisible} in beamer
    by Abdelhak Elfengour on April 15, 2019 at 10:49 am

    when i use \setbeamercovered{invisible} the footline disappear in the whole tikzpicture frames: \documentclass{beamer} \usetheme{warsaw} \usepackage{tikz} \usetikzlibrary{shapes.geometric, arrows} \usetikzlibrary{positioning} \begin{document} \begin{frame}{frame} \setbeamercovered{invisible}%transparent=0} \centering \begin{tikzpicture}[node distance=.5cm, auto] \tikzset{ mynode/.style={rectangle,rounded corners,draw=black, top color=green, bottom color=red!80,very thick, inner sep=1em, minimum size=3em, text centered}, myarrow/.style={->, >=latex', shorten >=.1pt},%, thick mylabel/.style={text width=7em, text centered} } \node [mynode](node) {1};\pause \node [below=of node,mynode](node1){2}; \draw [myarrow] (node.south) -- ++(0,0) -- ++(0,-.2) -| (node1.north);\pause \node [left=of node1,mynode](node2){2}; \draw [myarrow] (node.south) -- ++(0,0) -- ++(0,-.2) -| (node2.north);\pause \node [left=of node2,mynode](node3){4}; \draw[myarrow] (node.south) -- ++(0,0) -- ++(0,-.2) -| (node3.north);\pause \node [right=of node1,mynode](node4){5}; \draw[myarrow] (node.south) -- ++(0,0) -- ++(0,-.2) -| (node4.north);\pause \node [right=of node4,mynode](node5){6}; \draw[myarrow] (node.south) -- ++(0,0) -- ++(0,-.2) -| (node5.north); \end{tikzpicture} \end{frame} \end{document}

  • Matrix with uneven element lengths
    by Hany on April 14, 2019 at 9:09 am

    From the answer to this question When editing the elements of the matrix to become uneven in length, the display of the matrix becomes disturbed. How can this be solved? \documentclass{beamer} \beamertemplatenavigationsymbolsempty \usepackage{verbatim} \usepackage{tikz} \usepackage{pgfplots} \usetikzlibrary{arrows, arrows.meta, positioning, calc, intersections, decorations.pathreplacing, decorations.pathmorphing, decorations.markings, shapes, shapes.misc, shapes.symbols, shapes.geometric, patterns, backgrounds, trees, shadows, fit,matrix} \begin{document} \begin{frame}[t,fragile] \frametitle{matrix} \begin{tikzpicture} \matrix (x) [matrix of nodes, row sep=10pt, column sep=10pt] {% 15.1 & 23.7 & 19.7 & 15.4 & 18.3 & 23.0\\ 17.4 & 18.6 & 12.9 & 20.3 & 13.7 & 21.4\\ 10.3 & 26.1 & 15.718.918.9 & 14.0 & 17.8 & 33.8\\ 23.2 & 12.9 & 29.8 & 18.3 & 14.2 & 20.8\\ 13.5 & 17.1 & 20.7 & 27.1 & 18.918.9 & 16.6\\}; \draw<2->[ultra thick, blue, latex'-] (x-2-1) node [fill, red!40!white, circle, inner sep=8pt, opacity=.4]{} -- (x-4-5) node [fill, blue!40!white, circle, inner sep=8pt, opacity=.4]{}; % Node names: (<name of matrix>-<row>-<column>) \foreach \i in {1,...,6} \draw ($(x-1-\i.north west)+(-5pt,5pt)$) -- ($(x-5-\i.south west)+(-5pt,-5pt)$);%vertical lines \foreach \i in {1,...,5} \draw ($(x-\i-1.south west)+(-5pt,-5pt)$) -- ($(x-\i-6.south east)+(5pt,-5pt)$);%horizontal lines \draw ($(x-1-1.north west)+(-5pt,5pt)$) -| ($(x-5-6.south east)+(5pt,-5pt)$);%upper and right borders \end{tikzpicture} \end{frame} \end{document}

  • Separating matrix elements by lines
    by Hany on April 13, 2019 at 5:24 am

    Using the following code \documentclass{beamer} \beamertemplatenavigationsymbolsempty \usepackage{verbatim} \usepackage{tikz} \usepackage{pgfplots} \usetikzlibrary{arrows, arrows.meta} \usetikzlibrary{matrix} \begin{document} \begin{frame}[t,fragile] \frametitle{} \begin{tikzpicture} \matrix (x) [matrix of nodes,row sep=1em,column sep=1em] {% 15.1 & 23.7 & 19.7 & 15.4 & 18.3 & 23.0\\ 17.4 & 18.6 & 12.9 & 20.3 & 13.7 & 21.4\\ 10.3 & 26.1 & 15.7 & 14.0 & 17.8 & 33.8\\ 23.2 & 12.9 & 29.8 & 18.3 & 14.2 & 20.8\\ 13.5 & 17.1 & 20.7 & 27.1 & 18.9 & 16.6\\}; \draw<2->[ultra thick, blue, latex'-] (x-2-1) -- (x-4-5); % Node names: (<name of matrix>-<row>-<column>) \end{tikzpicture} \end{frame} \end{document} from the answer to this question Can the matrix elements be separated by lines so that it could look like a table with borders between cells

  • tikz node dimensions
    by Viesturs on July 3, 2017 at 8:56 am

    How can I get tikz node dimensions such as height and width? I am interested to use these parameters to precisely calculate placement of objects, e.g. using <a.height> in the following example: \documentclass{article} \thispagestyle{empty} \usepackage{graphicx} \usepackage{tikz} \begin{document} \begin{figure} \begin{tikzpicture} \node(a) { \includegraphics[width=0.8\textwidth]{example-image-a} }; \node(b) at (0, <a.height>*3/4){label}; \end{tikzpicture} \end{figure} \end{document}

  • Drawing functions on spheres
    by Paul-Benjamin on August 31, 2015 at 1:53 pm

    In a paper, I have a class of functions S1→S2 depending on a real parameter t>0, and I would like to represent some of them on the sphere as curves to illustrate their behavior as t goes to 0, but I never used TikZ or anything else, so I have no clue how to do so.

  • Recalling a specific overlay of a tikzpicture in beamer
    by Homotopy on July 7, 2014 at 2:54 pm

    I am making a presentation and I want to recall some pictures in my conclusion. The pictures are done using tikzpicture and are in separate files, with some overlay specifications. However, I want to recall only a specific overlay in the conclusion. File: picture.tex \begin{tikzpicture} \draw at (0,0) circle (1); \uncover<2->{ \draw at (2,0) circle (1);} \uncover<3->{ \draw at (1,1) circle (1);} \end{tikzpicture} Then in my main file, \documentclass{beamer} \usepackage{amsmath} \usepackage{tikz} \begin{document} \frame{\frametitle{The Picture} Some text \begin{center} \input{picture} \end{center} } \frame{\frametitle{Conclusion} \begin{center} \input{picture} \end{center} } I would like to display only the overlay <2> in the conclusion without recalling the whole frame (with \againframe). Is there any way of doing that or should I create another file with only what I want to display on the last frame?

  • 3D solids with Tikz - or an alternative?
    by Clausen on May 2, 2014 at 10:11 pm

    I want to draw 3D shapes in latex. I have tried out different strategies, but nothing has led me to a good solution yet. First what I want to do, then what I have done so far. In prioritized order, these are my constraints: Output (the figure) must be vector graphics I would REALLY like to compile my main document with pdflatex Text should preferably be scalable, i.e., the text stays the same, even if I decide to make the figure bigger in my document. Objects should have a shading that makes them look like they are lighted from somewhere (otherwise I cannot distinguish between a circle and a sphere). I want to use colors defined in my main files preamble - thus dynamic use of main file's preamble content (this is in an individual file). This is probably not possible at the same time, but a trade off is welcome. What works for you when drawing 3D objects? My progress so far I've made friends with Tikz, but when familiarizing myself with its shortcomings (such as 3d solids it seems), I've flirted with PStricks - but this was a messy first date, so unless you guys REALLY advocate her as a part of the solution, I'd rather stay with Tikz (but hey, beggars can't be choosers). I've made a MWE, where everything is included (in my case it is split in many different files (a PhD-thesis becomes quite large, after all). This is the code that generates a sphere using the trick of implementing the "ball", which is not inherent 3D: \documentclass{standalone} \usepackage{pgfplots} \pgfplotsset{compat=1.4} \usepackage{tikz-3dplot} \tdplotsetmaincoords{60}{-30} \tdplotsetrotatedcoords{0}{90}{90}% %\usepackage[rgb]{xcolor} \definecolor{c1}{rgb}{0.2,0.4,0.6} % Blue-ish \definecolor{c2}{rgb}{1.0,0.0,0.6} % Pink-is \definecolor{c3}{rgb}{0.6,0.0,0.0} % Red \begin{document} \begin{tikzpicture} [tdplot_rotated_coords, scale=3, cube/.style={color=c1,thick,draw=gray, fill opacity=0.5,line join=round}, mds/.style={ball color=c2, c2, opacity=.8}, helplines/.style={gray,line cap=round}, length/.style={<->,thick,line cap=round}, axis/.style={->,c3,ultra thick,line cap=round}, textlabel/.style={fill opacity=.7,text opacity=1,fill=white,rounded corners}] \def\d{1} \def\r{\d*.45} \def\af{\d*.5} % Draw backside of the cube \fill[cube] (0,0,\d) -- (0,\d,\d) -- (\d,\d,\d) -- (\d,0,\d) -- cycle; \fill[cube] (0,0,0) -- (0,0,\d) -- (\d,0,\d) -- (\d,0,0) -- cycle; \fill[cube] (\d,0,0) -- (\d,0,\d) -- (\d,\d,\d) -- (\d,\d,0) -- cycle; % Draw helplines \foreach \t in {0,12,...,348} % circle \draw[helplines] ({cos(\t )*\r+\d/2}, \d/2, {sin(\t )*\r+\d/2}) -- ({cos(\t+12)*\r+\d/2}, \d/2, {sin(\t+12)*\r+\d/2}); \draw[helplines] (\d/2,\d/2-\r,\d/2) -- (\d/2,\d/2+\r,\d/2); % vertical line % Cylinder \shade[mds] (\d/2,\d/2,\d/2) circle (\r cm); % <= the little " cm" is needed to "trick" (?) everything into working... % Draw front of cube \fill[cube,fill=none] (0,0,0) -- (0,\d,0) -- (\d,\d,0) -- (\d,0,0) -- cycle; \fill[cube,fill=none] (0,\d,0) -- (0,\d,\d) -- (\d,\d,\d) -- (\d,\d,0) -- cycle; \fill[cube,fill=none] (0,0,0) -- (0,0,\d) -- (0,\d,\d) -- (0,\d,0) -- cycle; % Draw the axis arrows and annotations \draw[axis] (0,0,0) -- (\af,0,0) node[textlabel,anchor=east]{$x$}; \draw[axis] (0,0,0) -- (0,\af,0) node[textlabel,anchor=south]{$y$}; \draw[axis] (0,0,0) -- (0,0,\af) node[textlabel,anchor=west]{$z$}; % Draw radius arrow \draw[mds,length,draw] (\d/2,\d/2,\d/2) -- (\d/2,\d/2,\d/2+\r) node[textlabel,pos=0.5, auto=above]{$r$}; % Draw cube lattice length measures \draw[cube,length,c1] (0,0,\d*5/6) -- (0,\d,\d*5/6) node[textlabel,pos=0.5, auto=above]{$d$}; \draw[cube,length,c1] (\d*5/6,0,0) -- (\d*5/6,\d,0) node[textlabel,pos=0.5, auto=above]{$d$}; \draw[cube,length,c1] (\d*5/6,\d,0) -- (\d*5/6,\d,\d) node[textlabel,pos=0.5, auto=above]{$d$}; % Material parameters label \draw[mds] (\d/2,\d/2+\r/2,\d/2) node[textlabel]{$\varepsilon_c,\mu_c$}; \end{tikzpicture} \end{document} Which produces: I have worked on some code for manually coding a cylinder, but I encounter two main problems: I cannot dynamically change the fill, to create a shading effect. I cannot draw the top/bottom circles (ellipses in the viewpoint perspective) Here's my code: \documentclass{standalone} \usepackage{pgfplots} \pgfplotsset{compat=1.4} \usepackage{tikz-3dplot} \tdplotsetmaincoords{60}{-30} \tdplotsetrotatedcoords{0}{90}{90}% %\usepackage[rgb]{xcolor} \definecolor{c1}{rgb}{0.2,0.4,0.6} % Blue-ish \definecolor{c2}{rgb}{1.0,0.0,0.6} % Pink-is \definecolor{c3}{rgb}{0.6,0.0,0.0} % Red \begin{document} \begin{tikzpicture} [tdplot_rotated_coords, scale=3, cube/.style={color=c1,thick,draw=gray, fill opacity=0.5,line join=round}, mdc/.style={fill=c2, color=c2,draw=none, opacity=.4,line join=round}, helplines/.style={gray,line cap=round}, length/.style={<->,thick,line cap=round}, axis/.style={->,c3,ultra thick,line cap=round}, textlabel/.style={fill opacity=.7,text opacity=1,fill=white,rounded corners}] \def\d{1} \def\r{\d*.45} \def\af{\d*.5} % Draw backside of the cube \fill[cube] (0,0,\d) -- (0,\d,\d) -- (\d,\d,\d) -- (\d,0,\d) -- cycle; \fill[cube] (0,0,0) -- (0,0,\d) -- (\d,0,\d) -- (\d,0,0) -- cycle; \fill[cube] (\d,0,0) -- (\d,0,\d) -- (\d,\d,\d) -- (\d,\d,0) -- cycle; % Draw helplines \foreach \t in {0,12,...,348} % circle \draw[helplines] ({cos(\t )*\r+\d/2}, \d/2, {sin(\t )*\r+\d/2}) -- ({cos(\t+12)*\r+\d/2}, \d/2, {sin(\t+12)*\r+\d/2}); \draw[helplines] (\d/2,\d/2-\r,\d/2) -- (\d/2,\d/2+\r,\d/2); % vertical line % Cylinder \foreach \t in {0,12,...,348} \draw[mdc] ({cos(\t )*\r+\d/2}, 0, {sin(\t )*\r+\d/2}) % side vertice of cylinder -- ({cos(\t+12)*\r+\d/2}, 0, {sin(\t+12)*\r+\d/2}) -- ({cos(\t+12)*\r+\d/2}, \d, {sin(\t+12)*\r+\d/2}) -- ({cos(\t )*\r+\d/2}, \d, {sin(\t )*\r+\d/2}) -- cycle; % Draw front of cube \fill[cube,fill=none] (0,0,0) -- (0,\d,0) -- (\d,\d,0) -- (\d,0,0) -- cycle; \fill[cube,fill=none] (0,\d,0) -- (0,\d,\d) -- (\d,\d,\d) -- (\d,\d,0) -- cycle; \fill[cube,fill=none] (0,0,0) -- (0,0,\d) -- (0,\d,\d) -- (0,\d,0) -- cycle; % Draw the axis arrows and annotations \draw[axis] (0,0,0) -- (\af,0,0) node[textlabel,anchor=east]{$x$}; \draw[axis] (0,0,0) -- (0,\af,0) node[textlabel,anchor=south]{$y$}; \draw[axis] (0,0,0) -- (0,0,\af) node[textlabel,anchor=west]{$z$}; % Draw radius arrow \draw[mdc,length,draw] (\d/2,\d/2,\d/2) -- (\d/2,\d/2,\d/2+\r) node[textlabel,pos=0.5, auto=above]{$r$}; % Draw cube lattice length measures \draw[cube,length,c1] (0,0,\d*5/6) -- (0,\d,\d*5/6) node[textlabel,pos=0.5, auto=above]{$d$}; \draw[cube,length,c1] (\d*5/6,0,0) -- (\d*5/6,\d,0) node[textlabel,pos=0.5, auto=above]{$d$}; \draw[cube,length,c1] (\d*5/6,\d,0) -- (\d*5/6,\d,\d) node[textlabel,pos=0.5, auto=above]{$d$}; % Material parameters label \draw[mdc] (\d/2,\d/2+\r/2,\d/2) node[textlabel]{$\varepsilon_c,\mu_c$}; \end{tikzpicture} \end{document} Which produces: I am definitely open to a whole new approach to my work routine, but it must be advantageous, otherwise I will just drop the shading requirement (which is half the fun though, one looses depth perception without it). Thank you so much for taking the time to read this LOOOONG question.

  • Draw 3D intersecting surfaces
    by Henri Menke on February 4, 2014 at 8:39 pm

    Problem This is a shameless "just do it for me" graphics question, but honestly I have no idea where to start. I'd like to reproduce this figure The image shows the intersection of two surfaces of constant gibbs energy. What I have tried so far Well, I didn't really try something, but here is a template to save you time. \documentclass[tikz]{standalone} \usepackage{tikz-3dplot} \begin{document} \tdplotsetmaincoords{70}{110} \begin{tikzpicture}[tdplot_main_coords] \draw[->] (0,0,0) -- (4,0,0) node[below] {$p$}; \draw[->] (0,0,0) -- (0,4,0) node[below] {$T$}; \draw[->] (0,0,0) -- (0,0,4) node[left] {$\mu$}; \end{tikzpicture} \end{document} Additional stuff I'd like to have a TikZ answer. Usage of tikz-3dplot is not required. Feel free to downvote or vote for closing this question, as it is a shameless "just do it for me" question. I'm bad and I should feel bad! Related: TikZ: two ellipses in different planes