{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.

learn more… | top users | synonyms (1)

2
votes
2answers
1k views

Network/Message Sequence Diagram

I am looking to produce something similar (but more complex) to this diagram: This depicts network packets between two sides of communication. I don't know if there is any specific name for it ...
3
votes
1answer
176 views

Picture and Paragraph in Metapost

How to insert a paragraph in Metapost and a drawing below that? This has to be done within a single Metapost block, (i.e) within a single \startMPcode and \stopMPcode block Sample image :
18
votes
3answers
5k views

How to draw a coordinate system with LaTeX?

I want to draw a coordinate system like this: I would like to specify the width and height of the coordinate system and where the origin begins (upper left corner). I also want to specify the x and ...
5
votes
1answer
246 views

Label beside line before a branching node in a TiKZ “tree” chart

I'm very, very new to TiKZ. I'd like to make the (very crude) following diagram with TiKZ: Start | | Process 1 | / \ / \ / \ Item Item | | ...
4
votes
1answer
936 views

How to draw array (data structure) and show partition?

I'm doing a homework for algorithm class where I have to show what a particular array looks like at each step of the quick sort algorithm, in a manner similar to this image: (page from CLRS book). ...
3
votes
1answer
390 views

How to create a “Diagram package”?

After looking for some material about Venn Diagrams, for example that (Ed Sandifer. How Euler Did It, Venn Diagrams Mathematical Association of America, January 2004) and after checking different ...
1
vote
1answer
376 views

#ifdef analog for LaTeX

For example there is a simple tex-file with following text: \documentclass[tikz]{standalone} \begin{document} \begin{tikzpicture} \draw (0,0) circle (0.4cm); \end{tikzpicture} \end{document} Is it ...
7
votes
1answer
490 views

Typesetting inline Penrose/Cvitanovic tensor diagrams (birdtracks)

In the 50's, Roger Penrose invented a private graphical notation for tensors, which he later published. Wikipedia has a short description. It's basically a directed graph with some labels on it and ...
3
votes
2answers
433 views

xypic: How to typeset the dashed line in this diagram?

I use xypics for diagrams, but I don't know how to put the dashed line in the diagram below. Search didn't find much. Can anybody here help?
15
votes
1answer
1k views

Drawing 3D crystal lattice with tikz/pstricks

I need to draw 3D lattice of DO3 type (Ni-Mn-Al, DO3) and more complex ones. Both TiKZ and PSTricks packages draw following objects on top of previously drawn disregarding "real" 3D position. For ...
3
votes
2answers
146 views

Set picture size to size of a given box

I would like to use the picture mode in latex, but need to set the size of the drawing region to the size of some other box. I would normally do \begin{picture}(max_hor, max_ver)(ll_hor, ll_ver) ...
3
votes
1answer
448 views

Using \put command relative to page size

I want to include a logo in the pdf pages included in Beamer. I tried writing macro and progressed so far. \documentclass[fleqn,xcolor=dvipsnames]{beamer} \newlength{\logosize} ...
5
votes
1answer
2k views

Is it possible to make a picture transparent in beamer?

Here is my MWE. \documentclass [11 pt, xcolor=pdftex,x11names,table]{beamer} \usetheme{Madrid} \setbeamercovered{transparent=15} \begin{document} \begin{frame} \frametitle{Test} ...
10
votes
2answers
495 views

How to generate n points over a circumference and choose label and color

I would like to place n points over a circumference like Figure 3 of this file. I'd choose the label to be assigned to each vertex and color and I'd like to have the code in TikZ-pgf.
9
votes
2answers
1k views

Help with circle and arrows diagram with PGFPLOTS

I'm trying to make a plot similar to this one but I'm having a really hard time. If anyone can help me getting the details, I'll appreciate. I thought I couldn't post questions like this, but as ...
8
votes
3answers
589 views

How do I create a LCM tree diagram?

I am trying to create a LCM tree diagram which looks something like this: Also what is the code to draw circles around numbers?
4
votes
2answers
701 views

What tool was used to generate these technical diagrams?

I was reading a paper or Computed Tomography, and I found these two nice diagrams: And I was wondering, what tool was used to make them. I've worked with Tikz for example, but I believe it would ...
4
votes
1answer
185 views

Nested xy-pic diagrams

Is it possible to include a xy-pic diagram as an entry of another xy-pic diagram? I have a map to a group of homomorphisms and I would like to print the homomorphism image. Is there some way to do ...
7
votes
1answer
740 views

Help for one simple diagram about genetic algorithmic

I would like to produce the following diagram. Thanks to the following comments and one example from TeXample.net, I have done the following code. There is some problems. How can I fix them ? ...
12
votes
2answers
2k views

Create diagrams in LaTeX with TikZ

I am relatively new to the concept of generating diagrams in LaTeX, and do not know if LaTeX is capable of generating the diagram i wish to create. The diagram looks like this: I was hoping someone ...
7
votes
2answers
298 views

Bending arrows with XY

I'm in trouble with the following diagram: \[ \xymatrix{ & & & & & & X_1\times_Y X_2\ar@/_1pc/[dllll]\ar[dll]\ar[dddd]\\ & & X_1 \times_Z X_2\ar[dl]\ar[rr]\ar[dd] ...
6
votes
1answer
513 views

How to Draw Intervals

I am writing up some exercises for students who are using College Algebra as their textbook. I need to know how to TeX pictures of intervals like those on page 3 and page 5 of the linked book. ...
6
votes
1answer
404 views

Displaying genetic algorithms on data

It is useful for explaining how a genetic algorithms works to display things like in the two following pictures. In those pictures, it could be useful to have two more features. Display dotted ...
12
votes
2answers
2k views

TikZ: Defining and reusing complex objects?

(How) Is it possible to save some complex TikZ objects for reusing them (in the same and in different pictures)? I know it's possible to define own styles, but I'm not sure if it's the right thing ...
6
votes
2answers
276 views

Help with diagram

I do not have very much experience with the xy-pic package and I always try to figure out things by copying and pasting codes. I am stuck in here: I would like to get an arrow from A to C with an ...
1
vote
1answer
409 views

inset cylinder and conically shaped objects in latex

How would I draw the following figure in latex: I can draw this by drawing two circles and then a line connecting them, and insert the text by using \node in the tikz package but this seems a very ...
6
votes
2answers
356 views

Plot x=3 in PGFPlots

I just started to use pgfplots and I'm trying to plot the line x=3 (a line parallel to the y axis where x is 3). I've tried to find an answer on the net, but all the examples always show how to ploy ...
15
votes
3answers
1k views

Drawing a circuit structure in LaTeX

I want to create the following structure in LaTeX: Unfortunately I couldn't find a similar example in the pgf manual using the same symbols. An answer just showing basically how to produce a ...
8
votes
2answers
390 views

How to ensure consecutive diagonal arrows form a straight line?

How can I ensure that consecutive diagonal arrows in a tikz-cd commutative diagram spanning many rows and columns lie on a straight line (as is automatically the case for consecutive horizontal ...
7
votes
1answer
890 views

Tikz: Avoiding line segments in snake path

I am using tikz to draw Feynman diagrams, and I learned how to draw a curved snake path. The problem is that in general line segments are present (I'd like to avoid them). I found a couple of post ...
8
votes
1answer
3k views

Curved waved lines with TikZ

I'm trying to write a code for Feynman diagrams with TikZ (I know it is a common subject in the forum). I found very useful posts. However, I would like to draw a curved waved line ...
7
votes
1answer
407 views

Fine-tuning a commutative diagram

I am trying to type the following simple commutative diagram in LaTeX. I have the basics, but I need for the V to be centered, and for the arrow under the g to be in the opposite direction. ...
21
votes
1answer
2k views

TikZ picture shapes

I am very new to the TikZ package, and I need to draw some flow chars by using the following shapes. However I couldn't figure out how to draw the 4th and and 6th ones below. It would be very nice ...
4
votes
1answer
243 views

xymatrix: Arrows badly placed when used with large nodes

I find that using xymatrix with large nodes results in awkwardly placed arrows: MWE: \documentclass{book} \usepackage{xypic} \begin{document} \xymatrix{ \textbf{Natural Numbers} \ar@/_/[r] ...
5
votes
1answer
357 views

array and line how to draw?

I want to know how can I draw the line that appears in the right of the image below, and also how can I write this array that appears in the left of the picture.
5
votes
2answers
474 views

Big diagram in LaTeX with the help of PGF/TikZ

I managed to make this big diagram in Inkscape adding the codes in LaTeX using the plugin textext. See this question for more. I wish I knew how to draw the big diagram about dual linear spaces ...
3
votes
1answer
1k views

Subfigures side by side not working

I am trying to set two figures side by side while using the picture environment instead of includegraphics as shown in most examples here. Unfortunately they are displayed stacked and I do not know ...
13
votes
1answer
601 views

Design that imitate Google browser

I would like to write some tutorials about HTML, and I would like to do it efficiently without using too many screenshots. What I would like to obtain is a frame which looks like a web browser, such ...
6
votes
2answers
902 views

Small grid with no labels

How do I remove all labeling from a small grid to be used for a math test? I have created the grid with \graphpaper but get coordinate labels that I don't want.
12
votes
2answers
832 views

Is there is a package so you can add text with visual effects like “WordArt” from “Word”

I am elaborating a business card style for LaTeX but I found out that even if I have the style and margin for the cards I can not make it look "pretty" like other text editors without overusing ...
9
votes
1answer
616 views

Circular sequence diagram (tikz?)

Apologies in advance for the slightly-crappy camera phone picture: I'd like to include some figures like this in something I'm working on. I've just started learning tikz, which seems like it could ...
0
votes
1answer
267 views

What files should I prepare to make commutative diagrams in TeX Writer? [duplicate]

I am using an iPad app TeX Writer and would like to draw a commutative diagram. I can use amscd in the app but it is not sufficient for the diagrams I want to draw. To include new package, I need to ...
5
votes
1answer
313 views

Getting vdots in graph tree

\documentclass[12pt]{article} \usepackage{amsmath} \usepackage{tikz} \tikzstyle{vertex}=[auto=left,circle,fill=black!25,minimum size=20pt,inner sep=0pt] \begin{document} \begin{tikzpicture} ...
5
votes
3answers
211 views

Is it possible to shade an area of a picture using the xcolor package?

I want to shade an area of of picture I have created in the environment \picture. Is there anyway I can shade this by setting it between co-ordinates? i.e. could I shade in blue the area between ...
3
votes
1answer
397 views

parallel arrows in pb-diagram

It is possible to get two parallel maps (one pointing to the left, the other to the right) between two nodes using pb-diagram? I know it can be done with TikZ, and maybe with some other package, but I ...
10
votes
1answer
5k views

Online LaTeX diagram graphical editor

Is there an online tool that generates the corresponding LaTeX code of a diagram which can be drawn using a graphical interface? A tool such as latexdraw but only using a web browser (like Detexify)?
3
votes
1answer
357 views

Commutative diagram using TeX Writer

I bought an ipad app TeX writer and I am wondering if I can draw a commutative diagram. It includes the packages amslatex revtex4-1 IEEEtran babel cyrillic graphicx color xcolr geometry algorithm2e ...
2
votes
3answers
406 views

programs for creating diagrams

Does anybody know of some programs I can use to make diagrams that look like the following I would use the above diagram directly, however due to copyright issues, this is not an option for me. ...
6
votes
2answers
348 views

Create a table for an athletic knockout event

I have used LaTeX for fairly large documents in the past but not for diagrams. I would like to create a table describing a knockout athletic event, for instance like the one found here in HTML. How ...
8
votes
2answers
434 views

Pretty lists for sorting algorithms

I would like to obtain easily something like in this picture so as to illustrate several sorting algorithms. To produce one line, I would like to use one command of the following kind where the ...