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

International trade equilibria with sanctions

I need to insert this diagram about international terms of trade in my project but since it is a png file when you get to zoom in the image looses its definition. I was thinking to use {tizkpicture} ...
Yusef Hamdellah's user avatar
1 vote
2 answers
82 views

3D graph - issues filling space between curves and xy-plane

So I have a bunch of datasets stored in several .dat files that I have drawn on a 3D graph to show the data evolution according to a third parameter. In order to make the graph prettier, I would like ...
Marck's user avatar
  • 167
0 votes
0 answers
15 views

tikzplot reading a data file with uneven row data from .csv file creates problem in x expr \thisrowno

I have a data file like this one (it has 4 columns): Sxy_FEA,x_FEA,x_Analy,Sxy_Analy 0.0000000010137,0,0.99706580118374,0.000267084368331167 0.000000041975,0.005,0.988280423780349,0.000255644263283463 ...
Mehmet A. Guler's user avatar
4 votes
1 answer
64 views

Tikz renders different in standalone and scrartcl

I have a similar problem as asked in this Question. In my case there seems to be a difference in the rendering of a tikz figure between the standalone class and the scrartcl class. In the MWE you can ...
DraUX's user avatar
  • 555
2 votes
1 answer
46 views

How to make tikz trees with children that grow down then right?

by default tikz grows trees in a centered manner, such that children grow as: o / \ o o / \ / \ o o o o How can I grow the trees such that they grow down, then right? Such that:...
Reginald's user avatar
1 vote
1 answer
57 views

TikZ-decoration: How to to draw a defined number of positive and negative amplitudes over a certain length

I would like to use decoration=snake (or possibly coil, aspect=0) to draw a defined number \n of positive and negative amplitudes over a length \u (in the example n=4). How do I have to set the ...
cis's user avatar
  • 8,912
2 votes
1 answer
49 views

how can i adjust the position at which the wire splits? and how to make a single wire splits into two wires seemlesly?

for example, I have the wires that run from the node b_2 which I want it to split to both label_g2 and XOR1.in 1, currently, I have 2 things I don't like about it: I have to do it with two different \...
Nate3384's user avatar
  • 197
7 votes
1 answer
400 views

How to avoid the strange line at the end of a zigzag decoration

I would like to place a specified number of zigzags along a path. That means, in the following MWE are exactly 4 positive and 4 negativ amplitudes around the black line. How can I avoid the strange ...
cis's user avatar
  • 8,912
7 votes
3 answers
224 views

Rotating each other row of spirograph patterns

I use the following code, modified from the answer to this post, to draw spirograph patterns; \documentclass[12pt,a4paper]{article} \usepackage[margin=1cm]{geometry} \usepackage{tikz} \usepackage{...
Hany's user avatar
  • 4,927
2 votes
1 answer
62 views

Using line length as part of a TikZ style calculation

Because I am going to make a lot of figures where the same spring is in different states of compression or extension, I spent some time developing a dynamic style for springs. This style takes 4 ...
Erlend Magnus Viggen's user avatar
0 votes
1 answer
67 views

Problem with wrapping a TIKZ figure using wrap figure and also with \input{insbox.tex}

I have tried using wrap figure to embed some tikz figure and it was just a no go. Then I tried to use the Insertbox command and it worked but it creates an empty box in the next page of my document. I ...
Daniel's user avatar
  • 1
0 votes
1 answer
72 views

Is there a Tikz or Circuitikz headphone jack connector diagram?

A Tikz or CircuiTikz headphone jack connector symbol like these here: https://en.wikipedia.org/wiki/Phone_connector_%28audio%29#/media/File:Phone_Jack_Symbols.svg A headphone jack connector is widely ...
Anisio Braga's user avatar
0 votes
0 answers
57 views

How can I define a custom TikZ path operation?

How feasible is it to define my own path operations, similar to --, to, rectangle, or parabola in TikZ? Specifically, I am looking to create custom commands that could be used in a drawing command ...
ttsc's user avatar
  • 415
2 votes
1 answer
117 views

Alignment of TikZ pictures

I'm trying to automate the vertical alignment of these shapes so I can use a foreach loop to put them in a repeating pattern. (At the moment the triangle is a bit high and the circle is a bit low) Any ...
Wendy Taylor's user avatar
2 votes
1 answer
48 views

Rare error in tikzpicture if i don´t use some lipsum text

I have a tikzpicture in my latex document. Additionally, I have a text from the lipsum library. The document compiles normally and the tikzpicture looks normal. For some reason, when I remove the ...
Juan Robles's user avatar
0 votes
1 answer
89 views

How to Reproduce This Tikz Colorization?

A little while back, I inquired about placing an authentic metallic finish on a gold plate: Providing an Authentic Finish to a TIKZ Gold Plate One of Sandy G's very nice answers: \documentclass{...
DDS's user avatar
  • 9,776
5 votes
2 answers
290 views

Use for loops to generate TikZ coordinates corresponding to linear combinations of vectors

I am trying to draw linear combinations of vectors. I started defining coordinates manually, but it's too time- and space-consuming: \begin{center} \pgfplotsset{compat=1.15} { ...
EthanAlvaree's user avatar
  • 1,421
1 vote
2 answers
41 views

Can I use threeparttable package with tikzpicture?

I made a tikzpicure graph however I want the caption to be aligned with the border of the graph similar to what would be done when using a caption for a table with \begin{threeparttable}. This is the ...
user avatar
0 votes
0 answers
30 views

Sphere with a randomly marked region and an equatorial circle

I'm working with spheres in 3D and would like to draw a sphere with an open region $U$ with color green and enclosed closed region $E$ filled with color red such that $E \subset U$. And a vector $x$ ...
hteica's user avatar
  • 101
1 vote
1 answer
42 views

Connecting two trees with a line, with tikz

I have two trees one next to the other. Some of the nodes should be connected. The code for connection nodes is breaking compilation, and I don't get any lines connecting the nodes between the trees. \...
mm6643's user avatar
  • 13
3 votes
1 answer
110 views

How to make this hook works in TikZ?

Question What do I need to change to make myhook work? Objective create a dia(gram) in TikZ, where coordinates depend on parameters (options) and resulting coordinates can be accessed or used (here: (...
MS-SPO's user avatar
  • 13.7k
0 votes
1 answer
59 views

energy band structure of a semiconductor

I need to create an energy band structure of a semiconductor plot diagram or of One-dimensional crystal with periodic potential, where only several lattice points are included through tikzpicture. I ...
Yusef Hamdellah's user avatar
2 votes
2 answers
57 views

Prevent node text and lines from overlapping inside node's box

It is not easy to find a suitable title for my problem, so I am open on suggestions for improvement. In some of my TikZ drawings, I have noticed that it would be better to indicate a "two-part ...
olStckEx's user avatar
  • 449
3 votes
1 answer
73 views

intersection points, line and contour

For this question, I refer to the post connect sides by arrows in any contour, polygonal figure, closed curve, etc. Here is the code modified by me. What I want is to mark each intersection point of ...
Jack's user avatar
  • 265
1 vote
1 answer
44 views

How to convert tikz in eps and include it in same time within a TeX file

For a publication, it is said to me that my .tex-file should " refrain from images generated by LaTeX (i.e., using packages such as pict2e, MetaPost, PSTricks, or tikZ). The images should be ...
test's user avatar
  • 181
0 votes
1 answer
88 views

Generating a figure with the package TikZ

I am working on an article in LaTeX and am trying to generate a figure with the help of the package TikZ. Since it's my fist time using this package (and I've only just started learning to use LaTeX) ...
James Catch's user avatar
0 votes
2 answers
63 views

Placing Shadowed Titles within a Tikzpicture

I am trying to adapt the excellent answer of Sandy G found in Arching a Shadowed Title to a slightly different problem. Consider the code: \documentclass{book} \usepackage[sfdefault]{cabin} \...
DDS's user avatar
  • 9,776
4 votes
1 answer
43 views

Change line length between parent/child in forest

Consider the following forest: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[edges]{forest} \begin{document} \begin{forest} forked edges, for tree={fork sep=2mm, grow=east,...
John Doe's user avatar
  • 231
1 vote
0 answers
34 views

tikz: remove the * 10^4 at the end of the xaxis [closed]

im plotting a tikzpicture and want to remove the annotation at the end of my x-axis. (*10^4) do you know how to fix it? here is my tikzplot: \begin{tikzpicture} \definecolor{darkgray176}{RGB}{176,176,...
Andre's user avatar
  • 11
-1 votes
0 answers
33 views

I would like to draw a regular polygon of 8 sides [duplicate]

I would like to draw a regular polygon of 8 sides. One with just the outline, the other filled The following is complaining about Package pgfkeys Error: I do not know the key '/tikz/regular polygon' ...
Liccu's user avatar
  • 1
3 votes
2 answers
206 views

Arching a Shadowed Title

Consider the code: \documentclass{article} \usepackage[sfdefault]{cabin} \usepackage[english]{babel} \usepackage{tikz} \usetikzlibrary{fadings} \usepackage{scalefnt} \definecolor{DarkRed}{RGB}{139,0,...
DDS's user avatar
  • 9,776
3 votes
2 answers
119 views

Replicate complex space diagrams in tikz

I want to replicate the following diagrams in tikz. I want to make the red thick arrows. Do I draw the arrow with \addplot3 inside axis ? I do get the problem Package pgfplots notification 'compat/...
Liccu's user avatar
  • 1
2 votes
0 answers
66 views

Nicematrix not working version 6.28 2024-05-29 [closed]

I'm using TeX Live 2019/Debian and I did the procedure accordingly https://www.ctan.org/tex-archive/macros/latex/contrib/nicematrix. However get error nicematrix.sty: erro: 35: Undefined control ...
wccmachado's user avatar
2 votes
1 answer
23 views

Adding labels inside tikz picture

I want to add labels inside each of the three cycles formed by arcs in the graph. The label should say $b_1$,$b_2$, and $b_3$. The size can be smaller but preferably the same as the size of the labels ...
Vika's user avatar
  • 457
1 vote
1 answer
67 views

Font size conflict between document class and tikzpicture

Here are my files reduces for the MWE : file 1 : \documentclass[a4paper,12pt]{article} \usepackage{tikz} \begin{document} \input{Chaine_Fonctionnelle} \end{document} file 2 : \documentclass[...
LMT-PhD's user avatar
  • 1,276
2 votes
1 answer
45 views

Increase line length in tikz forest

Suppose I have the following tree: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[edges]{forest} \begin{document} \begin{forest} for tree={ grow=east, parent anchor=...
John Doe's user avatar
  • 231
3 votes
2 answers
179 views

How interrupt one of two crossing curved paths

How may I interrupt one of the two crossing curved paths (arrows) shown below so that it appears to "duck underneath" the other one? (I don't care which one ducks under the other.) I have ...
murray's user avatar
  • 8,692
1 vote
1 answer
24 views

Tikz picture messes up the layout of my beamer frame

I am writing a beamer presentation, and in one frame, I want to do a layout with four sections. I managed (with the help of ChatGPT) to do it with minipage in the following way: However, I found one ...
Gaussian97's user avatar
1 vote
1 answer
36 views

Subcaption and size of subfigure are offset

I haven been trying to create a figure with two subfigures aligned next to each other. For the life of me I cannot find a solution. The right subfigure is slightly bigger, and its subcaption is ...
nico's user avatar
  • 15
0 votes
0 answers
44 views

modify tikz arrow tips for a chain of arrows

I want to draw a directed graphs and put a big arrow tip at the end of each edge. For large arrow tip I follow the suggestion in https://stackoverflow.com/questions/30822634/how-to-change-arrow-tip-...
underflow's user avatar
  • 633
1 vote
0 answers
20 views

Specifying node's x and y coordinates wrt. drawn line [closed]

I want to draw a line, and create a node with a specified position wrt. that line. I would like the node to be to the left of the midpoint. \documentclass{article} \usepackage{tikz} \begin{document} \...
igunnarsson's user avatar
1 vote
1 answer
61 views

Title page background opacity issue with TikZ

I am using TikZ to set the page background, but changing the opacity doesn't seem to work on the title page. Here is a minimal working example. \documentclass{article} \usepackage{tikz} \AddToHook{...
Inverted Pastry's user avatar
2 votes
2 answers
72 views

What is the best practice to define a newcommand to derive the projection of the curve intersection with specific x-axis notation?

I encounter a confusing problem when deal with the projection of the function figure as below. I wonder how to modify my tex code's definition of \newcommand{\ShowIntersectionsAndVerticalLine} with 4 ...
Explorer's user avatar
2 votes
2 answers
50 views

PGF keys are setting individually but not as a key list

Using the TeX Works AppImage with a local installation of TeX Live (texlive-full, 2021.20220204-1), I'm having trouble getting "pgfkeys" to work with a key list. Setting each key ...
user182238's user avatar
3 votes
3 answers
182 views

Cut out rotated rectangle shape

I'm trying to cut out a region from a rectangle covering two points. I can do this manually doings some trigonometry of course but I would like a solution where I can plug in just two points and it ...
Christoph Egger's user avatar
8 votes
3 answers
453 views

How can show division of fraction with tikz?

How can get the arrows as shown in the picture with Tikz? Thank you in advance. \documentclass{article} \usepackage{amsmath} \begin{document} \begin{equation*} \frac{\frac{a}{b}}{\...
Samia Rani's user avatar
3 votes
2 answers
229 views

TikZ - how to draw ticks on circle perpendicularly with ellipses around?

\documentclass{article} \usepackage{graphicx} % Required for inserting images \usepackage{tikz} \begin{document} \begin{figure} \begin{tikzpicture} % Draw the line \draw (0,0) -- ...
user46792's user avatar
  • 177
4 votes
1 answer
126 views

Using command defined with \NewDocumentCommand in TikZ

I’m trying to use a command defined using \NewDocumentCommand in a tikzpicture environment and cannot resolve an error. Here’s a minimal example of what I’m trying to do: \documentclass{article} \...
Nate's user avatar
  • 347
2 votes
2 answers
42 views

Aligning axes in two graphics vertically in Tikz [duplicate]

I have two graphics side by side, and I want to align the $\alpha$ axes in both of the graphics vertically. Here is my MWE. \documentclass[a4paper,10pt,reqno]{article} \usepackage{amsmath} \...
bkarpuz's user avatar
  • 2,477
13 votes
2 answers
554 views

Draw Memory Map/Layout/Region in TikZ

I have to draw a memory region map - and failed. What I found on the web does not correspond to my ideas and wishes (or was not drawn with TikZ). I drew the concept as a hand-drawn sketch ...
olStckEx's user avatar
  • 449