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
3
votes
1answer
136 views

How to draw a patatoid shape with tikz

Is there a way to draw irregular, closed (2D) shapes, i.e. patatoids, using tikz? Something like these: The ability to access the tangential and perpendicular directions to them at any given point, ...
0
votes
0answers
29 views

TikZ figures with math inside [closed]

I am trying to draw the below image using LatexDraw but was having difficulty rendering it. It would be really helpful to get pointers on how to use TikZ to generate the following figure with math and ...
4
votes
1answer
76 views

Forest environment inside forest node

Is it possible to have a forest environment inside a forest node? It does not work when I write the following: \begin{forest} [$a$ [$b$] [$\texttt{apply}\left( \begin{forest} ...
0
votes
1answer
65 views

How can I ameliorate this drawing to look more three dimensional?

I'm trying to draw the following diagram in TikZ : Here's my attempt to draw it : \documentclass[tikz,border=50mm]{standalone} \usetikzlibrary{calc} \usepackage{tikz-3dplot} \usetikzlibrary{3d} \...
1
vote
1answer
43 views

Cartesian coordinates with rectangles on axes and lines bounded elements

I need help in the pictures below. I can not draw the rounded rectangle upon the two axes, the line like U in the pictures on the left, and the line bounded the elements in the picture on the right. ...
2
votes
1answer
50 views

Embedding code snippet in a tikzpicture

I was trying to modify a latex snippet that gave this output: so that a small C code snippet is place above the 'Code A' and 'Code B' labels as in right +--------------->--------...
2
votes
1answer
126 views

How can I draw direct-address tables?

Is it possible to draw draw direct address tables? Original examples could be seen from Cormen's Introduction to Algorithms, Second Edition book page 223 Figure 11.1: What's in my mind is following ...
1
vote
1answer
66 views

Rightwards ,Downwards ,curved arrow using TIKZ

Please need suggestions to follow To Draw Rightwards ,Downwards ,curved arrow using TikZ My suggestion : {\tikzset{ basic/.style = {text width=2cm,font=\Huge, rectangle,align=center}, } ...
3
votes
2answers
181 views

How to draw on a curved 3D surface?

I'm trying to reproduce in LaTeX this image, hand-drawn with Mathcha. The thing is, I can't find anything online about how to draw on curved (smooth) 3d surfaces like this sphere. Technically, the ...
0
votes
1answer
79 views

Plot a curve using the tikz package

I am trying to plot the curve shown in the following picture below. Is there a someone who can help me to draw the picture using TikZ or PSTricks.
1
vote
2answers
58 views

Background color for tikzpicture

I learned from this answer to put a background color behind existing floats without having to change the content of these existing floats. \documentclass{article} \makeatletter \def\foo#1\...
0
votes
2answers
82 views

How to produce the arrow diagram given below in LATEX?

I must admit that I am new to latex and currently I am working on a research paper as for our UG project. I need the following diagram: (I hope my handwriting is clear!) I searched for few ways to ...
-3
votes
1answer
143 views

Draw figure on latex

Hi happy new year to everyone, please I need help to draw this figure on Latex
0
votes
1answer
53 views

cyclic text in latex with arrows and number on them [closed]

how can i write my cyclic text like this:
0
votes
1answer
33 views

Animating side-by-side figures in Beamer slide

Supposing there are three images that represent the three steps of a process, it will then be desirable to have them appear sequentially, side-by-side, and also in the same horizontal alignment. How ...
1
vote
1answer
64 views

Shifting draw command relative to node

I'm trying to do a block diagram using nodes in TikZ. I need to draw a speaker to symbolize that a signal is an audio signal. This is the code for the tikzpicture: \tikzstyle{block} = [draw, minimum ...
0
votes
2answers
107 views

How to draw a region of double integral in LaTex?

May you please help me to sketch the region of 0 < x < 1 and 1-x < y < 1-x^2.
0
votes
0answers
24 views

(Using Overleaf) transforming operators while transforming lines behave unexpectedly

I'm going through the official guide for learning tikz, and I'm currently trying to wrap my head around the transformation operators. What I learned from the web is that "rotate" rotates ...
3
votes
3answers
361 views

How to reproduce a diagram, is there any package that does it?

I would like to know if I can get some Help to reproduce the diagram below in beamer. Specifically, are there any great packages to do this sort of diagrams efficiently? thanks!
0
votes
0answers
35 views

How to make a spiral in coordinate system using Tikz [duplicate]

How do I generate a figure similar to this, but the value of 600° must be 1201°, and the spiral must take 3 revolutions (1201°/360°=3 revolutions).
4
votes
1answer
88 views

How to properly create figures (such as coordinate system) in Tikz in a timely manner?

I am new to LaTex and Tikz Package. I am trying to create figures in Tikz (which was recommended to me in my previous question). This is what I had made after days of tinkering. However, I made this ...
0
votes
3answers
58 views

How to draw a grid of node points with labels above

I am looking to make something similar to this, does anyone know how I could go about this? Quite new to TEX so apologies if it is quite trivial. Thanks
5
votes
1answer
106 views

Fixing alignment in a basic TikZ diagram

I had been trying to make a block diagram with TikZ. The diagram that I am aiming at looks like +-----------------+ I ---->----| H = f(a, b) |---------> o | ...
2
votes
1answer
56 views

Plot constellation

\documentclass[a4paper]{article} \usepackage[12pt]{extsizes} \usepackage{cmap} \usepackage[T2A]{fontenc} \usepackage[utf8]{inputenc} \usepackage[english,russian]{babel} \usepackage{caption} \...
2
votes
2answers
151 views

control systems block diagram on latex

I'm using an example I found online: https://texample.net/tikz/examples/control-system-principles/, to draw this diagram: so far I have: \documentclass{article} \usepackage{lmodern} \usepackage{...
0
votes
2answers
31 views

CPM AON Diagram lateX

I want to represent an AON(active on node) diagram on lateX. How can I achieve a circle with these sections ? lateX newbie here.
4
votes
2answers
144 views

Filling Grid Points Intersected by a Circle

I'm trying to make the image below. I want to fill in the grid points intersected by the circles. I'm able to make the grid and the arrows, the code for that is below. I'm completely lost on how to ...
0
votes
1answer
36 views

How to make the Diagram by using the tikzcd package? [duplicate]

I would like to ask you that how can I make this two following diagrams by using the tikzcd package, I tired hardly but I always got a mistake. Any Help will be greatly appreciated. Thank you so much.
6
votes
1answer
99 views

Energy diagram for an exothermic reaction in TikZ

I would like to draw an energy diagram with a maximum point. I started with this code: \documentclass[openany,twoside]{book} \usepackage{tikz} \begin{document} \begin{tikzpicture}[>=latex] \draw[&...
1
vote
1answer
39 views

Typing a commutative diagram using tikzcd [duplicate]

How do I type this commutative diagram in tikz-cd in overleaf? I have tried this \documentclass{amsart} \usepackage{latexsym,amsmath} \usepackage{mathtools} \usepackage{scalerel,stackengine} \...
1
vote
1answer
42 views

Quantikz gategroup not working

I am trying to re-write the Grover search algorithm using quantikz. I was trying to highlight the inner group of operations (basically the whole circuit except for first and last column) using \...
0
votes
0answers
17 views

Is there more documentation for tpx describing keyboard commands?

I am new to TpX, the GUI image editor for Latex. I am experimenting with Bezier curves. I found that one can "drop" the curve by pressing double-click. I have not been able to find this fact ...
2
votes
1answer
98 views

Recreate Figure

How can I recreate this figure? This is what I have so far: \documentclass{standalone} \usepackage{tikz} \begin{document} \begin{tikzpicture} \begin{scope}[xshift=-12cm] \draw[rounded corners=35pt](...
0
votes
0answers
26 views

How to put 2 figures on the same page? [duplicate]

I have the following figures which need to be on 1 page, but it creates a separate page for each figure, I don't know why? \begin{figure}[!htb]\centering \includegraphics[width=1\textwidth]{HIV-...
5
votes
1answer
45 views

MetaPost's undraw does not remove the whole border

I am running the example: # := 0.5cm; beginfig(1); path tr; tr := origin--(2#, 5#)--(8#, 5#)--(10#, 0#)--cycle; color cl; cl := 0.7(green + blue); pen p; p := pencircle scaled 2mm; filldraw tr ...
3
votes
1answer
300 views

Why is my tikz code not compiling in Overleaf

I am writing a latex code for a research article. My experience with latex is limited but I know the basics. My code looks like below. Inside the document, I am trying to include a tikz code for an ...
0
votes
0answers
22 views

Flipping the text labelled on an arrow and reducing arrow size?

Consider the MWE by Zarko: \documentclass[12pt, a4paper]{report} \usepackage{amsmath} \usepackage{tikz} \usetikzlibrary{arrows.meta, positioning, quotes} \begin{...
1
vote
1answer
52 views

Draw a specific number line with points and overbraces over points

I will need your help once more to draw the following number line using tikz: Is there anyone that could help me produce the above? Thanks in advance!
2
votes
2answers
88 views

Drawing A2xA2 Dynkin diagram with dynkin-diagrams

Edit: here is minimal working example \documentclass[12pt]{amsbook} \usepackage{dynkin-diagrams} \begin{document} Question: how do I produced a diagram which only keeps the square in this diagram ...
0
votes
1answer
58 views

Horizontal neural network architecture flow chart

I am trying to do draw the below image using LatexDraw but was having difficulty rendering it. It would be really helpful to get pointers on how to use TikZ to generate the following figure. Below is ...
0
votes
2answers
113 views

Improve sinewave drawings

The code: \begin{axis}[ xlabel=$x(t)$, ylabel=$t$, grid=major, xmin=-5, xmax=5, ymin=-2, ymax=2, domain=-5:5.5, samples=401] \addplot[blue, line width=1pt] {0+sin(180*x)}...
2
votes
1answer
69 views

Hewitt and Roberts map construction

does anyone know how to draw this map in latex ?
3
votes
2answers
224 views

Drawing the following diagram?

How would I draw the following diagram? Please can you put $\epsilon$ on the left rather than the right. The best I can do is: \begin{tikzpicture}[node distance=2cm, on grid] \tikzset{ mynode/....
1
vote
1answer
55 views

How to pass an algebraic expression with \pstAngleAOB to RotAngle?

I attempted to assign \i*\pstAngleAOB{A'}{T}{B'}/10 instead of manually-calculated value \i*16.626 to RotAngle as shown in the following example (see the commented rows). MWE \documentclass[pstricks,...
1
vote
1answer
67 views

Drawing a Large Vertically and Horizontally Symmetrical X to Cross Out Just the Contents of a Page

I am encountering some problems trying to draw a "big X" to give the effect of crossing out the contents of a single page. The top part of the X is essentially where I would like it (...
3
votes
3answers
198 views

How can I draw an infinitesimal portion of a surface?

I'm trying to draw the following figures using TikZ, and I've found some issues : Here's my attempt : \begin{tikzpicture} \def\a{2} \def\b{1} \def\h{6} \draw[->] (0,0)--(-\a,0) node[midway, ...
1
vote
2answers
62 views

Position of lines in TiKz

I've made a couple tessellations in TiKz, but I found that when using the \foreach command, starting positions of the lines are incorrect. I'm not sure why this is. \begin{figure}[H] \centering ...
1
vote
2answers
65 views

How to center the blocks with respect a line?

I'm making the following block diagram, but I don't know how to move or center the first column of 4 blocks, in a way there is the same number up and down respect the line of U MWE \documentclass{...
3
votes
2answers
61 views

MetaPost: does btex ... etex support any LaTeX command?

I am running a MetaPost sample as follows: beginfig(1); label.(btex the \emph{sum} is $\sum\limits_{n=1}^{+\infty}a_n$ etex, (3cm, 3cm)); endfig; end; by mpost main.mp. In the log there is a message !...
0
votes
2answers
54 views

Relation diagram

I am new to LaTex, and I don't know how to draw this relation Diagram. I have tried but it didn't come out, can you help me with it? Thank you so much.

1
2 3 4 5
66