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
1 vote
1 answer
33 views

How to produce a polygon whose edges are a given distance from the edges of a given polygon?

Following MWE draws a closed polygon. \documentclass{report} \usepackage{tikz} \begin{document} \begin{tikzpicture \draw (0,0) -- (0,1) -- (0.5, 1.5) -- (1,1) -- (1,0) -- cycle; \end{tikzpicture}...
user avatar
  • 2,778
0 votes
0 answers
8 views

How to return/realign/reunite a branch of a tree structure to the original parent lineage using the forest package?

I am drawing etymological trees using forest and I am wondering if I can reunite my forked off branches back with the main "line" somehow. Essentially the question could also be: Can one ...
user avatar
0 votes
1 answer
52 views

How to draw the lattice diagram in latex? [closed]

I want to draw the following lattice diagram in latex : I have tried to draw the lower diagram ABGFH with the following Tikz code: \[ \begin{tikzpicture}[node distance = 2cm, auto] \node (a) {A}; ...
user avatar
  • 527
0 votes
0 answers
23 views

Help with making a graf for grafteori in latex

In my math class I have to make the proof for prim's algorithme. I need to illustrate it with a graf/figure but don't know what package I can use. I need to make a figure like the one in the picture. ...
user avatar
0 votes
2 answers
45 views

Interface for diagrams and example [duplicate]

I would like to know if there are interactive graphic-oriented programs to construct diagrams of latex. For example, I know https://q.uiver.app/ There are others that do something similar? I am ...
user avatar
4 votes
3 answers
588 views

Draw the flat torus

I want to graph a curve on the flat torus, but not on the entire R^2 plane, but on the square [0,1]x[0,1]. For this, I have created a "do...while" with only the initial data of the rational ...
user avatar
  • 325
0 votes
1 answer
40 views

Displaying moderator analysis with 3 variables with LaTeX

i found how to do a mediation here : Displaying mediator analysis with LaTeX (TikZ-pfg maybe?) but i don't manage to transform it to a moderation like this : I'd like to keep the possibility to put ...
user avatar
7 votes
4 answers
512 views

What is the best way to draw an arbitrary number of lines in LaTeX?

I wish to produce a number of sections, each followed by a number of lines i. This is how I have done it using multido to repeat a custom command \drawline i times. \documentclass[12pt]{memoir} \...
user avatar
  • 73
2 votes
3 answers
93 views

Right triangle with angle

So my problem is simple, I just want to create a right triangle with angle 18. What I have so far is Here's my code: [asy] size(300); pair A = (0,0); path B = dir(18); path C = dir(90); draw(A--B--C--...
user avatar
0 votes
1 answer
32 views

Using xy-diagram to create an asymmetrical triangle

I would like to create an asymmetrical triangle like in this picture : Unfortunately so far it only works when I add another label in the top left corner like this: \documentclass{article} \usepackage[...
user avatar
  • 103
1 vote
1 answer
59 views

Why does my text along the line intersect nodes?

everyone! I am plotting some diagrams and encountered a problem. Here is my code \documentclass{article} \usepackage{tikz} \usetikzlibrary{positioning} \usetikzlibrary{arrows.meta, positioning, quotes,...
user avatar
1 vote
1 answer
59 views

Drawing not simply connected domain

Could someone help me drawing something like this picture? It should be a complex domain inside a curve C, not simply connected (with two curves inside C_1 and C_2) with arrows along the curve. My ...
user avatar
-3 votes
1 answer
46 views

drawing a transition state integrated in a matrix

I already know how to draw a transition state using TikZ but I need to draw something a little bit more complicated. Here is a picture of the diagram that I want to draw: Can somebody help me please ...
user avatar
8 votes
3 answers
433 views

Best method to animate a step by step state space diagram construction in TikZ

Introduction A long time ago I started learning how to use TikZ and I created some not very well made diagrams. One of those diagrams is a state space representation of linear dynamical systems. When ...
user avatar
  • 2,832
-1 votes
2 answers
49 views

move nodes manually in tikzpicture

I want to create the following diagram (sorry for the poor quality) I want to move the nodes in level 3 (Buchhaltung, Einkauf, Vertrieb etc.) and also in level 4 move slightly to the right as in the ...
user avatar
  • 387
0 votes
2 answers
93 views

Tree Diagram with Filesystem Branches

I am trying to draw this tree diagram exactly: I edited my code and it looks better, but still needs more work. Here is the code and result: \usetikzlibrary {trees} \tikz [font=\footnotesize,grow=...
user avatar
  • 17
0 votes
1 answer
42 views

Drawing a Multi-Column Table with Latex

I am trying to draw exactly the same table below (Please pay attention to the vertical text at the very left): How can implement such a thing in LaTeX? Thanks!
user avatar
  • 17
0 votes
1 answer
47 views

How to write graphics using subfig package or other?

Can somebody help me with these two linear graphics? At least some hints, how to start. I would be very greatful.
user avatar
4 votes
1 answer
81 views

Complex Flowchart with Boxes within a Dotted Box using TikZ

I'm trying to produce the following flowchart with adding multiple dotted backgrounds. I know the basics for creating a simple flowchart using Tikz, however, I'd like to know how I can create a ...
user avatar
  • 147
0 votes
1 answer
49 views

How can I draw a regular polygon using Ipe?

Is there a way to easily draw a regular polygon using Ipe? The top toolbar has an icon for a polygon but not for a regular one, and manually aligning the vertices is a pain. The documentation doesn't ...
user avatar
  • 101
2 votes
1 answer
82 views

Scale diagram in tikz

I've been trying to include the diagram in the picture below in Latex, and I could achieve the result in the picture using the tabular environment. I was wondering, however, whether the same result ...
user avatar
  • 41
1 vote
2 answers
53 views

How to put mini triangles in a larger triangle

How would I generate a triangle like the one in the image below: Also, how can I reduce the number of triangles inside as well as increase the number inside? I have conducted numerous searches on the ...
user avatar
  • 145
0 votes
1 answer
34 views

Trouble drawing an ellipse around two elements of a forest environment

I have seen some questions about the same topic in the forum, but I've been unable to reproduce the same output in my code, so I would start by saying sorry for posting similar questions but here we ...
user avatar
  • 265
4 votes
1 answer
87 views

Drawing a structure diagram with TikZ chains

I want to draw a structure diagram with TiKZ and the chains library. See example: I'm missing to find a solution for the middle part. There are three elements with text inside. Each element is 30% of ...
user avatar
  • 1,990
7 votes
3 answers
338 views

Drawing perpendicular lines to a curved path in tikz-pgf without decorations [duplicate]

I'm trying to make a image like this: Here's how I'm CURRENTLY doing it: \begin{tikzpicture} \draw[color=black, line width=2pt, -latex] (-3,2.5) -- (0, 2.5) +(0,\rad) coordinate (center) (0,2.5) ...
user avatar
  • 73
0 votes
0 answers
31 views

How to draw hexagonal lattice with links and string using latex? [duplicate]

I am working on writing a report regarding String-net model in many-body physics and facing a challenge of drawing hexagonal lattice like the picture posted. Can anyone give me how do I manage to do ...
user avatar
2 votes
1 answer
77 views

How can I create a Gantt / Sankey diagram combination?

Is there a package that would help me create a diagram such as the one below? The example diagram can be found in this PATHOCOM project proposal. It appears to be a combination of a Gantt and Sankey ...
user avatar
0 votes
0 answers
40 views

Help with Graphs in LaTeX

do you know how to create these graphics? I am new to LaTeX, so I need some help.
user avatar
  • 1
0 votes
1 answer
36 views

How can I accive incremental positioning of an \draw within a pgfplot (groupplot) [duplicate]

I've been working with Tikz for 2 days now and stumbled across the following problem while creating a graphic and can't quite explain what I'm doing wrong. I want to add an arrow or path to the ...
user avatar
1 vote
1 answer
86 views

How to combine the \circled command on one-digit numbers and the \newcircled commands on two-digit numbers?

First a MWE and its output are as follows. \documentclass{article} \usepackage{tikz} %%%define circled command%%%%%%%%%%%%%% \newcommand*\circled[1]{% \tikz[baseline=(char.base)]\node[shape=circle,...
user avatar
  • 2,747
0 votes
1 answer
31 views

How to plot a chart with bars

I would like to know how I could plot a chart of this type in latex: Maybe tikz would be helpful in this case? What would this kind of code look like?
user avatar
7 votes
3 answers
210 views

diagram composing function

I'm trying to make a typical composing-function diagram and I've saw a few posts, but I cannot make it yet as I'd like. In this picture I show what I attempt to make But the most I got is As you can ...
user avatar
  • 85
2 votes
3 answers
116 views

How to draw a LaTeX diagram to represent a cascade connection of two blocks? [closed]

As I am new to drawing diagrams using LaTeX, I request help from the LaTeX experts here in answering this question : How to draw a LaTeX diagram to represent a cascade connection of two blocks as in ...
user avatar
0 votes
0 answers
29 views

Numbering diagrams in a proof

I am writing a paper and am having trouble numbering my diagrams. A good example is the situation: The Riemann Zeta function is defined as \[\zeta(s) = \sum_{n=1}^{\infty} n^{-s}\] However, I also ...
user avatar
2 votes
1 answer
39 views

Draw a circle in a syntactic tree (tikzpicture)

How could I draw a circle that contains both phi and T? \begin{tikzpicture}[scale=0.6] \tikzset{sibling distance=5em} \node (top) {} child[blue] {node {$\phi$}} child [blue] {node {} child [blue]{...
user avatar
  • 33
0 votes
1 answer
54 views

Diagram with loops in tikzcd

I would like to know how we can draw this diagram in tikzcd Those are not dotted arrows but simple ones. You can add how we can draw an isolated point with an arrow to itself. Many thanks in advance.
user avatar
-4 votes
1 answer
93 views

Which is the easiest way to draw mechanical diagrams in LaTeX?

I want to draw the following figure on my document. I tried using tikzpicture. The code snippet used to draw this figure is provided as an image. I am sorry for the inconvenience, my pc doesn't have ...
user avatar
  • 1
-1 votes
2 answers
106 views

How to create diagrams in latex [closed]

I want to make these two diagrams separately. I tried inserting these two images but they don't look like nice. How can I create them by my own. I appreciate any help. Thanks in advance.
user avatar
0 votes
1 answer
67 views

How to draw an overhanging beam in LaTeX? [closed]

This image is what I want to draw. Is it possible to draw it in LaTeX itself or should I draw it in some other app and import it? I have tried Tikz, I couldn't quite get it right.
user avatar
1 vote
2 answers
69 views

Drawing points with sqrt values in a graph on tikz

I am struggling with drawing the following set of coordinates: \begin{tikzpicture} \coordinate (a1) at (0,(1+{sqrt(\5)})^{2}/2); \coordinate (a2) at (0,2); \coordinate (a3) at (0,1); \...
user avatar
0 votes
0 answers
58 views

Drawing ribbon graphs in latex

I am writing some notes about ribbon categories and ribbon graphs and I would need to reproduce some diagrams like the ones on the figures. Does anyone know an efficient way to do it ? I have no idea ...
user avatar
  • 101
1 vote
1 answer
51 views

Creating figure to represent ordinal numbers using tikzpicture

I am working on overleaf and I want to make a diagram to represent the ordinal numbers (a mathematical term) in the following way... I am using tikzpicture to make this diagram. My attempt is as ...
user avatar
6 votes
2 answers
226 views

How can I draw hashed lines on a bended line?

I'm trying to draw the following figure in TikZ : But I've been facing problems on how I can draw the hashed lines on my bended line, and how to eliminate a part of some circle : \documentclass[tikz,...
user avatar
  • 1,038
0 votes
1 answer
83 views

How to recreate the following signs? [closed]

Gidday, I work as a professional dog trainer and I am currently working on some new courses. I write all of my documents, e.g. lessons plans, reports, ... using LaTeX, but my knowledge of TikZ is very ...
user avatar
  • 711
1 vote
1 answer
46 views

How do you code the following logic gate circuits?

How do you code the following logic gate diagrams? My current attempts: \begin{circuitikz} %Top OR Gate \draw (0,-1) node[label = left:$A$] {} to [short] ...
user avatar
3 votes
1 answer
96 views

draw a relationship between gradient vector and derivative

how can I draw this? I was trying that but it doesn't work because I need the dotted lines and need points $a, \nabla f(a)$ \documentclass{article} \usepackage[utf8]{inputenc} % accents \usepackage{...
user avatar
  • 252
2 votes
3 answers
236 views

Heron's Problem draw

I'm trying to draw the following picture about Heron's Problem I don't know how to draw angles and dotted lines. Here is my incomplete code. \documentclass{standalone} \usepackage[T1]{fontenc} \...
user avatar
  • 252
0 votes
3 answers
104 views

How to draw a Circle with a center and a radius

How can I draw these pictures in LaTeX. I only know draw a circle but I need the point P in the center and a radius
user avatar
  • 252
1 vote
1 answer
71 views

Follow-up: Drawing (a partial) game tree of Tic-Tac-Toe

Follow up question to the previous question on drawing Tic-Tac-Toe boards. This question is similar to this one but since SebGlav created such an understandable and easily customizable figure others ...
user avatar
  • 57
2 votes
1 answer
86 views

Creating Tic-Tac-Toe boards with LaTeX/TikZ without tables

I am currently writing my thesis and need to include figures of tic-tac-toe/noughts and crosses games. Up until now I created my figures using PowerPoint (see image 1, and 2). I looked up similar ...
user avatar
  • 57

1
2 3 4 5
67