Skip to main content

Questions tagged [tikz-pgf]

TikZ is a higher-level drawing language built on top of the PGF graphics framework. For questions specifically about the PGF layer use {pgf-core} instead. Both tags are possible on the same question. The tag {diagrams} is also compatible with this tag.

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

beamer: tikz for a custom environment used in place of themes

I used tikz to make an environment in beamer to be used in place of a theme. The problem is that I'm using the overlay, remember picture option and it requires running latex/lualatex twice every time. ...
user1850133's user avatar
3 votes
1 answer
149 views

How to add coloured corners to zigzag line in TikZ?

Is there any easy way to draw in TikZ an edge decorated with zigzag style, in which every corner is coloured, so that the result will be similar to: I thought about creating such line by hand - by ...
mathematician's user avatar
4 votes
1 answer
40 views

Shading area between tangent normal and x-axis

I was wondering if I could get some help filling in the area bounded between the tangent the normal and the x-axis (which is the triangle). I've read through quite a bit of material and threads but ...
BillyBOB1's user avatar
1 vote
1 answer
62 views

Needed result is not coming in tikz

I am trying to draw something of the following form, I tried the following, \begin{tikzpicture} \node (A) at (0,0) {\Large$\psi\chi\equiv\psi^\alpha\chi_\alpha$}; ...
Fermion's user avatar
  • 13
2 votes
1 answer
56 views

pgf list with length registers

Is it possible in tikz to generate a list using length registers? for exemple: \foreach \x in {0,1,...,6} with produce the following list: "0,1,2,3,4,5,6" but now I want to produce a list ...
user1850133's user avatar
0 votes
1 answer
29 views

How do I make a 3D crystal lattice using TikZ?

I've been trying to make a decent 3D crystal lattice using LaTeX and TikZ for a while now, and I finally managed to find some code where someone had made a perfect one. However, no matter what I try, ...
Ben van Zon's user avatar
3 votes
1 answer
78 views

problem of preparing a cycle using tikz in latex

The program I'm currently using aims to generate a cyclic representation similar to the image provided. However, upon running the code, I encounter several errors, and the output does not match the ...
user318755's user avatar
1 vote
0 answers
45 views

Create a flowchart in latex

How to create a flowchart like this in latex? So far I have not been able to achieve anything close to this. My code is as follows. \documentclass{article} \usepackage{tikz} \begin{document} \begin{...
Novel Sapien's user avatar
0 votes
0 answers
39 views

comment puis je introduire les icones en latex [closed]

comment produire cette image avec latex en introduisant les icones
William Kemadjou's user avatar
0 votes
0 answers
56 views

I would like an answer to this question, please [closed]

x(+)=e^ -a/t) = overline e ^ a+ &t>0\ e ^ (at) &t<0\ e^ at &t<0 X(w) =??
anaief's user avatar
  • 17
2 votes
1 answer
48 views

Weird results with int() function in tikz-pgfplot

Maybe I found a new bug in tikz-pgfplot. Can you confirm this weird result: \pgfmathparse{int(11/2)} return 0 @JeT This is my piece of code that generates that issue with int(): \documentclass{article}...
Praecipua's user avatar
0 votes
1 answer
39 views

Tikz Display Coordinate in Node Text in Scaled Picture

Looking to display the value of a coordinate, however using the below, the value does not print out accurately. The scale is attempted to be retreived using Recover scaling factor in TikZ and then use ...
The Guy's user avatar
  • 411
1 vote
0 answers
60 views

Is there anyway to draw an arc from coordinates of two points, and its width?

First a minimal working sample is as follows. \documentclass{article} \usepackage{tikz} \usetikzlibrary{intersections}% \begin{document} \begin{tikzpicture} \path (60:2) ++ (0,0) coordinate (A);% \...
M. Logic's user avatar
  • 4,303
1 vote
1 answer
39 views

Changing the Color of a Single Interval in a Cantor Set made with the Decorate Command

I have the following TiKZ picture of a Cantor Set. \documentclass[tikz,border=5pt]{standalone} \usetikzlibrary{decorations.fractals} \begin{document} \begin{tikzpicture}[decoration=Cantor set,line ...
Sidekiq's user avatar
  • 25
3 votes
1 answer
49 views

Overleaf designing graph question

I want to put a legend at the right-up corner, add background gridlines for every 5 units, fix the size of the picture (want to put different data in the same format so that value 30 in this graph is ...
snowman's user avatar
  • 41
1 vote
1 answer
35 views

Adding nodes or Labels to a TikZ Cantor Set made with the decorate function

I have the following TikZ picture made with the decorate command \documentclass[tikz,border=5pt]{standalone} \usetikzlibrary{decorations.fractals} \begin{document} \begin{tikzpicture}[decoration=...
Sidekiq's user avatar
  • 25
3 votes
1 answer
62 views

Draw edge between same node such that there is no overlap

How can I adjust the path \path (a) edge [edge, loop left] node {$1_a$} (a) so that both the beginning and end of the path are near the node, but not so near that there is an overlap between the node ...
Idr's user avatar
  • 155
4 votes
3 answers
86 views

TikZ how to temporarily discontinue line at intersection of two lines

I am working in TikZ and I am trying to make one line stop, then start again before and after the intersection with another line. I have attempted to put a node at the intersection point and filled it ...
vali.b's user avatar
  • 43
0 votes
0 answers
79 views

How to draw the geometric figure of Robertson-Walker space-time since it is not the graph of a function [closed]

How can I draw the figure below using tex code, since it is not a graph of a function.
Sw1920's user avatar
  • 1
1 vote
1 answer
43 views

Highlight 3D plot minimum point

How can I display this plot in a different point of view, so I can highlight the minimum point? \documentclass[12pt]{article} \usepackage{tikz} \usepackage{pgfplots} \pgfplotsset{compat=1.11} \...
user3204810's user avatar
  • 1,429
0 votes
0 answers
21 views

How to remove axis border artefacts in pgfplots [duplicate]

My plot looks like this as you can see there are some odd grey arrowheads (top right corner of each subplot) on the borders of the plots. I have no idea what is creating them or how to remove them. ...
Astrid's user avatar
  • 341
4 votes
3 answers
423 views

Moment of force

I googled a lot but I did not find anything relevant. How to create in Tikz the following figure? https://fr.wikipedia.org/wiki/Moment_d%27une_force#/media/Fichier:Momento_de_uma_for%C3%A7a..png Here ...
Dimitris's user avatar
  • 1,519
0 votes
1 answer
35 views

standalone-class: convert with dvisvgm - activate the all-pages option

If I want to convert each page of a pdf-file to the same number of single svg-files, a working command is: dvisvgm --pdf --page=1- in.pdf out.svg But if I set this into standalone.cls's convert-...
cis's user avatar
  • 8,139
3 votes
2 answers
72 views

TikZ: Shapes with an angular colour gradient

Cross-posting from Stack Overflow: https://stackoverflow.com/q/78347764/2777074 Good people! I'm trying to draw some shapes with an angular colour gradient, but I am unable to find the general syntax ...
StormyTeacup's user avatar
5 votes
2 answers
148 views

Create a curved timeline in Tex

I am trying to create a timeline that includes 24 time points placed in a curved arrow as follows: I have a version of a straight arrow (From @Gonzalo Medina), but it is longer than the page width, ...
Clark's user avatar
  • 111
0 votes
0 answers
8 views

Error While using resizeboxx for a tikz plot

My code is expected to plot a function and a tangent, but I am getting an error. The idea is that if I removed resize box with its closure curly bracket, the plot goes fine, when I add it, I get ...
Nizar's user avatar
  • 163
1 vote
0 answers
27 views

Drawing one branch of hyperbola with asymptotes in tikz

I am trying to draw a single branch of hyperbola with tikz and I found in this forum a wonderful script here in this post (@DouglasMencken) : this post \documentclass[tikz, margin=10]{standalone} \...
Waxler's user avatar
  • 712
1 vote
1 answer
26 views

Units of "minimum size" when drawing a named rectangle in TikZ

When drawing a rectangle using \node and minimum width/height, the size of the resulting rectangle is different from one drawn with \draw … rectangle …. I need the \node so I can refer to it by name. ...
Peter Frings's user avatar
1 vote
1 answer
31 views

Extend linear regression over the whole plot

I have a set of data and I want to perform a linear regression on them and display the resulting line. Due to computational precision, the values reach a plateau after a certain point, and I don't ...
Thomas's user avatar
  • 241
3 votes
1 answer
127 views

Programmatically plotting tables with arrow connections

I need to produce a bunch of figures like the one below. I am certain that it can be achieve in LaTeX. What I am not sure about is whether is it possible to create a function that, given the entries ...
PaulS's user avatar
  • 493
1 vote
1 answer
72 views

how to draw a Turbojet engine picture

This is my first time using tikz but I'm afraid I didn't really get how to properly use it (I keep making a mess getting errors everywhere), so I was hoping you guys could help me drawing this scheme ...
nala's user avatar
  • 19
5 votes
2 answers
141 views

macro to change line color in tikz

I am new both to tikz and macros in latex and appreciate your help. I have a simple code for two similar diagrams as follows: \documentclass{article} \usepackage{tikz} \newcommand\tpdrrr{ \tikz{ \...
lhz157's user avatar
  • 53
3 votes
2 answers
86 views

vertical align text in tabularray with tikz node inside

I would like the text in cell vertically center but it stay at the bottom. The rowspec looks like not take effect. The m should be vertically center. \documentclass{standalone} \usepackage{tabularray} ...
beetlej's user avatar
  • 1,013
1 vote
1 answer
38 views

pgfplots: only integer numbers and only ticks at integer places on the x-axis

I want to create xbar-diagrams like this, but I want to set only integer numbers at the bottom x-axis (no 0.5, 1.5, 2.5, ...) and only ticks at the places of integer numbers (no ticks at 0.5, 1.5, ...
cis's user avatar
  • 8,139
-1 votes
2 answers
177 views

How to plot a function in integral with ln function with TikZ? [closed]

how to plot the function $f:x\mapsto \int_0^{x}\frac{1}{\sqrt{1+t^2*ln^2(t)}}\, \textrm{d}t$ with TikZ? tnx
smail065's user avatar
5 votes
2 answers
217 views

Quantikz not compatible with tikz-cd?

I want to draw quantum circuits and commutative diagrams, so I want to use the two packages quantikz and tikz-cd. But somehow quantikz overwrites tikz-cd. Take a look at this code: \documentclass[11pt,...
Blau's user avatar
  • 53
2 votes
1 answer
34 views

customized marker (pgfdeclareplotmark) with color as argumeent

I am trying to customize the shape+color of a marker for a scatter plot. Everythink works when I hard-code the color (e.g. red): \documentclass{article} \usepackage{pgfplots} \usepackage{xcolor} \...
Simon's user avatar
  • 303
-4 votes
0 answers
87 views

how to draw this graphic using the Tikz in TeX? [closed]

I am a novice to TeX, how to draw this graphic using the Tikz in TeX? \documentclass{standalone} \usepackage{tikz,tikz-3dplot} \newcommand{\drawplot}[5][]{% \foreach \v [remember=\v as \u,count=\i] ...
青山漫步's user avatar
3 votes
2 answers
163 views

ER diagram with empty boxes as a worksheet

I am in the process of creating a worksheet for my students. It's about ER-diagrams. It's relatively easy with Word, but it doesn't look so nice ;) I already know how to create ER-diagrams. What I ...
wayne's user avatar
  • 685
1 vote
2 answers
41 views

tikzpicture environment makes \noindent have no effect

See this MWE please: \documentclass[a4paper]{article} \usepackage{tikz} \usepackage[showframe]{geometry} \usepackage{ulem} \setlength\fboxsep{0pt} \begin{document} % \begin{tikzpicture}[remember ...
Stephen's user avatar
  • 3,870
0 votes
2 answers
96 views

Command for a comma-separated list of 'Nchoose' numbers from '1,2,...,Nmax' numbers

I found a code here from @John Kormylo that chooses \Nchoose numbers from 1,2,...,\Nmax numbers and give it out as comma-separatet \mylist. Question: How could I make a command from this, like \...
cis's user avatar
  • 8,139
1 vote
1 answer
44 views

Taking tikz node names from an arrayjobx array

I'm attempting to create a command for typesetting normal-form games with two players and a variable set of actions for each player. So far, I have the following code: \documentclass{article} \...
Chip's user avatar
  • 46
2 votes
2 answers
68 views

draw big arrow between two points

I would like to draw a big arrow between two points. I found a helpful similar answer here. That answer is for chain join and it works fine. but I just copy it and apply it to draw command but no any ...
beetlej's user avatar
  • 1,013
0 votes
0 answers
75 views

Simple tikz example exceeding input stack size when using figure environment [closed]

I used to place tikz elements with absolute coordinates for a front panel design. Now I would like to use the same elements for a user guide, therefore I need to place these elements with coordinates ...
Hansel's user avatar
  • 417
4 votes
1 answer
154 views

dashed line in tikz

I have written the code for this figure, how can I add these two dashes to it \documentclass{article} \usepackage{tikz} \usetikzlibrary{arrows,positioning,fit} \usetikzlibrary{arrows,calc,positioning}...
mzn's user avatar
  • 317
1 vote
0 answers
59 views

Different output from pdflatex, dvipdfm, dvisvgm and dvips. (TikZ arrowhead)

Why do TikZ arrowheads in this example look different depending on which way I compile the file? I'm using TeX Live 2023 on Ubuntu. My source test.tex looks like this: \documentclass{standalone} \...
ttsc's user avatar
  • 383
0 votes
2 answers
39 views

customized legend marker created with tikzset

Example: \documentclass{article} \usepackage{pgfplots} \usepackage{xcolor} % Define TikZ styles for interpolation points and values \newcommand{\interpolationPointStyle}{% \tikzset{interpolation ...
Simon's user avatar
  • 303
3 votes
1 answer
70 views

Addplot messes with axis coordinate system?

I am trying to understand why the direction of the red arrow changes in the presence of the addplot line in the following example: \documentclass[]{standalone} \usepackage{tikz,pgfplots} \pgfplotsset{...
mimuller's user avatar
  • 872
0 votes
0 answers
13 views

How Can I Adjust Column Width in a TikZ Vertical Bar Graph?

I've created a vertical bar graph using TikZ. Below is the code: \begin{figure}[!htbp] \centering \begin{tikzpicture} \begin{axis}[ ybar=0pt, % enlargelimits=0.15, width=\columnwidth, %...
Tien's user avatar
  • 135
1 vote
1 answer
42 views

use let command to draw single arrow shape with rotation angle

I found one good example code here, and try to reformat it with let command and define one newcommand for easy use. Below is my draft version but can not pass compile: \documentclass[border=10mm]{...
beetlej's user avatar
  • 1,013

1
2 3 4 5
697