caption stringlengths 0 5.16k | code stringlengths 99 1.67M | image imagewidth (px) 336 336 | uri stringlengths 21 93 | origin stringclasses 9
values | date timestamp[us] |
|---|---|---|---|---|---|
A smooth surface with sharp corners embedded within another smooth surface, accurately matched using Tikz. | \documentclass[tikz, border=1cm]{standalone}
\usetikzlibrary{hobby}
\begin{document}
\begin{tikzpicture}[very thick, use Hobby shortcut]
\begin{scope}
\clip[closed] (1,0) .. (-0.5,2) .. (2,4) .. (3.5,3) .. (2.5,2);
\filldraw[fill=gray, closed] (1,-0.5) .. (0.5,3) .. (1,3.8) .. (2.3,3) .. (1.8,1);
\end{scope}
\draw[clos... | https://tex.stackexchange.com/a/674306 | tex.stackexchange.com | 2023-02-07T10:18:55.287000 | |
Connecting a path to the rounded corner of a TikZ node | \documentclass{article}
\usepackage{tikz}
\usetikzlibrary{tikzmark}
\renewcommand{\thefootnote}{\fnsymbol{footnote}}
\def\rndc{4pt}
\begin{document}
\Large
\tikzmarknode[inner sep=2pt,draw,rounded corners=\rndc]{surname}{Kennedy} was killed by Lee Harvey Oswald the sniper.
\vspace{5pt}
\begin{tikzpicture}[remember ... | https://tex.stackexchange.com/a/672523 | tex.stackexchange.com | 2023-01-22T11:12:12.750000 | |
A vertical list of Chevron Diagrams drawn using TIKZ in LaTeX. paths should not be appended horizontally | \documentclass[tikz]{standalone}
\usetikzlibrary{chains,shapes.symbols}
\begin{document}
\begin{tikzpicture}[
Sig/.style={
shape = signal, signal from = west, signal to = east,
minimum height = 2em, inner xsep = 1em, Sig #1/.try},
Desc/.style={align = left, shape = signal, minimum height = 2em},
/utils/te... | https://tex.stackexchange.com/a/686720 | tex.stackexchange.com | 2023-05-25T09:35:07.613000 | |
A visually appealing resume with 'flat' rectangles that represent different skills and knowledge areas. The rectangles are organized in a clear and organized structure, with potential variations including fixed coordinates or defined by coordinates. A clean, minimalist design that effectively showcases the candidate's ... | \documentclass[a5paper]{article}
\usepackage{tikz}
\tikzset{
skill bar width/.initial=\linewidth,
skill bar items/.initial=5,
skill bar sep/.initial=1mm,
skill bar diagram/.style={baseline=+-.75ex,trim left=+0pt},
skill bar diagram init/.style={
trim right=\pgfkeysvalueof{/tikz/skill bar width},
/util... | https://tex.stackexchange.com/a/672448 | tex.stackexchange.com | 2023-01-21T16:28:06.620000 | |
Align the width of tikz nodes n2 and n3 with the width of n1 using the bounding box created for the first tikz scope. Insert a separator between the two scopes to create a visual separation. | \documentclass[a4paper,10pt]{article}
\usepackage[showframe]{geometry}
\usepackage[x11names]{xcolor}
\usepackage{tikz}
\usetikzlibrary{calc}
\usepackage{calc}
\newlength{\yellowGap}
\setlength{\yellowGap}{3mm}
\newcounter{percentAmount}
\setcounter{percentAmount}{40}% =40% of the width of the first node. Value needs t... | https://tex.stackexchange.com/a/679760 | tex.stackexchange.com | 2023-03-16T22:12:20.820000 | |
Aligning the second line of text in a node to be vertically centered, while also adjusting the size and positioning of text in the first type of node. | \documentclass[tikz, 11pt, border=1cm]{standalone}
\tikzset{
twoline/.style={draw, align=left},
threeline/.style={draw, align=left, text depth=\baselineskip},
}
\begin{document}
\begin{tikzpicture}
\node[threeline] (A) at (0,0) {First line\\Second line};
\node[twoline] (B) at (3,0) {First line\\Second line};
\draw[red]... | https://tex.stackexchange.com/a/668037 | tex.stackexchange.com | 2022-12-09T18:16:21.303000 | |
Drawing a sequence of projections on two lines. The problem involves drawing perpendicular lines from the foot of each projected line to the other line. The lines should be drawn repeatedly indefinitely using a loop. The image shows the first three iterations of the projection sequence. | \documentclass[tikz,border=5mm]{standalone}
\tikzset
{
every node/.style={execute at end node=\strut},
declare function={a=30;R=5;r=4.5;dist(\x,\y)=r*sin(a)*pow(cos(a),2*\x-2+\y);}
}
\begin{document}
\begin{tikzpicture}[line cap=butt,line join=round]
\path (0,0) coordinate (O)
(0:R) coordinate (A)
(a:... | https://tex.stackexchange.com/a/676677 | tex.stackexchange.com | 2023-02-27T08:45:48.420000 | |
Adding arrows and labels to the TikZ diagram to correctly represent the angular relationship between two vectors. | \documentclass{article}
%---------------- show page layout. don't use in a real document!
\usepackage{showframe}
\renewcommand\ShowFrameLinethickness{0.15pt}
\renewcommand*\ShowFrameColor{\color{red}}
%---------------------------------------------------------------%
\usepackage{tikz}
\usetikzlibrary{angles, arrows.met... | https://tex.stackexchange.com/a/683256 | tex.stackexchange.com | 2023-04-18T15:53:13.880000 | |
The correct display of positive and negative post length options in the "Post Length" decoration. The image shows the incorrect display of positive and negative values, where the plus and minus symbols are swapped. The code for this option is also provided. The question is why this behavior is happening and if it can b... | \documentclass[tikz, border=1cm]{standalone}
\usetikzlibrary{decorations.pathmorphing}
\begin{document}
\begin{tikzpicture}[thick, above]
\draw[red] (0,0) --node{5cm} (5,0);
\draw[teal,
decoration={moveto, post=lineto, post length={4cm}}, decorate]
(0,-1) -- node{4cm} (5,-1);
\draw[blue,
decora... | https://tex.stackexchange.com/a/669139 | tex.stackexchange.com | 2022-12-20T15:21:30.623000 | |
Fixed width and height for a rectangular shape in LaTeX TikZ | \documentclass[12pt]{article}
\usepackage[T1]{fontenc}
\usepackage{lipsum}
\usepackage{tikz}
\newcommand{\FixedSizeText}[3]{% width, height
\begin{minipage}[c][#2][c]{#1}%
#3%
\end{minipage}%
}
\begin{document}
\begin{tikzpicture}[]
\tikzset{my rect/.style={
rectangle, draw=red, inner sep=0p... | https://tex.stackexchange.com/a/674762 | tex.stackexchange.com | 2023-02-10T11:54:17.050000 | |
Shifting the voltage label $V_L$ down in the circuit diagram using a simple method. Avoiding the negative number issue in the first solution and preserving the correct sign placement in the second solution. Beginners can manually adjust the sign placement but it requires more work. Find an easier solution in this tutor... | \documentclass[tikz, border=1cm]{standalone}
\usepackage[american, siunitx]{circuitikz}
\begin{document}
\begin{tikzpicture}
\draw (0,0) to [cute inductor, v^={\raisebox{-6ex}[\height][\depth]{$V_L$}}] ++(3,0);
\end{tikzpicture}
\end{document} | https://tex.stackexchange.com/a/668122 | tex.stackexchange.com | 2022-12-10T16:14:29.520000 | |
Adding lines inside a Tikz plot while preserving the y-axis ticks. | \documentclass[border=2mm]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.18}
\begin{document}
\begin{tikzpicture}
\begin{axis}
[
domain=-1:1,samples=500,
xmin=-1.2,xmax=1.2,ymin=0,
ytick={0,0.5,...,4},
]
\addplot[color = red] {4-rad(acos(x))};
\pgfplotsinvokeforeach{1,1.5,...,3.5}
{
\addplot[mark=no... | https://tex.stackexchange.com/a/673965 | tex.stackexchange.com | 2023-02-04T13:13:50.843000 | |
Drawing closed sets in TikZ with a right bracket marker | \documentclass{article}
\usepackage{adjustbox}
\usepackage{amsfonts}
\usepackage{geometry}
\usepackage{pgfplots}
\pgfplotsset{compat=1.18}
\begin{document}
\begin{adjustbox}{width=\textwidth}
\begin{tikzpicture}
\begin{axis}[
axis y line=none, axis lines=left, axis line style={-},
xmin=-1, xmax=11,... | https://tex.stackexchange.com/a/676648 | tex.stackexchange.com | 2023-02-27T02:27:12.130000 | |
Inner split a tikz rectangle into two equal halves with different colors and add text lines. The rectangle should be divided vertically through the center with a thin black line. | \documentclass[margin=3mm]{standalone}
\usepackage{tikz}
\usetikzlibrary{positioning}
\begin{document}
\tikzset{
node distance = 0pt,
BB/.style args={#1/#2/#3}{% Building Box, options
draw, semithick,
font=\small\linespread{0.84}\selectfont, align=center,
minimum width=#1, minimum heigh... | https://tex.stackexchange.com/a/670881 | tex.stackexchange.com | 2023-01-06T19:13:48.057000 | |
Create a Solid of Revolution by rotating a disk around its horizontal axis using code. The resulting 3D plot should display a smooth and symmetrical shape with a vertical ellipse cross-section. | \documentclass{article}
\usepackage{pgfplots}
\usepgfplotslibrary{fillbetween}
\pgfplotsset{compat=newest}
\usepackage{amssymb}
\usetikzlibrary{decorations.pathmorphing}
\usetikzlibrary{plotmarks}
\usetikzlibrary{arrows}
\usetikzlibrary{shapes.misc, positioning}
\usetikzlibrary{arrows,shapes,positioning}
\usetikzlibrar... | https://tex.stackexchange.com/a/680524 | tex.stackexchange.com | 2023-03-23T13:16:24.837000 | |
Differential of Volume Spherical Coordinates | \documentclass{article}
\usepackage{tikz}
\usepackage{tikz-3dplot}
\usepackage{ifthen}
\usepackage[active,tightpage]{preview}
\PreviewEnvironment{tikzpicture}
\setlength\PreviewBorder{1pt}
%
% File name: differential-of-volume-spherical-coordinates.tex
% Description:
% A geometric representation of the differential of... | https://tikz.net/differential-of-volume-spherical-coordinates/ | tikz.net | 2023-04-07T14:03:57 | |
Creating examples of graph limits using Graphons. A software or package that can create figures like these is needed. Please share any recommendations. | \documentclass[tikz,border=5pt]{standalone}
\begin{document}
\begin{tikzpicture}[line width=0.8pt]
\foreach \i in {0,...,6}{
\foreach \j in {\i,...,6}{
\draw (\i,0) -- (\j,5);
}
\draw[fill=white] (\i,5) circle [radius=2mm];
\draw[fill=lightgray] (\i,0) circle [radius=2mm];
}
\foreac... | https://tex.stackexchange.com/a/678093 | tex.stackexchange.com | 2023-03-03T01:05:25.897000 | |
Four'stack' nodes nested inside one big'stack' node in TikZ | \documentclass[11pt]{article}
\usepackage{tikz}
\usetikzlibrary{chains, positioning, matrix}
\begin{document}
\begin{tikzpicture}[
stack/.style={
draw,
matrix of nodes,
nodes in empty cells,
every outer matrix/.append style={inner sep=.5cm},
execute at begin node=\strut,
nodes={draw, minimum w... | https://tex.stackexchange.com/a/667240 | tex.stackexchange.com | 2022-12-02T14:28:16.283000 | |
A clear and comprehensive visual representation of a recursive function's trace, including the stack "unwinding" as activation records are popped off. Ideally, this would be presented in a straight, horizontal manner, as shown in the provided example. The use of Tikz or similar graphic design tools is acceptable, as lo... | \documentclass[tikz]{standalone}
\usepackage{xparse}
\usetikzlibrary{arrows.meta, chains, ext.misc}
% \usepackage{xfp}% for \inteval (alternatively: \pgfinteval)
\makeatletter
\newcommand*{\calcFactorial}[1]{%
\expandafter\calcFactorial@\expandafter{\inteval{#1}}}
\newcommand*{\calcFactorial@}[1]{%
\ifnum#1<2 \expa... | https://tex.stackexchange.com/a/669495 | tex.stackexchange.com | 2022-12-23T22:39:31.770000 | |
Plotting a function in Tikz with terms of sum. The function is represented by the provided Tikz code, and the desired result is shown in the accompanying image. To achieve the desired outcome, it is necessary to convert the provided code into Tikz syntax. Any assistance with this task would be greatly appreciated! | \documentclass[tikz, border=1cm]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.18}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
axis lines=center,
xmin=0, xmax=1,
ymin=0, ymax=1,
xlabel=$x$, ylabel=$f(x)$,
xtick distance=0.25, ytick distance=0.25,
enlargelimits=0.1,
]
\foreach \i in {1,...,10}
\addplo... | https://tex.stackexchange.com/a/667992 | tex.stackexchange.com | 2022-12-09T13:58:56.180000 | |
A clear and accurate graph of y = sqrt(|x|) with TikZ, with no distortion or inconsistencies near the beginning of the axes. Ensure accurate representation of the function and axes scales. Compare with a photo from GeoGebra to check for discrepancies. | \documentclass[x11names,svgnames,11pt]{article}
\usepackage{tikz}
\usepackage{pgfplots}
\begin{document}
\centering
\begin{tikzpicture}
\begin{axis} [ width=12cm,
xlabel = $x$, ylabel = $y$,
] ... | https://tex.stackexchange.com/a/673693 | tex.stackexchange.com | 2023-02-02T00:59:05.443000 | |
Assigning a coordinate variable with a value of (my node.east) using the \tikzmath command inside a TikZ picture. The example demonstrates how to use the coordinate keyword to specify a point on the current path from a given node, allowing for easy referencing and manipulation of coordinates in TikZ. | \documentclass[tikz]{standalone}
\usetikzlibrary{math}
\begin{document}
\begin{tikzpicture}
\node (my node) at (3,1) {Foo};
\tikzmath{
coordinate \c;
\c = (my node.east);
}
\draw[<-] (\c) -- ++ (35:1) node[right, align=left, at end] {
(\c) is \\(\cx, \cy) is \\(my node.east)};
\end{tikzpicture}
\end{document} | https://tex.stackexchange.com/a/668875 | tex.stackexchange.com | 2022-12-17T23:08:18.113000 | |
Replicating the simple graph in a textbook with labels, points, arrows, and lines in LaTeX | \documentclass[tikz,border=1.618mm]{standalone}
\tikzset
{
every node/.style={black},
declare function=
{
f(\x)=1/3*(\x-0.5)^3-2*(\x-0.5)^2+3*(\x-0.5)+1.5; % function
df(\x)=(\x-0.5)^2-4*(\x-0.5)+3; % derivative
t(\x,\xo)=df(\xo)*(\x-\xo)+f(\xo); % tangent at... | https://tex.stackexchange.com/a/684327 | tex.stackexchange.com | 2023-04-30T09:37:28.390000 | |
Arrange the circles in descending order with the last circle positioned behind the first one. | \documentclass[tikz, border=1cm]{standalone}
\begin{document}
\begin{tikzpicture}
\def\n{20}
\def\a{360/\n}
\foreach \i in {1,...,\n}
\draw[fill=yellow] (\i*\a:2) circle[radius=1];
\clip (0,-3) rectangle (3,3);
\foreach \i in {1,...,\n}
\draw[fill=yellow] ({int(\i-\n/2)*\a}:2) circle[radius=1];
\end{tikzpicture}
... | https://tex.stackexchange.com/a/670306 | tex.stackexchange.com | 2023-01-01T12:54:58.450000 | |
Maximum Power Point Tracking (MPPT) for Single Photovoltaic Module. MPPT- a single PV connected to a generic converter and load. | \documentclass[border=3pt]{standalone}
\usepackage[american,cuteinductors,smartlabels]{circuitikz} % A package to draw electrical circuits with TikZ
%-- the dimensions of the elements can be changed here
\ctikzset{bipoles/thickness=0.8}
\ctikzset{bipoles/length=1cm}
\begin{document}
\begin{circuitikz}
%####-------... | https://tikz.net/mppt/ | tikz.net | 2023-04-23T17:35:22 | |
Modify this Feynman diagram using TikZ to have a white fill for the rectangle, horizontal red lines, and no right edge. Note the details of the original code and image provided to ensure accuracy. | \documentclass[border=3mm, varwidth=141mm]{standalone}
\usepackage{tikz-feynman}
\usetikzlibrary{positioning}
\begin{document}
\begin{tikzpicture}[baseline]
\begin{feynman}
\coordinate (m);
\vertex (a) at ( 225:2cm) {};% <<< changed y-coordinate
\vertex (b) at ( -45:2cm) {};%<<< switched to polar: -60 de... | https://tex.stackexchange.com/a/683156 | tex.stackexchange.com | 2023-04-17T13:40:35.423000 | |
A smooth surface with an embedded surface featuring sharp corners, accurately fitted within the outer surface. Created using Tikz with the hobby package. The original code is provided, showcasing the control points. | \documentclass[tikz,border=2mm]{standalone}
\begin{document}
\begin{tikzpicture}[line cap=round]
%\draw[green] (0,-3) grid[step=0.5] (5,3);
\coordinate (O) at (0,0);
\coordinate (P) at (1.2,2.1);
\coordinate (Q) at (2.1,2.5);
\coordinate (R) at (4.7,1.3);
\coordinate (S) at (3.7,0);
\coordinate (T) at (3.3,-1.5);
\coo... | https://tex.stackexchange.com/a/674305 | tex.stackexchange.com | 2023-02-07T09:44:29.927000 | |
Correct display of y-axis in TikZ plot with trig format = rad option | \documentclass[border=.5cm]{standalone}
\usepackage{pgfplots}
\usepackage{tikz}
\pgfplotsset{compat=1.9}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
axis lines=middle,
trig format = rad,
view={90}{90},
xmax=10, xmin=-10, ymax=5, ymin=-5,
zmi... | https://tex.stackexchange.com/a/680903 | tex.stackexchange.com | 2023-03-27T00:53:07.197000 | |
Combining an arc with a rectangle using Tikz's draw and arc commands | \documentclass[12pt, tikz]{standalone}
\usetikzlibrary{arrows.meta, calc, intersections, quotes}
\tikzset{
dim line distance/.initial=.2cm,
dim line style/.style={<->},
dim line delim/.style={-, shorten <=2\pgflinewidth, shorten >=-7\pgflinewidth},
dim line text/.style={midway, auto=left, font=\footnotesize},
... | https://tex.stackexchange.com/a/674915 | tex.stackexchange.com | 2023-02-11T15:46:04.920000 | |
Placing two different TikZ plots side by side. Plot 1 (right) is generated by @hpekristiansen's code, while Plot 2 (left) is a separate TikZ plot. By placing the two plots side by side, the viewer can easily compare and analyze the similarities and differences between the two graphs. The caption could read: 'Comparing ... | \documentclass{article}
\usepackage[margin=25mm]{geometry}
%---------------- show page layout. don't use in a real document!
\usepackage{showframe}
\renewcommand\ShowFrameLinethickness{0.15pt}
\renewcommand*\ShowFrameColor{\color{red}}
%---------------------------------------------------------------%
\usepackage{lipsum... | https://tex.stackexchange.com/a/672508 | tex.stackexchange.com | 2023-01-22T08:27:17.137000 | |
Add horizontal lines to a stacked plot while removing the "total" column and displaying the values in a single column. | \documentclass[margin=3mm]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.18}
\begin{document}
\begin{tikzpicture}[
lbl/.style = {fill=white, inner sep=2pt,
fill opacity=0.5, text opacity=1,
above}
]
\begin{axis}[
ybar stacked,
x=24pt,
... | https://tex.stackexchange.com/a/673549 | tex.stackexchange.com | 2023-01-31T18:29:36.033000 | |
The 'yellow' color should be replaced with a different color to prevent the undefined control sequence warning when using the optional parameter of \fill. In this case, the issue occurs because 'yellow' is the result of an \ifthenelse command and is not a valid color name. Replacing 'yellow' with a defined color such a... | \documentclass{article}
\usepackage{ifthen}
\usepackage{tikz}
\pgfkeys{/utils/ifthenelse/.code n args={3}{%
\ifthenelse{#1}{\pgfkeysalso{#2}}{\pgfkeysalso{#3}}}}
\begin{document}
\begin{tikzpicture}[
col/.style={
/utils/ifthenelse={\equal{#1}{Y}}{yellow}{red}}]
\fill[col = Y](0,0)rectangle(1,1);
\fill[col = R](... | https://tex.stackexchange.com/a/674240 | tex.stackexchange.com | 2023-02-06T16:43:02.640000 | |
A stunningly beautiful unicorn illustrated in TikZ, showcasing the advanced artistic capabilities of GPT-4. | \documentclass[tikz,border=2mm]{standalone}
\usetikzlibrary{3d,perspective}
\colorlet{brownxy}{brown!40!red}
\colorlet{brownxz}{brown!65!red}
\colorlet{brownyz}{brown!90!red}
\tikzset
{%
declare function={
rh=4*(1-cos(30)); % runner height
},
xy/.style={canvas is xy plane at z=#1},
xz/.style={canva... | https://tex.stackexchange.com/a/681514 | tex.stackexchange.com | 2023-04-01T11:52:11.487000 | |
Creating a fancy style of chapter with a small table of contents inside the chapter environment. The chapter number should be in the white circle centered and horizontally level with the chapter title. The pink strip should extend vertically downwards until the end of the table of contents, and the word 'Contents' shou... | \documentclass{report}
\usepackage[explicit]{titlesec}
\usepackage{titletoc}
\usepackage{tikz}
\colorlet{chaptercolorA}{violet}
\colorlet{chaptercolorB}{pink!70}
\newlength\chapterrulewd\setlength\chapterrulewd{1cm}
\newlength\chapterruledist\setlength\chapterruledist{0.25cm}
\newlength\chapterruleover\setlength\chap... | https://tex.stackexchange.com/a/678291 | tex.stackexchange.com | 2023-03-04T23:04:21.043000 | |
A horizontal red arrow connecting two scopes in the same line. The current oblique arrow is due to the expansion of the node 'n' in the vertical dimension compared to node'm' | \documentclass[margin=5pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{positioning}
\begin{document}
\begin{tikzpicture}
\begin{scope}[local bounding box=scope1]
\node [anchor=base east] (m) {m};
\filldraw (0,0) circle (1pt);
\draw (0,0) rectangle (3,2);
\e... | https://tex.stackexchange.com/a/683046 | tex.stackexchange.com | 2023-04-16T07:36:09.070000 | |
Using a two-dimensional variable in Tikz to label each cell of a table with values, allowing for easy access and customization of individual elements. | \documentclass[tikz]{standalone}
\usetikzlibrary{matrix}
\NewDocumentCommand{\fforeach}{D(){m} O{} m O{$\col$} m}{
\foreach[count=\iRow] \row in {#5}
\foreach[count=\iCol] \col in \row{
% fragile check for empty \col
\expandafter\unless\expandafter\ifx\expandafter\relax\col\relax
\node[anchor={#3}, at={... | https://tex.stackexchange.com/a/683649 | tex.stackexchange.com | 2023-04-22T22:43:53.050000 | |
Create a flowchart-graph example in tikz with subgraphs dynamically adding new nodes. | \documentclass[tikz]{standalone}
\usetikzlibrary{graphdrawing, graphs, quotes, backgrounds}
\usetikzlibrary{ext.node-families}
\usegdlibrary{layered}
\pgfqkeys{/utils/count list}{.style 2 args={/utils/exec=\def#2{0},
/utils/temp/.code=\edef#2{\pgfinteval{#2+1}},/utils/temp/.list={#1}}}
\tikzset{
flowchart/nodes/.st... | https://tex.stackexchange.com/a/675259 | tex.stackexchange.com | 2023-02-14T21:15:00.807000 | |
Adjusting column spacing in a TikZ matrix using a custom'spacing list'. | \documentclass[tikz, border=1cm]{standalone}
\begin{document}
\begin{tikzpicture}
\matrix [draw, column sep={1cm, 5pt}, row sep={0.5cm}, nodes=draw]
{
\node (a) {123}; & \node {1}; & \node {1}; \\
\node (c) {12}; & \node {12}; & \node {1}; \\
\node {1}; & \node (b) {123}; & \node {1};... | https://tex.stackexchange.com/a/671793 | tex.stackexchange.com | 2023-01-16T07:58:54.743000 | |
Efficient labeling of axes in PGF Plots with fewer commas in xticklabels and improved axis label placement using alternative commands. | \documentclass{article}
\usepackage{pgfplots}
\pgfplotsset{compat=1.18}
\usetikzlibrary{arrows.meta}
\begin{document}
\begin{tikzpicture}
\begin{axis}[thick,
axis lines=middle,
axis line style={-Triangle},
scale only axis,
%
grid=both,
minor x tick num=1,
%
xlabel={sec},
ylabel={feet per s... | https://tex.stackexchange.com/a/673581 | tex.stackexchange.com | 2023-02-01T01:52:20.633000 | |
A graph where the x-axis stretches proportionally without distorting the visual representation of the data. However, the graph displayed here appears compressed and does not accurately represent the values plotted. | \documentclass{article}
\usepackage{tikz,pgf,pgfplots}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
width=40em, % (xmax - xmin) / scalingFactorBetweenXAndYAxis
height=22.5em, % ymax - ymin
xmin=0,
xmax=80,
ymin=7.5,
ymax=30,
xtick={0,10,...,7... | https://tex.stackexchange.com/a/675938 | tex.stackexchange.com | 2023-02-20T20:01:23.490000 | |
Axes labels placed at the correct positions in PGFPlots. The code below was intended to place the axis labels to the right and above the axis, respectively. However, they are appearing above the axis. Why is the placement option not working as expected? | \documentclass[tikz, border=1cm]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.18}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
width=0.9*\textwidth,
height=0.9*\textwidth,
axis lines=middle,
axis line style=thick,
xmin=-4, xmax=4,
ymin=-4, ymax=4,
xlabel=$x$,
x label style={at={(current axis.right of o... | https://tex.stackexchange.com/a/667377 | tex.stackexchange.com | 2022-12-04T05:28:15.753000 | |
Centering tikzpicture in tabularray. The second column with the TikZ picture should be centered and the words in the fourth column should be centered as well. | \documentclass{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[french]{babel}
\usepackage{tabularray}
\usepackage{tikz}
\AtBeginDocument{\sbox0{$x$}}% to be sure the math fonts are computed
\tikzset{baseshift/.style={yshift=-\the\dimexpr\fontdimen22\textfont2}}
\begin{document}
\begin{... | https://tex.stackexchange.com/a/670036 | tex.stackexchange.com | 2022-12-29T13:05:18.307000 | |
align text vertically and center between figures in TikZ | \documentclass{article}
\usepackage{tikz}
\begin{document}
\begin{figure}[t!]\centering
\def\imagewidth{0.12\textwidth}
\def\sep{0.5mm}
\begin{tikzpicture}
\node (image1) at (0,0) {\includegraphics[width=\imagewidth]{example-image-a}};
\node[anchor=west] (image2) at ([xshift=\sep]... | https://tex.stackexchange.com/a/685853 | tex.stackexchange.com | 2023-05-16T10:32:21.333000 | |
Drawing circle connection bars between nodes in different tikzpicture environments | \documentclass{standalone}
\usepackage{tikz}
\usetikzlibrary{mindmap,quotes}
\begin{document}
\begin{tikzpicture}
\node (energy1)[label=right:motorcycle.1] at (30:10cm){};
\node (energy2)[label=left:motorcycle.2] at (90:10cm){};
\draw[circle connection bar]
(energy1)%
edge["USA" {orange ,sloped,above=.5cm,align=center... | https://tex.stackexchange.com/a/671266 | tex.stackexchange.com | 2023-01-10T16:57:11.787000 | |
A completed octet diagram using pgfplot in LaTeX, showcasing the valence electrons of a nitrogen atom in a double-bonded molecule, with unshared electrons represented as separate lines and labeled accordingly. | \documentclass[10pt,border=3mm,tikz]{standalone}
% \documentclass[a4paper, 10pt]{report}
%\usepackage{times}%times new roman
% \usepackage{bookmark}
% \usepackage[margin=0.5in]{geometry}
% \usepackage{multicol}
% \usepackage{pdflscape}
% \usepackage{blindtext}
% \usepackage{amsmath}
% \usepackage{amssymb} %% for drwaa... | https://tex.stackexchange.com/a/687580 | tex.stackexchange.com | 2023-06-03T17:06:26.367000 | |
Draw the image using TikZ with nodes B1... B4 defined based on nodes A1... A4. | \documentclass[tikz]{standalone}
\usetikzlibrary{angles, ext.transformations.mirror, quotes}
\tikzset{
_pos xmirror/.style args={#1 = #2}{
xmir #1/.style={#2={##1}}, xmir #2/.style={#1={##1}}},
_pos xmirror/.list={
right = left, above right = above left, below left = below right,
above ... | https://tex.stackexchange.com/a/683902 | tex.stackexchange.com | 2023-04-25T15:23:34.413000 | |
A more elegant and visually appealing Feynman diagram generated by Tikz. | \documentclass[border=2pt]{standalone}
\usepackage{tikz-feynman}
\begin{document}
\begin{tikzpicture}
\begin{feynman}
\diagram [inline=(b), horizontal=a to b, layered layout] {
a -- [blue, gluon] b [dot] b -- [blue, gluon] c};
\draw[
blue,
decorate,
decoration={
coil,
segment length=2.5pt,
a... | https://tex.stackexchange.com/a/670875 | tex.stackexchange.com | 2023-01-06T18:09:57.167000 | |
Combining fading and fill opacity in TikZ by manipulating the transparency value of the overall shape containing fading=... for a transparent fill with decreasing opacity towards the edges. | \documentclass[tikz, border=1cm]{standalone}
\usetikzlibrary{fadings}
\begin{document}
\begin{tikzpicture}
\node at (2, 1.5){With \verb|path fading=south| and \verb|fill opacity|};
\filldraw[fill=blue, path fading=south, fill opacity=0.01] (0,0) circle[radius=1cm];
\filldraw[fill=blue, path fading=south, fill opacity=0... | https://tex.stackexchange.com/a/680183 | tex.stackexchange.com | 2023-03-20T19:25:05.633000 | |
Arrow should begin at the center of the colored box, not in the middle of the cross-referencing node label. Fixing the tikz arrow centering on cross-referencing node labels. | \documentclass{article}
\usepackage{tikz}
\usetikzlibrary{fit, backgrounds}
\begin{document}
\[
x(t) = \int_0^t
\tikz[remember picture, baseline]{
\node[anchor=base, inner sep=0pt] (ell) {$\ell$};
\node[anchor=base west, inner sep=0pt] (z) at (ell.base east) {$(z)$};
\begin{scope}[on b... | https://tex.stackexchange.com/a/684154 | tex.stackexchange.com | 2023-04-28T06:59:23.887000 | |
TikZ spy animation showing up on the second slide of a Beamer presentation | \documentclass[tikz]{beamer}
\usepackage{tikz}
\usetikzlibrary{spy}
% following https://tex.stackexchange.com/questions/88251/tikz-spy-and-beamer-uncover and https://tex.stackexchange.com/questions/438218/beamer-uncover-magnification-using-tikz-spy-library:
\tikzset{
connect on/.style={alt={#1{connect spies}{... | https://tex.stackexchange.com/a/682115 | tex.stackexchange.com | 2023-04-07T12:06:04.883000 | |
A parametric plot of the Trisectrix of Maclaurin using Tikz, which should accurately display the curve as seen in Desmos. However, the code provided may be causing issues in creating the plot as Tikz fails to draw it properly. | \documentclass{article}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}[scale=1]
\draw[->] (-.5,0)--(3,0);
\draw[->] (0,-2)--(0,2);
\draw[thick,color=red!80] (1,0) circle (1);
\draw[thick,color=red!80] (.5,-2)--(.5,2) node[right] {$v$};
\draw[
thick,
variable=\x,
samples=100,
domain=-1:3,
color=red!8... | https://tex.stackexchange.com/a/667640 | tex.stackexchange.com | 2022-12-06T14:55:33.413000 | |
Histogram of lot of data using tikzpicture. | \documentclass{standalone}
\usepackage{pgfplots}
\begin{document}
\begin{tikzpicture}
\begin{loglogaxis}[%
xmin=1300,
xmax=305000,
ymin=1,
ymax=1e6,
xlabel=Sampling Rate (Hz),
ylabel=Count
]
\addplot[ycomb, color=blue, forget plot] table[row sep=crcr] {%
1361 8\\
1377 8\\
1... | https://tex.stackexchange.com/a/682812 | tex.stackexchange.com | 2023-04-13T21:45:03.973000 | |
Circular Project Planning. Often, things are planned in a circular fashion. This can be used to show a planned cycle with milestones. The duration of the individual phases can vary. The above example is measured in 12 (months). | \documentclass{standalone} % (c) Jan Suchanek 2023 cc by
\usepackage{tikz}
\usepackage{xcolor}
\usetikzlibrary{decorations.text}
\begin{document}
\begin{tikzpicture} % rotate to suit your needs
[rotate=160,every node/.style={font=\sffamily}]
\def\myraise{1.5} % ring thickness
\def\myradius{3.6} % inner radius
\def\... | https://tikz.net/circular-project-planning/ | tikz.net | 2023-03-15T10:29:38 | |
A smooth and sinusoidal parametric curve that follows the given formula. However, the current plot appears rigid and far from the desired trajectory. The issue could be related to the input of the parametric equation. | \documentclass[tikz, border=1cm]{standalone}
\begin{document}
\begin{tikzpicture}
\draw[gray, very thin] (-3.9,-3.9) grid (3.9,3.9);
\draw[->] (-4,0) -- (4,0) node[right] {$x(t)$};
\draw[->] (0,-4) -- (0,4) node[above] {$y(t)$};
\foreach \pos in {-3,-2,-1,2,3}
\draw[shift={(\pos,0)}] (0pt,2pt) -- (0pt,-2pt) node[below]... | https://tex.stackexchange.com/a/667690 | tex.stackexchange.com | 2022-12-07T02:57:13.620000 | |
Uncovering columns of matrix in TikZ with small text and sign above the transition between columns. | \documentclass[xcolor=table,10pt,aspectratio=169]{beamer}
\usetheme{metropolis}
\usepackage[T1]{fontenc}
\usepackage[american]{babel}
\usepackage{amsmath,amssymb,amsthm}
\usepackage[beamer]{hf-tikz}
\usepackage{tikz-cd}
\usetikzlibrary{
matrix,
positioning,
ext.node-families,
overlay-beamer-styles
}
\De... | https://tex.stackexchange.com/a/668105 | tex.stackexchange.com | 2022-12-10T12:08:28.227000 | |
A 3D right circular cone and its corresponding 2D cross-section. This image shows the desired result. The provided MWE is a starting point for creating the 3D object. | \documentclass[border=10pt]{standalone}
\usepackage{siunitx} % SI units
\usepackage{pgfplots}
\pgfplotsset{compat=newest}
\usetikzlibrary{fillbetween, backgrounds}
\begin{document}
\begin{tikzpicture} % <-- inverts the figure
\def\a{2} % major
\def\b{.5} % minor
\def\h{5} % height of the c... | https://tex.stackexchange.com/a/672197 | tex.stackexchange.com | 2023-01-19T11:42:21.287000 | |
Filling different intersection areas in TikZ using patterns with precise control to achieve the top drawing, as shown in the image on the left. The current code only produces the bottom drawing, as shown on the right. Areas between curveA and other paths need to be filled accurately. | \documentclass[border=10pt]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=newest}
\usetikzlibrary{backgrounds, fillbetween}
\begin{document}
%begin curves definitions
\tikzset{
pics/curvef/.style n args={3}{code={
\coordinate (-begin) at #1;
\coordinate (-begin right) at ([shift={(1.75,0)}... | https://tex.stackexchange.com/a/687363 | tex.stackexchange.com | 2023-06-01T09:52:45.123000 | |
Writing the chapter number in Roman numerals using Tikz. The aim is to achieve a similar appearance to the provided example image, which utilizes doubled rules and Tikz nodes to create the Roman numerals. The current code provides a basic foundation, but requires adjustments to properly display the chapter number in Ro... | \documentclass[12pt,a4paper]{report}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{graphicx}
\usepackage[top=3cm,bottom=3cm,left=3cm,right=3cm,headheight=3cm,footskip=1cm,marginparwidth=2cm]{geometry}
\usepackage{fancyhdr}
\usepackage{lipsum}
\usepackage{mathpazo}
\usepackage{domitian}
\usepackage[T1]{fontenc}
... | https://tex.stackexchange.com/a/680071 | tex.stackexchange.com | 2023-03-20T00:08:22.597000 | |
A 3D flow diagram with stacked blocks and properly formatted arrows using TikZ and the fit library. | \documentclass[tikz]{standalone}
\usepackage[english]{babel}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\definecolor{darkblue}{HTML}{1f4e79}
\definecolor{lightblue}{HTML}{00b0f0}
\definecolor{salmon}{HTML}{ff9c6b}
\definecolor{buff}{RGB}{218, 160, 109}
\usetikzlibrary{backgrounds, chains, fit, positioning, arrows.me... | https://tex.stackexchange.com/a/682027 | tex.stackexchange.com | 2023-04-06T17:43:31.850000 | |
Modify the TikZ code to correctly apply an xy-shift and utilize the 'let' command. Remove the unused variables 'p1' and 'x1' and use only 80% of the value of 'x1' for the radius. | \documentclass{article}
\usepackage{tikz}
\usepackage{nicematrix}
\usetikzlibrary{calc}
\begin{document}
$det = \begin{vNiceArray}{c!{\hspace{5mm}}c}[first-row]
u & v \\
x & x' \\[5mm]
y & y'
\CodeAfter
\begin{tikzpicture}
\draw[->, red, looseness=2](1-1.east) to[out=0, in=0]($(2-1)!.5!(2-2)$)node[a... | https://tex.stackexchange.com/a/675237 | tex.stackexchange.com | 2023-02-14T16:23:39.237000 | |
TikZ rectangle placed in corner of slide with infoline in Madrid theme | \documentclass{beamer}
\usetheme{Madrid}
\usepackage{tikz}
\usetikzlibrary{calc}
\begin{document}
\begin{frame}
\tiny
\begin{tikzpicture}[remember picture,overlay]
\draw[red] ($(current page.south east)+(-2cm, 2cm)+(0,3.25ex)$) rectangle ($(current page.south east)+(0, 3.25ex)$);
\end{tikzpicture}%
\end{fr... | https://tex.stackexchange.com/a/681190 | tex.stackexchange.com | 2023-03-29T14:42:19.547000 | |
Four rectangular boxes with arrows in a rotational view using beamer. | \documentclass{beamer}
\usepackage{tikz}
\usetikzlibrary{positioning}
\begin{document}
\begin{frame}
\centering
\scalebox{0.6}[0.6]{
\begin{tikzpicture}[>=stealth, place/.style={shape=rectangle,draw,rounded corners,fill=blue!25,},trans/.style={align=center},auto,scale=7]
... | https://tex.stackexchange.com/a/681338 | tex.stackexchange.com | 2023-03-30T18:57:56.857000 | |
A visually accurate depiction of Galilean spacetime, with clear and distinct planes stacked over each other and paths (arrowed or not) that convincingly penetrate through the planes. The image should not include the dashed curves around the planes, as seen in Penrose's original image. | \documentclass[tikz,border=3mm]{standalone}
\usepackage{tikz-3dplot}
\usepackage{tikzlings}
\makeatletter
\tikzset{recycle bounding box/.style={%
execute at end picture={%
\immediate\write\@mainaux{\xdef\string\tikz@bbox@figbb@#1{%
(\the\pgf@picminx,\the\pgf@picminy) rectangle (\the\pgf@picmaxx,\the\pgf@picmaxy)}\relax... | https://tex.stackexchange.com/a/543233 | tex.stackexchange.com | 2020-05-09T16:48:28.580000 | |
Uncovering columns of a matrix in TikZ, with a small text and a sign below each column separation. The red lines indicate the desired placement of the text and sign. | \documentclass[xcolor=table,10pt,aspectratio=169]{beamer}
\usetheme{metropolis}
\usepackage[T1]{fontenc}
\usepackage[american]{babel}
\usepackage[beamer]{hf-tikz}
\usetikzlibrary{overlay-beamer-styles}
\usetikzlibrary{
matrix,
positioning,
ext.node-families,
}
\DeclareMathOperator{\Enc} {Enc} % instead o... | https://tex.stackexchange.com/a/668104 | tex.stackexchange.com | 2022-12-10T11:55:09.713000 | |
Drawing an arrow stopping at the edge of a node in a TikZ picture. | \documentclass[dvipsnames,aspectratio=169,10pt,fleqn]{beamer}
\usetheme{Madrid}
\usefonttheme{serif}
\usecolortheme[named=Mahogany]{structure}
\usepackage{tikz}
\usetikzlibrary{arrows,shapes,mindmap,trees,backgrounds}
\tikzset{every picture/.append style={remember picture}}
\tikzset{na/.style={baseline=-.5ex}}
\tik... | https://tex.stackexchange.com/a/674054 | tex.stackexchange.com | 2023-02-05T11:54:34.740000 | |
Creating globally named, page-immutable TikZ nodes, similar to the current page special node | \documentclass{beamer}
\usepackage{tikz}
\begin{document}
\begin{frame}{First Frame}
\tikz
[remember picture, overlay]
\node
[
inner sep = 0pt,
anchor = center,
minimum width = 2cm,
minimum height = 2cm
]
(current text area)
at (current page.center)
... | https://tex.stackexchange.com/a/669585 | tex.stackexchange.com | 2022-12-25T07:03:43.600000 | |
center the pi symbol in the spiral of digits of pi and change the color of the digits under it using TikZ. | \documentclass[tikz, border=5pt, convert]{standalone}
\usetikzlibrary{decorations.text}
\begin{document}
\begin{tikzpicture}[
decoration={
reverse path,
text effects along path,
text={%
3{,}%
1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679%
... | https://tex.stackexchange.com/a/668144 | tex.stackexchange.com | 2022-12-10T21:02:31.883000 | |
Overlaying text and shapes on a pgfplots graph in a beamer presentation. Unfortunately, the given code does not work. Ideas for a solution are welcome. | \documentclass{beamer}
\usepackage{tikz}
\usepackage{pgfplots}
\usetikzlibrary{overlay-beamer-styles}
\begin{document}
\begin{frame}
\begin{tikzpicture}
\begin{axis}
\addplot {x};
\addplot+[visible on=<2->] {x^2};
\end{axis}
\end{tikzpicture}
\end{frame}
\end{document} | https://tex.stackexchange.com/a/667881 | tex.stackexchange.com | 2022-12-08T18:42:18.537000 | |
An animated graph illustrating the concept of 'La corde' for Calculus 1 students. The graph varies the parameter \varepsilon to demonstrate the relationship between the curve and the rectangle inscribed within it. The 'animate' package can be used to create the animation. An example code is provided, but an error occur... | \documentclass[tikz, border=12cm]{standalone}
\begin{document}
\foreach \i in {0.05,0.1,0.15,0.2,0.25,0.3,0.35,0.375,0.4}{
\begin{tikzpicture}[>=stealth, scale=5]
\draw[smooth, ->] (0.8,0)--(4.5,0) node[above] {$x$};
\draw[smooth, ->] (1,-0.2)--(1,3.5) node[left] {$y$};
\begin{scope}[shift={(0,0)},scale=1.5]
\filldra... | https://tex.stackexchange.com/a/633594 | tex.stackexchange.com | 2022-02-12T06:23:59.957000 | |
Differential of Surface Area Spherical Coordinates | \documentclass{article}
\usepackage{tikz}
%\usepackage{amsmath,amssymb,amsfonts}
\usepackage{tikz-3dplot}
%\usetikzlibrary{math}
\usepackage{ifthen}
\usepackage[active,tightpage]{preview}
\PreviewEnvironment{tikzpicture}
\setlength\PreviewBorder{1pt}
%
% File name: differential-of-surface-area-spherical-coordinates.tex... | https://tikz.net/differential-of-surface-area-spherical-coordinates/ | tikz.net | 2023-04-07T14:03:17 | |
Creating slice letters using a fractal pattern using Tikz. Can a more elegant solution be achieved through a different type of clipping? See the provided code for a brute force approach. | \documentclass[varwidth, border=1pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{calc, chains}
\tikzset{
cantor/start/.initial=0,
cantor/picture/.style={
start chain=going base right, node distance=+0mm, baseline=(chain-begin.base)},
cantor/node/.style={
text=black, inner sep=+0pt, outer sep=+0pt, node ... | https://tex.stackexchange.com/a/680340 | tex.stackexchange.com | 2023-03-21T21:25:46.440000 | |
Displaying a 3x3 matrix column by column using TikZ with visible on calculations based on the current column number. | \documentclass[xcolor=table,10pt,aspectratio=169]{beamer}
\usetheme{metropolis}
\usepackage[T1]{fontenc}
\usepackage[american]{babel}
\usepackage{amsmath,amssymb,amsthm}
\usepackage{tikz}
\usepackage[beamer,customcolors]{hf-tikz}
\usetikzlibrary{
matrix,
overlay-beamer-styles,
ext.node-families,
shapes,
}
\Decl... | https://tex.stackexchange.com/a/668138 | tex.stackexchange.com | 2022-12-10T20:05:32 | |
Create various road symbols with TikZ including US Interstate Shield, US Highway Shield, and Generic State Highway "pill". The package is created but needs improvement to accurately represent the more complicated shapes. Ideally, the symbols should be of a fixed height and grow horizontally to accommodate the text with... | \documentclass[tikz,border=1.618mm]{standalone}
\usetikzlibrary{intersections,spath3}
\definecolor{interstate blue}{HTML}{003F87}
\definecolor{interstate red} {HTML}{Af1E2D}
\begin{document}\sffamily\bfseries
\begin{tikzpicture}
\useasboundingbox (-2.1,-2) rectangle (2.1,2.1);
% creating the paths
\path[spath/save=ci... | https://tex.stackexchange.com/a/684909 | tex.stackexchange.com | 2023-05-06T07:53:14.743000 | |
centering and positioning the TikZ picture in a beamer frame to avoid overlapping with the text. Use the options `shift` for horizontal and `yshift` for vertical movement to achieve the desired positioning. | \documentclass[xcolor=table,10pt,aspectratio=169]{beamer}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[american]{babel}
\usepackage{amsmath,amssymb,amsthm}
\usepackage[beamer,customcolors]{hf-tikz}
\usepackage{booktabs} % Tables
\usepackage{tikz}
\usetikzlibrary{
arrows,
calc,
chains,
... | https://tex.stackexchange.com/a/667997 | tex.stackexchange.com | 2022-12-09T14:11:45.990000 | |
Centering the pi symbol in the spiral of digits of pi and changing the color of the digits under the pi symbol. Can changing the font color be possible? The code below shows the spiral of digits of pi with visible digits under the pi symbol. A solution that automates the creation of the digits of pi would be appreciate... | \documentclass[tikz, border=1cm]{standalone}
\usetikzlibrary{decorations.text, bbox}
\begin{document}
\begin{tikzpicture}[
decoration={
reverse path,
text effects along path,
text={%
3{,}%
1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679%
82148086513282306647093844609... | https://tex.stackexchange.com/a/668173 | tex.stackexchange.com | 2022-12-11T08:12:34.020000 | |
A stunningly beautiful unicorn drawn with TikZ, expertly crafted by GPT-4 with its impressive capabilities. | \documentclass[border=10Mm]{standalone}
\usepackage{emoji}
\usepackage{pgfplotstable}
\pgfplotsset{compat=newest}
% Original Image: Hszone/Wirestock Creators / stock.adobe.com
% https://stock.adobe.com/de/images/unicorn-pixel-art-vector/501392488
\begin{filecontents}{image.dat}
.2 0 0 0 0 0 0 0 0 0 0 0 0 ... | https://tex.stackexchange.com/a/681468 | tex.stackexchange.com | 2023-03-31T23:45:38.657000 | |
A random geometric graph generated in TikZ, with close nodes connected by segments if their distance is less than 0.1 | \documentclass[tikz]{standalone}
\usetikzlibrary{calc,math}
\tikzset{test length/.initial=5mm}
\begin{document}
\pgfmathsetseed{652524}
\begin{tikzpicture}
\foreach \x in {1,...,300}{
\pgfmathrandominteger{\a}{-490}{490}
\pgfmathrandominteger{\b}{-490}{490}
\node[circle, fill, inner sep=+0pt] (dot-\x) at (\a*.01,... | https://tex.stackexchange.com/a/652565 | tex.stackexchange.com | 2022-07-31T17:18:29.830000 | |
Reproducing the orbital wave shown in the provided figure using Tikz. Please see the attached code for what has been achieved so far and any assistance to move forward is appreciated. | \documentclass[tikz,border=2mm]{standalone}
\tikzset
{% \x = angle, \h=wave height, \n=wave number
declare function={wave(\x,\h,\n)=1+\h*sin(\n*\x-90*(\n-1));}
}
\begin{document}
\begin{tikzpicture}
\foreach\i in {2,...,6}
{
\begin{scope}[shift={(3.5*\i,0)}]
\node at (0,1.75) {$n=\i$};
\draw[thick] (0,0) c... | https://tex.stackexchange.com/a/681535 | tex.stackexchange.com | 2023-04-01T15:20:03.453000 | |
Improved alignment and aesthetics for captions and TikZ figures | \documentclass{report}
\usepackage{tabularray}
\usepackage{tikz}
\usetikzlibrary{arrows.meta} % for arrow size
\colorlet{metalcol}{blue!25!black!20!white}
\begin{document}
\begin{figure}[ht]
\tikzset{
>=Straight Barb,
x={(0.72cm,-0.08cm)},y={(0.40cm,0.30cm)},z={(0,1cm)},
metal/.style args = {#1/#2}{dra... | https://tex.stackexchange.com/a/679044 | tex.stackexchange.com | 2023-03-10T21:57:05.273000 | |
A circle with all possible squares of width s inserted side by side, where each square is allowed to cross the periphery at the corner/corners if possible. The squares must stay within the circle. The image on the right upper axis with r = 10 and s = 1 serves as an example. However, it is challenging to make it work fo... | \documentclass{article}
\usepackage[fleqn]{mathtools}
\usepackage{enumitem}
\usepackage{cleveref}
\usepackage{geometry}
\usepackage{tikz}
\usepackage{xfp}
\newlist{options}{enumerate}{1}
\setlist[options]{label=\roman*.,ref=\roman*}
\crefname{optionsi}{option}{options}
\begin{document}
Due to the symmetry of the proble... | https://tex.stackexchange.com/a/676553 | tex.stackexchange.com | 2023-02-26T03:06:08.717000 | |
Vibrant and accurate colors in the surface plot generated through matlab2tikz. Currently, the colors appear dark and faded in the TikZ file output. | \documentclass[tikz]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.16}
\begin{document}
\begin{tikzpicture}
\begin{axis}[view={0}{90}]
\addplot3 [surf,shader=faceted,samples=200,domain=0:1] {x^2*y};
\end{axis}
\end{tikzpicture}
\begin{tikzpicture}
\begin{axis}[view={0}{90}]
\addplot3 [surf,shader=... | https://tex.stackexchange.com/a/538984 | tex.stackexchange.com | 2020-04-16T20:38:20.407000 | |
Filling the area between two curves without using the fillbetween command in TikZ. | \documentclass{article}
\usepackage{tikz}
\begin{document}
\section{Without \texttt{--} between the two curves}
\subsection{Without $samples=2^n+1$}
\begin{itemize}
\item $samples=25$ (by default)
\begin{tikzpicture}[scale=2]
\fill[cyan,draw=black] plot[domain=0:1] (\x,{\x*e^(-\x)}) plot [ domain=1:0](\x,{sqrt... | https://tex.stackexchange.com/a/672163 | tex.stackexchange.com | 2023-01-19T08:03:54.450000 | |
Linear Approximation 3d | \documentclass{article}
\usepackage{tikz}
\usepackage{tikz-3dplot}
\usetikzlibrary{math}
\usepackage{ifthen}
\usepackage[active,tightpage]{preview}
\PreviewEnvironment{tikzpicture}
\setlength\PreviewBorder{1pt}
%
% File name: linear-approximation-3d.tex
% Description:
% The linear approximation for a function of two v... | https://tikz.net/linear-approximation-3d/ | tikz.net | 2023-04-07T15:40:51 | |
Rotate the red latitude circle so that it intersects the equator disk on a sphere. The image models the 'Sun's path' above or below the 'Celestial equator.' | \documentclass[tikz,border=2mm]{standalone}
\usepackage{fontawesome} % for \faMale
\usetikzlibrary{3d,intersections,perspective}
% layers
\pgfdeclarelayer{back}
\pgfsetlayers{back,main}
\pgfmathsetmacro\azimuth{82}
\tikzset
{% styles
rotated/.style={rotate around x=50},
rotated at height/.style={rotated,canvas ... | https://tex.stackexchange.com/a/672418 | tex.stackexchange.com | 2023-01-21T10:18:41.410000 | |
A tesselation using TikZ, similar to the one in the image, with accurate placement of diamonds. The code tries to produce the 3 diamonds that produce the hexagon with size 1, but the resulting image shows something different. The value 0.866 represents \sqrt{3}/2, which should be used to accurately place the diamonds. ... | \documentclass[tikz, border=1cm]{standalone}
\begin{document}
\begin{tikzpicture}[x=1mm, y=1mm]
\newcommand{\N}{100}
\newcommand{\M}{50}
\clip (1,-1) rectangle ({sqrt(3)*(\N+1)},{3*\M+2});
\fill[cyan] (1,-1) rectangle ({sqrt(3)*(\N+1)},{3*\M+2});
\foreach \m in {0,...,\M}{
\begin{scope}[shift={(0,\m*3)}]
\fill[cyan!80... | https://tex.stackexchange.com/a/662083 | tex.stackexchange.com | 2022-10-18T05:31:33.883000 | |
Realistic replication of capillary waves in tikz-3dplot with caterpillar-like shape and fill between paths for a more accurate representation. | \documentclass[11pt, margin=1cm]{standalone}
\usepackage{tikz}
\usepackage{pgfplots}
\usepackage{tikz-3dplot}
\usetikzlibrary{shapes.arrows, math}
\usepgfplotslibrary{colormaps, fillbetween}
\begin{document}
\xdefinecolor{brgb}{RGB}{0, 0, 189}
\xdefinecolor{trgb}{RGB}{105, 255, 255}
\tikzmath{%
integer \sampls;
... | https://tex.stackexchange.com/a/649590 | tex.stackexchange.com | 2022-07-01T22:06:52.033000 | |
A beautifully decorated Christmas tree drawn using TikZ, complete with tinsel garland, candles, baubles, and a tree topper. The shading of the green adds to the realism of the image. This image will be featured on our blog and the TikZ example gallery for all to enjoy during the holiday season. #TikZ #ChristmasTree #Fr... | \documentclass[tikz, border=0.25cm]{standalone}
\usepackage{tikz}
\pagecolor{black}
\usetikzlibrary{decorations.pathreplacing}
\makeatletter
\newcount\tikzjointhedotsnumber
\pgfdeclaredecoration{join the dots}{initial}{%
\state{initial}[width=0pt, next state=do dots, persistent precomputation={\global\tikzjointhedo... | https://tex.stackexchange.com/a/149576 | tex.stackexchange.com | 2013-12-11T19:45:39.647000 | |
Converting Mathematica code to pgfplot for multivariate plotting with TikZ. Visualize contours and customize appearance with 'TikZ' version. | \RequirePackage{luatex85}
\documentclass[border=1cm]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.18}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
view={0}{90},
colormap={custom}{color(0)=(white) color(1)=(red)},
domain=-1:0, y domain=-1:1,
axis x line=none, axis y line=none,
]
\addplot3 [
contour fill... | https://tex.stackexchange.com/a/638887 | tex.stackexchange.com | 2022-03-29T17:27:11.167000 | |
Helicoid | \documentclass{article}
\usepackage{tikz}
\usepackage{tikz-3dplot}
\usetikzlibrary{math}
\usepackage{ifthen}
\usepackage[active,tightpage]{preview}
\PreviewEnvironment{tikzpicture}
\setlength\PreviewBorder{1pt}
%
% File name: helicoid.tex
% Description:
% A geometric representation of an helicoid is shown.
%
% Date o... | https://tikz.net/helicoid/ | tikz.net | 2023-04-07T14:21:12 | |
A grid of lines appearing wavy and flexed, created through the use of TikZ's \pgfsetcurvilinearbeziercurve{} and \pgftransformnonlinear{} commands. | \documentclass[tikz, border=1mm]{standalone}
\usepackage{lmodern}
\usepackage{expl3}
\usepackage{pgfplots}
\pgfplotsset{compat=1.16}
\usetikzlibrary{calc, decorations.text, fpu}
\ExplSyntaxOn
\cs_new_eq:NN \clistMapInline \clist_map_inline:nn
\ExplSyntaxOff
\newcommand*{\toFixedFormat}[2]{%
\pgfmathparse{#2}%
\pg... | https://tex.stackexchange.com/a/528367 | tex.stackexchange.com | 2020-02-13T22:30:09.713000 | |
Improving vertical alignment of Tikz pictures | \documentclass[a4paper]{article} % To avoid confusion, let us explicitly
% declare the paper format.
\usepackage{float}
\usepackage{graphicx}
\usepackage{tikz} %for TikZ graphics
\usepackage{tikz-3dplot} %for 3dplot functionality
\begin{document}
%harmonics.tex: produces spheri... | https://tex.stackexchange.com/a/674909 | tex.stackexchange.com | 2023-02-11T14:53:08.950000 | |
Improved vertical alignment of Tikz pictures for better visual representation | \documentclass[a4paper]{article} % To avoid confusion, let us explicitly
% declare the paper format.
\usepackage{multirow}
\usepackage[table,xcdraw]{xcolor}
\usepackage{float}
\usepackage{graphicx}
\usepackage{tikz} %for TikZ graphics
\usepackage{tikz-3dplot} %for 3dplot functio... | https://tex.stackexchange.com/a/674904 | tex.stackexchange.com | 2023-02-11T14:20:48.590000 | |
A 3D Christmas gift box in TikZ with intricate details including a bow tie, elevated lid/bow, and patterned wrapping paper. Bonus points for animating the box as it opens. | \documentclass[tikz,border=0.125cm]{standalone}
\tikzset{gift box/.cd,
x/.store in=\gbx,
y/.store in=\gby,
z/.store in=\gbz,
rotate around z axis/.store in=\gbzaxisrotate,
x=0,y=0,z=0,
rotate around z axis=0
}
\tikzdeclarecoordinatesystem{gift box}{%
\tikzset{x=(-20:1cm),y=(200:1cm),z=(90:1cm)}%
\tik... | https://tex.stackexchange.com/a/150675 | tex.stackexchange.com | 2013-12-19T10:59:18.197000 | |
A Christmas tree with decorations, drawn using TikZ. The tree is inspired by the lindenmayersystems library, and includes additional decorations such as tinsel garland, candles, baubles, and a tree topper. A shading effect is added to the green for realism. The final image will be showcased on our blog and in the TikZ ... | \documentclass[tikz, border=2mm]{standalone}
\usetikzlibrary{decorations.markings}
\newcommand{\NordmannFir}[3]%
% shift, scale, day
{ \begin{scope}[shift={(#1)}, scale=#2]
\pgfmathsetmacro{\C}{2+#3*4}
\colorlet{LightFir}{green!50!gray!75!black}
\colorlet{DarkFir}{green!35!black}
\color... | https://tex.stackexchange.com/a/284030 | tex.stackexchange.com | 2015-12-20T18:44:55.270000 | |
Nautilus | \documentclass{article}
\usepackage{tikz}
\usepackage{tikz-3dplot}
\usetikzlibrary{math}
\usepackage{ifthen}
\usepackage[active,tightpage]{preview}
\PreviewEnvironment{tikzpicture}
\setlength\PreviewBorder{1pt}
%
% File name: nautilus.tex
% Description:
% A geometric representation of a nautilus is shown.
%
% Date of... | https://tikz.net/nautilus/ | tikz.net | 2023-04-07T15:42:48 | |
Times Tables and Mandelbrot. For f = 2, the edges will visualize a Cardioid. The left-most point on the circular is labeled “0”, counter-clockwise the points 1, 2, …, n − 1 follow. For each point i, the value j = i × f mod n will be calculated and an line between i and j will be drawn (unless i = j which needs special ... | \documentclass[tikz]{standalone}
\usetikzlibrary{backgrounds, graphs}
\tikzgraphsset{
MandelTimes factor/.initial=2,
declare = {MandelTimesTable}{
[clockwise, phase=180] {
\foreach \V in {0,...,\pgfinteval{\tikzgraphVnum-1}}{\V},
\foreach \V in {1,...,\pgfinteval{\tikzgraphVnum-1}}{
[/utils/... | https://tikz.net/times-tables-and-mandelbrot/ | tikz.net | 2023-03-31T19:28:06 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.