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

shaped node in tree

I want to create this tree that each node have its own shape. for example each nodes be circle and leaves be square. this code perfectly work but I want to use tree in my code. \begin{tikzpicture} ...
Erfan Riahi's user avatar
1 vote
1 answer
51 views

Draw overlapping groups using forest or Tikz

How would I go about drawing something that looks like this (please excuse the extremely lousy Paint image) I am sorry I cannot provide any exact code, but I am basically clueless as to how I'd do ...
José P. Costa's user avatar
2 votes
1 answer
33 views

How do I create a horizontal "strikeout" of a symbol in the first row of a tikzcd diagram?

Suppose we have the following code: \documentclass{article} \usepackage{tikz} \usetikzlibrary{cd} \makeatletter \tikzcdset{diagrams={% this will allow math mode to be deselected /tikz/matrix of ...
Arbuja's user avatar
  • 231
0 votes
0 answers
52 views

How do you get such a diagram in LaTex? [closed]

How do you get such a diagram in LaTex?
look997's user avatar
0 votes
2 answers
58 views

positioning diagrams inside tables?

Could I ask if this is the best way to position diagrams? or should I be using a different method other than in a table? \documentclass{book} \usepackage{blindtext} \usepackage{tikz} \usepackage{tkz-...
Paul A's user avatar
  • 707
2 votes
2 answers
86 views

Arrow with three right angles (as to-path)

Can anyone please help me how to draw the arrow in red? \documentclass{article} \pagestyle{empty} % do not print page number \usepackage{tikz} \usetikzlibrary{shapes.geometric, arrows} \pagecolor{...
Ricardo Barbosa's user avatar
0 votes
2 answers
132 views

Strategy for converting / adapting ASCII-art diagrams into tikz?

Despite my having used (La)TeX quite a bit over the years, I have never produced diagrams using tikz. It's always been LO Draw, or Inkscape, or LO Calc / MS Excel charts, for me. Now, I am in the ...
einpoklum's user avatar
  • 12.2k
3 votes
2 answers
515 views

How to draw this picture using Tikz (a large diagram with many elements)

How to draw this picture using Tikz? Here what I've acheived to do. I can’t align blocks to the right. solved How to make crossed out circles? solved How to make curved lines in a drawing? MWE: \...
Youra_P's user avatar
  • 1,010
1 vote
1 answer
29 views

A diagram in xymatrix, and a problem with arrows

In the code below, the arrows from left to right and up and down get mixed up and look like a single arrow. How can I separate them so that I have one arrow> pointing up and one pointing down, and ...
Jake Wetlock's user avatar
0 votes
3 answers
105 views

Drawing cubes with crossing overs

I would like to draw the following picture with the dashed arrows replaced by the crossing overs in xymatrix or in tikz. I drew this one tikz but somehow unable to do the crossing overs. Any help will ...
math's user avatar
  • 179
1 vote
0 answers
90 views

Ellipsoid method illustration

I am interested in a Latex drawing corresponding to the following: This is a figure describing the idea behind the ellipsoid method, a convex optimization algorithm. It is Figure 8.1 in Introduction ...
Francesco Squillari's user avatar
0 votes
1 answer
125 views

Why do lines drawn in TikZ add space equal to their width into the picture and how can this be prevented?

Related: Horizontal space before TikZ picture Consider the following MWE \documentclass{article} \usepackage{tikz} \usepackage[showframe]{geometry} \begin{document} \noindent \begin{tikzpicture} \...
cfr's user avatar
  • 193k
1 vote
1 answer
58 views

pgfplot fillbetween

I need a plot beween f, t and the x-axis, but do not know how and could not find a solution here. Here is a wrong solution \documentclass{article} \usepackage{pgfplots} \usepgfplotslibrary{...
Patrick's user avatar
  • 77
4 votes
3 answers
496 views

Drawing chemistry rings with charges on them

I'm new to using chemfig. I'm trying to create chemistry handouts and I want to draw the tropylium cation: However I am unable to get the charge to come out of the ring. Any help would be appreciated....
Deeksha Chitale's user avatar
0 votes
1 answer
35 views

Levelling the bases of Feynman diagrams

I am drawing Feynman diagrams using tikz-feynman. When I am drawing \documentclass{article} \usepackage{graphicx} % Required for inserting images \title{feynds} \author{ts342139 } \date{October 2023} ...
Tanmoy Pati's user avatar
0 votes
1 answer
27 views

Pgfgantt: grid lines and title separators according to title tier

I am trying to organize a gantt chart according to year and quarter. I am unable to format the grid and title-table lines. I am unable have the horizontal lines within the title section to be ...
Ash's user avatar
  • 1
2 votes
0 answers
57 views

Human body medical figure library/package?

I recently went under a back surgery for a (double) slipped disk, S1/L5 which was operated, and as the second one (L5/L4) isn't so bad, it didn't needed any surgical attention so far; so I was ...
Fr3d's user avatar
  • 141
0 votes
3 answers
114 views

A proper plot of this function with TikZ

Here I am to ask for your help again. I need to plot with TikZ the function $\frac{1}{x+2}$, highlighting the vertical asymptote at $x = -2$. I would like to draw the vertical asymptote in dashed ...
Henry's user avatar
  • 368
2 votes
1 answer
148 views

An angle is not being calculated correctly in TikZ

In the following diagram, the measure of angle A is about 53 degrees. Precisely, it is 180 - arccos(-3/5). I have a circular arc with its vertex at A drawn with the following command. \draw[name path=...
user74973's user avatar
  • 4,061
1 vote
1 answer
40 views

Shifted stacked ybar plot

When using a stacked ybar plot, each stacked column begins at y=0 . I would like to vertically shift the stacked column of Data B, so that its lower end aligns horizontally with the upper end of the ...
Matthias's user avatar
20 votes
3 answers
2k views

Zassenhaus's Butterfly Lemma

I am preparing lecture notes for an abstract algebra course I am teaching. I would like to draw the following diagram, which is from Zassenhaus's Butterfly lemma. $K$ in the diagram is the group $(G'\...
Aravind Gundakaram's user avatar
5 votes
2 answers
362 views

How can I connect all nodes with lines by using TikZ?

I'm working on the figure below, trying to connect all the vertices with multiple lines Is it possible to number the vertices from 1 to 60 and connect them all together? My attempts \begin{figure}[h] ...
Emad kareem's user avatar
0 votes
0 answers
27 views

Arrows in Category Theory in Context (E. Riehl)

I've noticed that the arrows used by Emily Riehl in her book Category Theory in Context are a little bit different from the traditional arrows displayed (using Times fonts with MTPro2). This is the ...
Esteban Saldarriaga's user avatar
-1 votes
1 answer
115 views

Need help creating specific Tikz picture [closed]

Trying to recreate the following drawings as physics diagrams using Tikz: I really just need help figuring out how to do the two labeled parts: i) How to make this closed loop with arrows inside it ...
Oh Fiveight's user avatar
7 votes
4 answers
479 views

A specific design for a list mixed with a tree diagram with vertical propagation

As I am not proficient with Tikz and despite my efforts I did not find a suitable package, I would like to ask for an advice or alternatively for a solution concerning the following subject. The aim ...
Richard's user avatar
  • 152
1 vote
1 answer
54 views

Tikz - Draw multiple same sized rectangles on a4paper

I want to create an a4paper with 24 same sized rectangles with numbers in it. This is what I've acquired for now: \documentclass{article} \usepackage{tikz} ...
accentWool's user avatar
1 vote
1 answer
105 views

Feynman Diagrams inside circles

I'm trying to use tikz-feynman to draw Feynman diagrams encased in circles. I need the entire diagram to be inside a circle, with the lines touching the circle. This is necessary because these are ...
Green05's user avatar
  • 131
1 vote
1 answer
51 views

Latex tree diagrams with common children

I have the following tree diagram (packages specified in the heading). \usepackage{tikz} \usetikzlibrary{trees} \usepackage{tikz-cd} % Set the overall layout of the tree \tikzstyle{level 1}=[level ...
Martingalo's user avatar
0 votes
0 answers
26 views

From chemfig to .mol file

Yes, I know this package can generate structure from .mol and SMILES files. I'd like to know: is it possible to follow the reverse path, i.e. once the structure has been drawn with chemfig, generate ...
user3204810's user avatar
  • 1,395
0 votes
1 answer
54 views

How to draw stream lines of water impinging against an obstacle

Motivation I'm taking a fluid mechanics course and I'm creating slides that contain images of real-life examples of fluids. I would draw stream lines of water impinging against an obstacle (for ...
Math Attack's user avatar
1 vote
2 answers
66 views

Drawing a longer line with Tikz

Using tikz, I've drawn the following line: \begin{tikzpicture} % draw horizontal line \draw (0,0) -- (10,0); \end{tikzpicture} yet it covers only slightly more than half the page. How can I make ...
Sam's user avatar
  • 113
3 votes
2 answers
71 views

Alignment and symmetry in a block diagram

I'm trying to draw simple block diagram in via: \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture}[-,auto,node distance=1.25cm] \tikzstyle{point}=[coordinate] \...
borg's user avatar
  • 257
1 vote
1 answer
39 views

How to draw edge between points in two different tikz-pictures

how can I draw an edge between point a (=O) in the first picture and d (=1) in the second picture: \usepackage {tikz} \usetikzlibrary {shapes,arrows,positioning} \begin {tikzpicture} [-latex, node ...
Rustam Gumnam's user avatar
2 votes
0 answers
59 views

Penrose-Carter Diagrams with Tikz

I am trying to draw the Penrose diagram for the motion of a particle in a Schwartzschild background. I was able to draw the diagram thansk to This article by Izaak Neutelings The code is the ...
LolloBoldo's user avatar
3 votes
2 answers
208 views

How to draw a block graph (many complete subgraphs joined together)

I am wanting to draw a block graph. A block graph (or clique tree) is a type of graph in which every biconnected component (block) is a clique. A clique is a subset of vertices (nodes) of a graph such ...
Emily's user avatar
  • 125
3 votes
2 answers
158 views

Starting a tikz loop at the margin. How do I properly specify the starting position?

I am attempting to encourage the reader to take notes in my book by making extra-wide margins and drawing lines down the outer edge. But I can't seem to get the lines to start in the right place. ...
flazzo's user avatar
  • 133
5 votes
2 answers
178 views

Drawing planar mechanisms in tikz

I am trying to improve this picture made in Word by using Tikz. I have made some advancements but there are some questions that kept me stuck. Regarding the angles, I need to draw a line at some ...
Frank R.'s user avatar
0 votes
1 answer
59 views

How to draw dots in a picture in tikz?

I want to draw the following graph: I have written the following code \documentclass[10pt,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{amsmath} \usepackage{...
Olivia's user avatar
  • 145
3 votes
3 answers
294 views

Draw a free-form shape and mark it with a curved line

I am trying to draw the shape shown in the image below: After several attempts, I reached a good result \documentclass[border=8mm]{standalone} \usepackage{tikz} \begin{document} \begin{tikzpicture}[...
Emad kareem's user avatar
1 vote
1 answer
37 views

Making overlap in TikZ figure

In this drawing there are two ellipses: a blue one, above the hexagon, and an orange one, below the hexagon. How can I make the hexagon shape hide the orange ellipse part underneath? \documentclass[...
user3204810's user avatar
  • 1,395
-3 votes
2 answers
126 views

Drawing complex contours on Tikz

Question I want to include three contours in a paper I'm currently writing. Unfortunately I almost have no experience with Tikz and the deadline is soon. I would really appreciate a clean code for ...
vitamin d's user avatar
  • 119
0 votes
1 answer
99 views

Diagrams for partial-ordered sets

The diagram below shows the relations between the subsets of a set with three elements {x,y,z}. How can one in Tikz draw such diagrams?
Quantum Fields's user avatar
5 votes
3 answers
199 views

How to make a complex chemical diagram

I did everything possible to recreate this picture but I got stuck. My best result is SOOO far from perfect. \documentclass[border=1cm]{standalone} \usepackage{chemfig} \usepackage[utf8]{inputenc} %...
Максим Однорал's user avatar
0 votes
0 answers
42 views

Pointed ellipse shape

I'm trying to draw a pointed ellipse shape between two tikzmarknode nodes. Regardless of the ratio of semi-major to semi-minor axis I choose, I can't make the ends very pointy. My different attempts ...
TheorVHP's user avatar
5 votes
2 answers
226 views

How to draw oval line through specified coordinates?

How to draw oval line through specified coordinates? I have used simple \draw [red, dashed, line width=1px] (A) to[out=180, in=180] (C); for each connection manually. And connected line dashes are not ...
Ernestas Gruodis's user avatar
4 votes
2 answers
335 views

Smoothing a gaussian curve in tikz

I would like to "smooth" the area between the 2 gaussian curves obtained using this code : any suggestion would be appreciated. Thank you very much. \documentclass[margin=10pt]{standalone} \...
Waxler's user avatar
  • 515
5 votes
1 answer
100 views

Merging 2 hemispheres using tikz

I am trying to reproduce this complicated figure using tikz : this consists of 2 merging hemisphere as shown below : I don't know if this is really difficult in latex but I have tried to inspire ...
Waxler's user avatar
  • 515
0 votes
0 answers
26 views

Could someone help show how to this simple Hasse diagram using tikz package?

I am trying to use tikz package to draw this Hasse program, but there are so many examples online, and I don't know how to follow. Could someone show me how to draw this simple Hasse program? Thanks ...
Kelvin Hu's user avatar
1 vote
1 answer
74 views

Quantikz: Annotation Text Above Gate

For a given gate symbol in the quantikz package, I would like to be able to place text above or below the gate in addition to the gate label. Shifting the text up and using \n to force multiple lines ...
Maxi Poser's user avatar
5 votes
1 answer
175 views

How to divide a circle into three equal circles using PGF/TikZ?

I want to draw the following figure: The accepted answer of SebGlav from this post gives some code. The code (due to SebGlav): \documentclass[tikz,border=3.14mm]{standalone} \usetikzlibrary{calc} \...
learner's user avatar
  • 663

1
2 3 4 5
62