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.

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

Draw positional numeral system

Is it possible to create the following graphics in LaTeX? Many thanks in advance for your help!
  • 439
-2 votes
0 answers
56 views

Draw circuit op-amp with current direction [closed]

Is it possible to draw this diagram in LaTex (with circuititkz) with arrows indicating the current direction at the nodes? I've been struggling with it for quite a time now.
2 votes
3 answers
143 views

tikz-cd quiver code not working

The quiver gives me the following code \[\begin{tikzcd}[ampersand replacement=\&,row sep=scriptsize] {\mathbb{Z}_2 \text{ A}} \&\& {\text{A} \\ \text{B}} \\ \\ {\mathbb{Z}_4 \...
  • 543
-1 votes
1 answer
72 views

The brachistochrone

Can someone help me program this with tikz?, I've been trying for days without result
0 votes
1 answer
21 views

How to hide coordinates on the x and y axis from graphs plotted by pst-plot

The following code taken from this answer \documentclass[border=0bp]{standalone} \usepackage{pst-plot} \begin{document} \psset{unit=1.5cm} \begin{pspicture}[showgrid=false](-2.75,-0.75)(4,2) \...
  • 259
3 votes
3 answers
192 views

MetaFun: Align "bounding box" of strings of different length

I'm currently getting into ConTeXt, mainly to experiment with MetaFun. I want to get a feeling for how usable it would be to generate some sophisticated diagrams I have in mind. I have a hard time to ...
  • 155
3 votes
1 answer
45 views

How do I plot 3 sets of data and draw the bell curve variance over each point?

I have 3 sets of data. My first graph will graph all 3 of them. I then want my second graph to compute the mean of each set of Y values, draw the graph and then display a bell curve over each point ...
  • 441
4 votes
2 answers
260 views

Mapping Diagram with Parallelograms

I'd like to generate a tikz figure similar to Figure 2 on page 96 of Lay et al.'s Linear Algebra and its Applications, but don't possess the expertise to do so nor have the time to dig through the ...
0 votes
1 answer
27 views

How do I center an arrow vertically

I want to put an arrow vertically centered to show a transition from a state top another. What I have is \begin{center} \includegraphics[scale=0.3]{img/1.1.PNG}$\longrightarrow$\includegraphics[scale=...
10 votes
5 answers
1k views

How can I make a nicely aligned diagram like this in LaTeX?

It is a pretty simple diagram, basically the result I'm trying to get is something like this: Where the three equations are aligned to the left. I've tried using TikZ and Tikz-cd, but this is the ...
1 vote
2 answers
41 views

Drawing in Tikz with conditional options on floats

I am currently trying to create an image of randomly distributed points in a unit-square. I would like to draw these points in a given color if they are inside the inscribed circle, or in another, ...
  • 113
0 votes
0 answers
19 views

How to add vertice names for the adjacency matrices? [duplicate]

I decided to combine two adjacency matrices into one in order to save space. However, how can I add the vertex names to the matrix? Also please suggest if you have any idea to improve or better way ...
  • 511
0 votes
1 answer
47 views

Tikz \draw with controls with limited range

How can I limit the drawing of a curve defined with \draw .. controls .. to a specific range? Example: \draw is defined up till x=9, but I would like to stop the \draw for x>=8 \draw[->] (3,...
  • 1
3 votes
1 answer
103 views

Custom diagram design using Latex?

This question is a little left-of-field. I'm looking to generate a custom figure using data of the form: Source Type Target Type Time S-A T-B 1.52 S-C T-C 11.18 S-B T-A 21.31 S-D T-A 12.63 S-C T-...
1 vote
1 answer
112 views

How to Produce a Replica of This Chapter Decoration with Latex

Can someone either produce, or tell me how (the steps involved) I may produce the following book chapter decoration with Latex (preferably, pdflatex)? I know there exist external sources that allow ...
0 votes
0 answers
37 views

Best diagram package to draw similar diagrams [duplicate]

I am looking for a way to draw a diagram similar to the figure below which can be used with latex, and look elegant.
1 vote
0 answers
23 views

Forest: vertical space on folder grow

I want to calc "on the fly" the vertical space the nodes must have to avoid overlaping and it'd be nice to align them too, currently I've a style named arrowed folder that it's almost a copy ...
0 votes
1 answer
54 views

Doing a really simple circular "graph" in latex

I know there are already answers on TeX SE on how to draw a circular graph in latex. Even thought, I wasn't able to adapt these answers into my simple case , so if anyone could help me with this one I'...
  • 337
11 votes
2 answers
484 views

drawing a decorated honeycomb lattice

Is there an easy way to draw the decorated honeycomb as attached here in tikz? My attempt is as follows but this method didn't let me fill up the hexagons with colors. Also, it is currently a bit ...
  • 543
14 votes
7 answers
706 views

Drawing the boundary of a generic region in tikz

I need to draw the border of a generic region in tikz. A code with this idea is presented below. \documentclass{standalone} \usepackage[utf8]{inputenc} \usepackage{tikz} \usepackage{color,xcolor} \...
0 votes
1 answer
56 views

How do I get a horizontal flowchart as drawn by hand below?

I'd like to draw a horizontal flowchart like the one below in TikZ: My professional skills have led me to this one flowchart that doesn't look like the required one. \documentclass[tikz, margin=3mm]{...
  • 21
3 votes
1 answer
84 views

Help for improving my network

I have written the following code: \documentclass{article} \usepackage{tikz} \usetikzlibrary{arrows.meta,decorations.pathmorphing,backgrounds,positioning,fit,petri} \begin{document} \begin{...
user avatar
0 votes
1 answer
60 views

How to draw graph in Latex [closed]

Could you please help me to draw this figure in Latex Thank you so much, Best
  • 1
0 votes
2 answers
58 views

How to include multiple lines of text/math within nodes of Hidden Markov Model?

I was wondering if it is possible to replicate the following figure of an HMM in latex. If so, which alteration to my code below should be used? Any help would be much appreciated. Note that the ...
  • 13
0 votes
1 answer
50 views

How to draw the two parallel row diagrams in tikz?

I have drawn the folloing diagram: Using the folloing tikz source code: \[ \begin{array}{ccccccc} A& \subseteq& B& \subseteq&...
  • 547
0 votes
0 answers
45 views

Complex geometry of a 3-dimensional body

Is it possible to draw such a picture in LaTeX?
  • 165
0 votes
1 answer
71 views

TikZ drawing over plot

I would like to draw the red line over the plotted points. What am I doing wrong? Here is the code: \begin{figure}[!ht] \centering\ \begin{tikzpicture} \begin{axis}[ ymin=0, ymax=4....
  • 67
0 votes
0 answers
41 views

Wrapfigure not working

I can't figure out why the first code shows the picture in a totally different place, while the second one works just fine, any clue? The one not working: \begin{wrapfigure}{r}{0.5\textwidth} \...
3 votes
2 answers
59 views

TikzCD decorated arrows (wavy) and to path produces nightmarish results

Based off of Wavy arrows in xy-pic and the snake lemma code in https://ctan.math.washington.edu/tex-archive/graphics/pgf/contrib/tikz-cd/tikz-cd-doc.pdf % minimal working example (MWE) \documentclass{...
  • 593
-3 votes
3 answers
82 views

How to draw equal-angle triangle?

I want to draw an equal-angle triangle (like the one below) but with small sentences instead of A, B, C Thank you
  • 95
0 votes
1 answer
79 views

How to draw loop with tikz [closed]

How can I draw loop? I want to draw this graph with tikz, but I can't.
  • 111
0 votes
1 answer
39 views

Use a custom figure as a node shape

There are two similar questions to mine: How to use a tikzpicture as a node shape Use a custom shape as a "building block" But they both attempt to draw the node using tikz and I want to ...
0 votes
1 answer
29 views

Plot Probability Density Diagram of Accuracy and Precision with Gaussian Distributions in Tikz

I'm trying to generate a diagram like this with Tikz: I just ability create such an image, but it is not desirable. Thank you if you can help me. \documentclass[border=3pt,tikz]{standalone} %[...
  • 3
3 votes
1 answer
47 views

Fill parts of a shape

Could you please tell me how to fill the highlighted parts of the shape with fill=gray!60? Thank you as always. \documentclass[]{article} \usepackage[margin=0.5in]{geometry} \usepackage{pgfplots} \...
  • 1,962
4 votes
1 answer
95 views

TikZ-Feynman line with mixed styles

I'm trying to draw Feynman diagrams like the ones in this article with tikz-feynman: I don't know how to make these edges that switch from straight to wiggly. I suppose I could break them up as two ...
  • 143
5 votes
1 answer
246 views

Looking for how to draw that diagram in TikZ

I'm looking to create something like this in TikZ environment. Im kind of stuck with the relations to each other: it seems weird, positioning one below the other, when unsure if all the block will be ...
  • 53
0 votes
1 answer
102 views

How to draw three-phase transformers like the one in the picture?

How to draw three-phase transformers like the one in the picture? I managed at most to make this code, which produces: \documentclass{article} \usepackage{circuitikz} \usepackage{...
0 votes
1 answer
50 views

Drawing lines with node and text

Please can someone help me draw this in latex? My attempt is below \begin{tikzpicture}[xscale=2] \draw [thick, draw=black, *-*] (0,0) -- (7,0); \node[circle,fill=black,inner sep=0pt,minimum size=...
-3 votes
2 answers
80 views

Need help with making a diagram

Please help me with making the following diagram for my presentation: Please help. Thank you very much.
0 votes
0 answers
52 views

Specifying an Arc in Tikz

I'm trying to learn to use Tikz via the tutorial here. Section 2.4 (Curved Path Construction) says that we draw a curve as follows: The next thing Karl wants to do is to draw the circle. For this, ...
  • 361
0 votes
1 answer
66 views

How to draw diagrams?

I need to learn how to draw diagrams. Could you please help me from the screenshot below... ...and this MWE? \documentclass[a4paper,12pt]{article} \usepackage[english]{babel} \usepackage{graphicx} \...
  • 1,393
-1 votes
2 answers
110 views

Please can someone help me draw this in a latex. I'm not good in tikz [closed]

Please can someone help me draw this diagram
0 votes
1 answer
51 views

Define a pic and use it as node

My purpose is draw an horizontal cylinder. I defined the left and the right base with /.pic . Now I would link these bases with \draw, using the bases anchor point .north and .south. Something goes ...
4 votes
3 answers
243 views

how to draw a regular hexagon with some additional lines

I'm writing because I need to draw a regular hexagon with a few more lines as in the picture attached. I know how to draw a hexagon, here is my code \documentclass[border=2mm]{standalone} \usepackage{...
  • 159
0 votes
1 answer
62 views

Cycle diagram of a Symmetric group in LaTex

I have these permutations And I want to draw in LaTex something like this for the first one: and this for the second one: How can I do this?
1 vote
2 answers
59 views

How can i add the lines from the rectangle to the lines on this diagram?

I want to finish this diagram but I don't know an efficient way to add three lines from each rectangle to the lines, to look like this: And this is what I've got so far and the code i used for it, ...
  • 127
0 votes
1 answer
37 views

Help with a tikz picture to create blocks

I am trying to an illustration of the usual place value cubes, so far I have: \documentclass[tikz,border=5mm]{standalone} \newcounter{x} \newlength{\x} \setlength{\x}{.8cm} \newcounter{y} \...
  • 547
1 vote
1 answer
124 views

Save function inside macro for the function’s derivative

My intent is to plot the first derivative of a function, following this approach: f'(x) = (f(x + dx) - f(x))/dx. Mine is a bit of a long function, so I would like to know if it is possible to save it ...
0 votes
1 answer
76 views

How can I graph π(x) (prime function) in Latex?

I wanted to graph π(x) in latex and I found this code \documentclass[tikz,ignorerest=false, border=12pt]{standalone} \usepackage{pgfplots} \pgfplotsset{compat=1.12}% 1.13 seems to be very recent % ...
  • 1
0 votes
2 answers
56 views

Change the background color of Tikz nodes?

I'm using the fit option to draw a rectangle that fits a few nodes but when I add the fill option to change the color of this rectangle the nodes inside disappear. \documentclass[border=10pt]{...
  • 87

1
2 3 4 5
57