Questions tagged [diagrams]
{diagrams} is for general questions about vector graphics created programmatically inside a (La)TeX document. For questions about specific packages, use the appropriate tag, e.g. {tikz-pgf} or {pstricks}. For questions about inclusion of external graphic files, use {graphics} instead.
3,182
questions
0
votes
0
answers
18
views
Add projection to a 3D surface [closed]
The following code, even if a little dark, do partially what I expect. But I would add projection on (x,y) plan. I do not find how to do.
here is the code
import graph3;
import contour;
import grid3;
...
0
votes
0
answers
25
views
Tikz figure arrowstyle for Schematic energy band representation of a semiconductor
I'm trying to replicate the arrow style from one TikZ figure in another. Specifically, I want to change the arrows in the first image to match those in the second image.
\begin{figure}[H]
\centering
\...
4
votes
2
answers
101
views
TikZ: Draw Boxes in Field of Numbers
I want to draw a box around a field of random numbers:
I generated the number field using:
\documentclass{article}
\usepackage{xcolor}
\usepackage{tikz}
\begin{document}
\begin{tabular}{ c c c c c ...
0
votes
2
answers
135
views
diagonal argument in latex [duplicate]
How can I draw the following figure in latex please?
0
votes
1
answer
48
views
Tikz \draw angle and length leads to strange results [closed]
Why is the angle:length argument in draw leading to strange results after the second point?
\documentclass{article}
\include{tikz}
\begin{document}
\begin{tikzpicture}
\draw (0,0) -- (-45:1) --...
0
votes
1
answer
70
views
Replicating brownian distribution of particles
I need to replicate this picture
I need to replicate this drawing
As you can see, this is a representation of the colloidal particles distribution within a solvent. The concentration of particles ...
0
votes
0
answers
33
views
formmating my paper{the frame}
I hope you all right. so my problem is I want to make a frame for my paper like that:
if anyone know the full step-by-step Please, reply to me. And Thank You!
-1
votes
2
answers
83
views
9 term long exact sequence
I would like to draw 9 term long exact sequence (for example, Poitou--Tate sequence).
The goal of my image is the following.
The code so far is,
\documentclass[11pt,english]{smfart} \usepackage[OT2,...
0
votes
1
answer
44
views
make negative values of the function disappear below the y-axis
I want the negative values of the function, that is, those values which are below the $|u|_{L^\infty(B)}$ axis to disappear or take value zero. I have tried some options which have been asked in ...
1
vote
1
answer
132
views
how to draw tilted light cones?
I am having trouble in drawing tilted light cones on the second ellipse and in alignment of circle with its lines to get the slanted light cone. I have edited and updated this post 3 times and really ...
-1
votes
1
answer
74
views
Root System $C2$ in Latex/TikZ [closed]
In this question it is asked and shown how to draw the root diagram for $G_2$ using the program TikZ. How can one do the same for the other rank $2$ root systems: $A2, $B2$ and $C2$? For example her ...
2
votes
1
answer
72
views
How to Reproduce a Specific Economic Equilibrium Diagram with TikZ
I'm trying to reproduce a figure from a textbook that depicts international trade equilibria with sanctions using TikZ in LaTeX. Despite my efforts, the resulting figure from my code doesn't closely ...
1
vote
1
answer
59
views
Tikz: How to vertically align text across multiple nodes?
The title says it. In the example below, how can I make the text start from the top in all boxes? So node3, node1, node2 to be on the same top line, like node3 is right now? I have checked this, this, ...
1
vote
1
answer
93
views
Customizable Vertical Rule / Divider Like `\vrule` With Automatic Height
I need to create a customizable vertical rule (divider) that behaves like \vrule regarding height calculation within different environments, such as minipages, mdframes, arrays, and tcolorbox boxes.
...
1
vote
1
answer
48
views
semiconductor supply chain flowchart
I need to recreate a flowchart as faithfully as possible to the one depicted in the image. Unfortunately, my knowledge of LaTeX is still basic, and with the lines of code I have written, we are not ...
0
votes
0
answers
47
views
\draw arrows convergence
I want to make the tips of the arrow illustrating the enerhy gap level converge with each other with a little bit of space between them, just like I drew. Also, I would like the arrows to be thicker.
...
0
votes
0
answers
27
views
arrows convergence [duplicate]
I want to make the tips of the arrow next to 𝐸𝑔 converge with each other with a little bit of space between them. Also, I would like the arrows to be thicker.
These are the code lines I used:
\begin{...
4
votes
1
answer
210
views
Drawing waves using tikz in latex
I am trying to reproduce this figure :
But the best I can do is this output :
I would like to emphasize on the "wave" effect to have more place for putting clear labels...
Any tips to do ...
2
votes
1
answer
40
views
Understanding Spiral Function (potentially 3D) for tikz
I am trying to create a tikz diagramm that shows the precession movement of the LLG equation. Here is an example from wikipedia:
So far I have managed the spiral and centre arrow like this:
\begin{...
0
votes
0
answers
48
views
International trade equilibria with sanctions [duplicate]
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} ...
1
vote
2
answers
92
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 ...
2
votes
1
answer
32
views
draw command doesn't work in axis environment
I have tried to draw an ellipse in the axis environment, but whether I use axis cs or not, and even though there are no warnings, no ellipse is drawn.
This is a mwe:
\documentclass{standalone}
\...
0
votes
1
answer
76
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 ...
0
votes
1
answer
84
views
angle using pgfPlot
This does not work.
Why does \loesung block the \usetikzlibrary{babel}?
\loesung works well wiht pgfplots, but not here.
\documentclass[tikz,border=10pt]{standalone}
\usepackage[ngerman]{babel}
\...
3
votes
3
answers
285
views
Problem in block diagram
I have to make schematic flowchart of a fever model. here's what i want to create
Here's what i have tried so far
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{shapes....
1
vote
1
answer
74
views
Trying to replicate this Gantt chart
I want to replicate some Gantt charts shown in the book “Operating System Concepts” to demonstrate how CPU scheduling algorithms work, like this one:
I tried to replicate it using the pgfgantt ...
0
votes
1
answer
50
views
How to make a tensor diagram out of quiver code?
I need to make a string/tensor diagram (something like this) out of this diagram made with https://q.uiver.app/:
Here is the corresponding latex code:
\documentclass{article}
\usepackage{quiver}
...
2
votes
1
answer
42
views
How to remove "draw" for marks in "addplot" in tikz?
With tikz, when plot the points by \addplot, the draw=none doesn't work. What is the reason and how should I remove the black line around the point?
\documentclass{standalone}
\usepackage{pgfplots}
\...
0
votes
0
answers
64
views
Timeline diagram
Is there a latex package to generate diagrams like the following?
3
votes
2
answers
74
views
Long curly braces in quiver diagram
I made this diagram using https://q.uiver.app/
This is the corresponding Latex code:
\documentclass{article}
\usepackage{quiver}
\usepackage{amsmath}
\usepackage[utf8]{inputenc}
\begin{document}
\[...
0
votes
1
answer
75
views
The Theatre Ticket [closed]
\begin{tikzpicture}[scale=0.8]
\draw[->] (0,0) -- (10,0) node[right] {Quantity};
\draw[->] (0,0) -- (0,10) node[above] {Price};
\draw (2,8) -- (8,2) node[midway,below] {Demand Curve};
\draw (1,9)...
2
votes
2
answers
232
views
To draw a tetrahedron with its center
I need a tetrahedron with a its center and I would like to label all of them, but I do not know how to find a way for the center. I saw this To draw a labeled tetrahedron. For my case I need a ...
4
votes
1
answer
193
views
Lengthen tikz-cd Arrow Based on Label
I was wondering if it is possible to automatically lengthen a tikz-cd arrow based on the width of its label (perhaps with some padding)?
Typesetting, for example, the commutative diagram
\...
2
votes
2
answers
69
views
Write a macro to draw a double line with different color for each single line by tikzpicture
I am trying to draw a double line with different color by tikzpicture like this:
\begin{tikzpicture}
\draw[red] (0, 0 + .01) -- (1, 0 + .01);
\draw[blue] (0, 0 - .01) -- (1, 0 - .01);
\end{...
5
votes
2
answers
496
views
Calling TikZ code (speedometer) several time to plot the same graph multiple time
I wonder if there is a way to encapsulate the following tikz code in a function so that I can repeat that diagram several times on the same page. I wanted to be able to redraw the following chart ...
2
votes
1
answer
57
views
How do I connect my \optdetector and \optbox using the fibers/wires in the pst-optexp package?
I've spent today working with, and learning more about the pst-optexp package.
So far, I've managed to solve all the problems that I've encountered using it.
But the final part of the drawing is ...
0
votes
1
answer
40
views
Error with color name appearing when coloring a node in TikZ [closed]
I'm trying to draw a directed graph where each vertex and each arrow can be colored individually by a specific color. I have a code that mostly works:
\documentclass{article}
\usepackage[dvipsnames]{...
0
votes
0
answers
38
views
Asymptote: white gaps in surface
In a question and answer of mine, I provided some Asymptote code which compiled nicely.
Now, compiling the same code, I get a different output.
Here the code repeated, identical to the old answer:
\...
0
votes
0
answers
25
views
Trouble generating large graph with auto-pst-pdf
I try to use latex packages auto-pst-pdf and psfrag to produce dot graphs that require latex labels. It works well with small examples (10 ~ 20 nodes). However, when the number of nodes gets larger (...
5
votes
2
answers
277
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,...
3
votes
2
answers
193
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 ...
1
vote
0
answers
37
views
Connection starts from the bottom
I am using schemabloc package to draw some block diagram. Consider this minimal codes:
\documentclass[margin=10pt]{standalone}
\usepackage{schemabloc}
\begin{document}
\begin{tikzpicture}
\...
3
votes
1
answer
111
views
How to draw this sort of diagram: Line plot with vertical error indicator
I want to plot this diagram in LaTeX:
I need ranges in x and y at the same time. I want to show Global Warming Impact (GWI) over Net Present Value (NPV) for different scenarios of both indicators. ...
0
votes
0
answers
28
views
The method of drawing 3D shapes that stack each other allows the shapes to be rotated without overlapping lines [duplicate]
I'm trying to draw adjacent cubes like this:
When I rotate the shape I just drew, it gets distorted due to the order of drawing the cubes. The lines of the later shapes overlap the earlier ones. Is ...
1
vote
0
answers
67
views
How to draw 3D blocks stacked to grow on each other without caring about the order of drawing those blocks on Tikz
I'm trying to draw adjacent cube shapes. If I don't specify coordinates in order, the lines of the subsequent shape will overlay the previous ones as shown below. How can I handle this issue without ...
-1
votes
1
answer
258
views
Draw several cars with TikZ and and special style arrows
I need help to get the updated result below
I have drawn several cars with this code:
\documentclass[border=10pt]{standalone}
\usepackage{tikz}
\tikzset{
pics/my car/.style={
code={
...
3
votes
2
answers
257
views
Conceptual diagram in LaTeX
How can I write the following conceptual diagram in LaTeX?
I am not sure whether it is common to use TikZ for this purpose or if there are other methods available.
In the box □, I want to write some ...
5
votes
3
answers
955
views
recreate a figure with TikZ from an entrance exam
Could anyone help me recreate this image on tikz? I don't really know where to start
-3
votes
1
answer
98
views
how to draw a figure eight curve using tikz? [closed]
Just as the title, how to draw a figure eight curve using tikz ? Or more general, how to use tikz to draw a parametric curve with the given parametrization ? I knew how to draw basic things by tikz ...
1
vote
1
answer
46
views
Doubt about \pgfplotsinvokeforeach
I was using tikz and I had a problem using \draw[] inside a \foreach loop, so I found \pgfplotsinvokeforeach and I have doubts about how it works. This is an example
\documentclass{article}
\...