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
0 answers
127 views

How to import graph I made in desmos into TikZ?

So I got this graph here, intended to illustrate the layercake representation of a measurable function, made in desmos. I'd like to take that into TikZ, but I can't seem to figure out how to do it. ...
Gustavo De Souza's user avatar
4 votes
2 answers
189 views

Colored sectors with one or two loop(s)

I have this code: \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture} \draw[fill=red] (0,0)--(0:6) arc (0:60:6)--cycle; \draw[fill=white] (0,0)--(0:5) ...
Raffaele Santoro's user avatar
1 vote
2 answers
67 views

tikz matrix of multipart nodes

I can't figure out how one puts data of a multipart nodes in a matrix. Is this allowed ? The Following MRE works well \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{trees, shapes, arrows,...
hivert's user avatar
  • 123
1 vote
1 answer
49 views

How to draw the following Feynman diagrams?

I tried to draw the diagrams below using Tikzs in Latex. However, I failed to do it. I looked into the documentation but didn't figure it out. Any help will be highly appreciated. For the first ...
Epsilon's user avatar
  • 506
0 votes
1 answer
55 views

How can I draw a curved cut line in a DAG?

Here I have drawed a DAG(s). If possible I want to cut it with a curved lined. My code: \documentclass[journal,onecolumn]{IEEEtran} \usepackage{hyperref} \usepackage{tikz} \usetikzlibrary{decorations....
alper's user avatar
  • 1,311
0 votes
1 answer
37 views

Link between matrix nodes not horizontal

I'm using tikz matrix to put some data on a grid. However depending on the height of what's in each node the edge linking two nodes are slightly slanted making an ugly effect of wavy line. How can I ...
hivert's user avatar
  • 123
1 vote
2 answers
64 views

How to color the area between two arcs with Tikz

I have to draw the section of a star but I do not know how to fill the area between the arcs I have drawn. Here is the code \documentclass{article} \usepackage{tikz} \begin{document} \begin{...
Giophysics's user avatar
2 votes
1 answer
47 views

TikZ: How can an ellipse callout be mirrored?

I am using TikZ in Beamer and would like to mirror an ellipse callout as part of a tikz picture such that it points to the given node. \documentclass{beamer} \usepackage{tikz} \usetikzlibrary{...
kosdeg's user avatar
  • 23
1 vote
1 answer
126 views

How to compile the pgfmanual with mlmodern fonts?

I simply want a version of the pgf/TikZ manual with the bolder mlmodern fonts instead of the original lm fonts. To achieve this, I cloned the pgf repo from git, loaded the mlmodern package after the ...
Apoorv Potnis's user avatar
11 votes
2 answers
398 views

How to make a loop to draw a sequence semicircles?

I tried to draw a sequence of semicirles. This is my code. \documentclass[tikz,border=5mm]{standalone} \usetikzlibrary{calc} \usepackage{tkz-euclide} \begin{document} \begin{tikzpicture} \...
Laurenso's user avatar
  • 305
2 votes
1 answer
76 views

TikZ pic angle not showing up

I am trying to label a triangle using the TikZ pic command, and the angle I am trying to create is not showing up. Chapter 18 of the TikZ manual was unclear to me as to how to specify different types ...
Pseudonym123's user avatar
1 vote
1 answer
61 views

Increase the size of the circle in the following list of references

\documentclass{article} \makeatletter \def\@biblabel#1{\textcircled{\scriptsize #1}} \makeatother \begin{document} \begin{thebibliography}{99} \bibitem{Naj} H. Najafi, Some ...
Student's user avatar
  • 1,118
0 votes
1 answer
40 views

Some help on connecting nodes. I want arrows moving from nodes B and C straight to node G, but I get something different, below is the code [closed]

\begin{figure}[ht] \begin{tikzpicture}[node distance=1cm, text width=4.5 cm, rounded corners] % nodes % \node (A) [draw, align = center, font = \small] at (0, 12) {\textbf{...
Sendege Susan Habert's user avatar
3 votes
1 answer
46 views

pdfplots: fill area to LEFT of curve

I am trying to fill to the left of a curve, rather than below it. When I tried fill between, I got: Instead, the shading should be to the left of the curve, on the range [1.5,3]. My code: \...
Michael S's user avatar
1 vote
1 answer
79 views

2D plot marker color cannot be changed after color assignment

I have the following MWE for producing the plot. It can be observed for the plot "path2" that the ball color remains blue (has to be red), even though mark color "red" was assigned....
Ahmed Aafaq's user avatar
2 votes
3 answers
128 views

TikZ messes up spacing of fancyvrb environments

I'm trying to use environments saved with SaveVerbatim of fancyvrb in TikZ nodes. But TikZ seems to mess up the spacing in a way that I can't use this for code snippets. The following MWE shows how ...
Frunobulax's user avatar
  • 2,116
1 vote
2 answers
150 views

How to draw a tree in latex?

I want to draw this tree in latex but I dont know how to do that, Can someone help me draw this tree in LaTeX? I'm not familiar with it. Thank you
Mido's user avatar
  • 31
1 vote
1 answer
43 views

How to align the bar charts in a stacked bar chart properly?

I'm working on this latex code to fit the bounds properly. I want to include the percentage on top of every bar plot, and the legend must be simply a rectangle. Also, can anyone please help me use ...
Student's user avatar
  • 155
1 vote
0 answers
60 views

PGFPlots: Calculating and adding averages to scatter plot

In my source CSV file there is one column per data series, so I use \foreach to iterate over all of them and add them to the scatter plot. I also want to add a TikZ node that marks and states the ...
TexMax's user avatar
  • 43
1 vote
1 answer
73 views

Improving my answerbox code for the exam class

I am using the exam class for my work, and I have found that structuring the space where students fill in their answers can significantly speed up the grading process. To achieve this, I created a new ...
Titanlord's user avatar
  • 521
1 vote
0 answers
40 views

Error with \input: runaway argument

I have the following two .tex files which won't compile: \documentclass[a4paper, twoside, 14pt, pdftex, pdfa]{extreport} \usepackage[utf8]{inputenc} \usepackage[czech]{babel} \usepackage{comment, ...
JoudaBouda's user avatar
8 votes
3 answers
657 views

Backtracking Equations

I have been trying create the code that will replicate the backtracking boxes. I've not been able to split the boxes without using two different tikz pictures. I want the arrows to go from middle of ...
Jon's user avatar
  • 491
3 votes
2 answers
256 views

pgffor with foreach inputted from another file does not work anymore with MiKTeX 23.4

This piece of code used to compile just fine with MiKTeX 2.9.6300: \documentclass{article} \usepackage{pgffor} \begin{document} \input{forEachInput.tex} { test \fruit } \end{document} The file ...
Giulio's user avatar
  • 327
1 vote
0 answers
25 views

Why does setting a tikzfading style from within a tikzpicture increase the boundary box?

I am using tikz with the tikz library "fadings". I am drawing a tikzpicture that involves looping through a sequence, and performing an action for each term of the sequence. One such action ...
Adam Higgins's user avatar
1 vote
0 answers
30 views

How to rotate a gradient along with the rectangle

When I rotate a rectangle with a gradient fill, the gradient stays relative to the document or canvass or whatever. I want the gradient to rotate with the rectangle so that it changes along its width ...
LostInHilbertSpace's user avatar
1 vote
1 answer
42 views

How to draw edges between nodes in different sublayouts so that they are behind the rest of the graph in TikZ?

This is a minimalish example of my drawing: \RequirePackage{luatex85} \documentclass[]{article} \usepackage{tikz} \usetikzlibrary{graphs,graphdrawing} \usegdlibrary{layered} \begin{document} \begin{...
sturgman's user avatar
  • 147
1 vote
2 answers
179 views

How to plot a custom bessel function?

The function is a composition function with Bessel function as a part of a complex function. Where J_0 is the bessel function
Formal_this's user avatar
-1 votes
1 answer
99 views

Draw an infinity loop with TikZ [closed]

I'm looking to draw this design with TikZ.I learnt a lot with you guys but for this one, I have no idea about how to draw the infinite loop like this.
Benoît Darroux's user avatar
0 votes
1 answer
84 views

Correction required in subfigures and labels of figures in TikZ [duplicate]

I am trying to plot the following figure with 4 sub-plots. The first figure shows the kind of plot which I want to get corrected. The corrections are marked with questions. I tried an answer from a ...
Formal_this's user avatar
0 votes
0 answers
44 views

Relative Fade Direction with Tikz Fading

I have a custom function that creates a tikzpicture that has been rotated via \begin{tikzpicture}[rotate=angle] ... \end{tikzpicture} where "angle" is an argument to the function so that ...
Adam Higgins's user avatar
0 votes
0 answers
55 views

Python from LaTeX: Strange Networkx/Graphviz error

It is hard to give a minimal example, because Python3 with some packages is needed. I want to call Python from LaTeX, here is an example how I want to do it (--shell-escape is needed): \documentclass[]...
Titanlord's user avatar
  • 521
0 votes
0 answers
57 views

Questions about what the [x=,y=] option in \draw means?

In Section 2.12 Parabola and Sine Path Construction of A Picture for Karl’s Students, one can draw the parabola and sine paths using the following commands. Parabola \tikz \draw[x=1pt,y=1pt] (0,0) ...
Ka Wa Yip's user avatar
  • 773
1 vote
2 answers
56 views

How to make angle pop out more with tikz

I have just started with tikz and I am trying to create a right triangle. However, when I try to draw an angle it keeps becoming squished. Is there some way to move it forward to become less squished (...
JasonGrace2282's user avatar
1 vote
0 answers
124 views

Parallel Transport on a Hyperbola

Disclaimer: I'm very new to fancy TeX pictures..as you can see by my reputation 1 on this exchange. I recently came across this post, describing how to the draw parallel transport of a vector on a ...
Mike_MasterinMath's user avatar
0 votes
2 answers
87 views

Drawing parallel lines and dots in tikz

I am struggling to place labels and no fill circles in my latex code. I wish to have the following output: I have managed to come up with the following code: \documentclass[tikz, border=2mm]{...
itc's user avatar
  • 600
1 vote
1 answer
65 views

Tikz bar chart, nodes near coords, remove value from a specific bar

I am using pgfplots to display a stacked bar chart. For each x-value, two bars are stacked. I need to show the y-value inside each bar and their sum on top. I managed to achieve this, however, the ...
Ronteg's user avatar
  • 13
3 votes
1 answer
46 views

How to draw a function on a section of a plot

I want to draw the blue "Gaussian" (approximated using sinc) on the black line going through the bullet point exactly like how it rests on the actual axis with its center above the bullet ...
Ahsan Yousaf's user avatar
4 votes
2 answers
227 views

How to layer in TikZ?

I have the following TikZ figure, and its output is shown pictorially below. My issue is that I want to extend the figure in such a way that below and outside of the overlay "Expressive FE" ...
pixel's user avatar
  • 1,316
1 vote
0 answers
40 views

Difficulty with passing the value of a tl to the tikzfading function

In the LaTeX tikz library "fadings", there is a function called \tikzfading that allows one to define a custom fading style. For instance, the following is an MWE showing a line fading out ...
Adam Higgins's user avatar
2 votes
2 answers
186 views

How to draw custom arrows in Gantt chart?

I have the following Gantt chart, but I want to make the following modifications to it. There is currently a link from WP1 to WP2 (first and second bar). I want to keep that but instead of having a ...
pixel's user avatar
  • 1,316
3 votes
2 answers
223 views

How to "animate" a pgfplot picture to slide in a beamer slide

I have the following beamer slide: \documentclass[10pt]{beamer} \usepackage{tikz} \usepackage{pgfplots} \begin{document} \begin{frame} \begin{figure}[h] \centering \begin{tikzpicture} ...
Daniel Duque's user avatar
0 votes
1 answer
51 views

Drawing arrows on curves in PGFplots

The LaTeX code below produces \documentclass{standalone} \usepackage{tikz} \usepackage{pgfplots} \pgfplotsset{compat=1.18} \usetikzlibrary{patterns, snakes} \usetikzlibrary{shapes.geometric} \...
A-Z'sh's user avatar
  • 1
4 votes
3 answers
221 views

Redirecting arrow to a specific side of a node

I'm struggling to force the arrow to connect on a specific side of a node. I'm interested in accomplishing either solution: Explicitly forcing arrow to connect to the left hand side of the node Make ...
Konrad's user avatar
  • 269
1 vote
0 answers
46 views

Problem with declaring function in tikzpicture [closed]

I have question concerning this plot in tikzpicture. \documentclass[11pt]{scrartcl} \usepackage{tikz} \usepackage{pgfplots} %\pgfplotsset{compat=1.5} \begin{document} \begin{center} \scalebox{2.00}{ ...
djdumpling's user avatar
-1 votes
1 answer
44 views

How do I set a fixed background on all pages (for example, in the center of each page)

How do I set a fixed background on all pages (for example, in the center of each page) I want to place this background with the following code in the center of all pages \begin{tikzpicture}[overlay] ...
nasser's user avatar
  • 1
1 vote
2 answers
93 views

Editing the block diagram

I have written a code for my block diagram as shown below: \documentclass[10pt]{article} \usepackage{adjustbox} \usepackage{tikz} \usetikzlibrary{plotmarks,matrix,decorations.pathreplacing,arrows....
Milito's user avatar
  • 45
1 vote
0 answers
47 views

Line Numbers inside a Tikz Environment

I'm trying to split my page into 4 subparts, similar to How to split a page into four areas in tex. I wish to number the lines of text inside each of these parts, using the lineno package. But the ...
Aditya's user avatar
  • 21
0 votes
1 answer
62 views

enumerate with circled label

Can anyone help me to create a list in which the label is inside the circle? Above is my text. I create that using tabular environment. Now I want to create a new list where the label A, B, C, D is ...
Hưng Trần's user avatar
0 votes
4 answers
98 views

Graphing the inverse function on a specific interval

I want to draw this So, I created this code \documentclass[border=12pt]{standalone} \usepackage{tikz,tkz-base,tkz-tab} \usetikzlibrary{positioning} \usepackage{pifont} \usepackage{pgfplots} \...
Karim's user avatar
  • 67
1 vote
2 answers
66 views

Evaluation of command changes its value?

I am trying to create UML class diagrams using pgf-umlcd and ran into problems. Ultimately I want to align the classes using a specified horizontal spacing. I also need to be able to set the text ...
Gutenberg's user avatar

1
3 4
5
6 7
678