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

21
votes
4answers
5k views

Is there a way to control whitespace around a TikZ picture?

When I draw a tikzpicture that includes paths, I get quite a bit of extra whitespace added around the elements of the picture. Depending on the elements the figure contains, this can work out in some ...
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 ...
21
votes
1answer
5k views

Making a (simple) directory tree

I'm trying to make a simple directory tree representation in LaTeX. Something like: spam | +-- ham +-- eggs | +-- more spam +-- dead parrots The tree won't be that long (say, ...
20
votes
3answers
3k views

Molecular orbital diagrams in LaTeX?

This question led to a new package: modiagram I'm wondering if anyone has seen a package for drawing (qualitative) molecular orbital splitting diagrams in LaTeX? Or if there exist any packages ...
20
votes
1answer
5k views

Cisco Icons for network diagrams

First of all thanks for this great site. My foray to Latex has been easier than I thought. My company are producing technical documentations of as-built network projects from Structured Cabling to ...
19
votes
3answers
1k views

Amoeba shape with TikZ

I would like to draw generic amoeba-like shapes with TikZ and don't really want to think too deeply about its boundary. Basically a closed connected set with smooth locally convex boundaries. Any ...
18
votes
7answers
2k views

Can anyone draw a chiasma in LaTeX?

I am trying to draw a two curved lines that form a chiasmata. I am imagining it would look like an 'X' that is composed of two CURVED lines such that it is wider than it is tall. I also want to ...
18
votes
3answers
17k views

Drawing graphs in LaTeX

Is it possible to draw graphs like in image below in LaTeX? It doesn't have to look exactly the same. I need arrows with numbers and circles (or dots or other symbol) with text in it (or next to it). ...
18
votes
2answers
2k views

Making a labeled Klein bottle using TikZ or pgfplots?

I'd like to be able to draw the following cell complex structure on the (three-dimensional embedding of the) Klein bottle using LaTeX. I am pretty pleased with my hand-drawn rendition, but LaTeX is ...
18
votes
3answers
771 views

Drawing diagrams of higher categories with TikZ

I a planning to give an introductive talk about strict n-categories and I wanted to use TikZ to show the relations between the k-morphims by some cellular diagrams. To be precise, I want to draw ...
18
votes
2answers
811 views

How to Draw a Partitioned Circle in TikZ?

I want to draw something like this: I know everything apart from that circle. This is my code: \documentclass{article} \usepackage{tikz} ...
17
votes
4answers
660 views

Plot to illustrate secant lines

I am trying for teaching purpose to explain how basically linear regression might work and how it could be extended. Since I am not the TeXpert I fear that my idea might be tricky and more difficult ...
17
votes
3answers
1k views

Replicating a simple diagram in Knuth's book using TikZ

Despite the many attempts to draw this simple flowchart, I didn't really know how to do the following: Drawing a start arrow (as the one before A1) Drawing an end arrow (as the one after A2 and ...
17
votes
4answers
2k views

Draw only some segments of a path in TikZ?

Is there a good way to create a path in TikZ only some segments of which are stroked? I want to create the whole path in a single command so that it can be filled, but I also want to stroke some ...
17
votes
1answer
937 views

Is it possible to use spot colors in TikZ graphics?

Using ConTeXt and Metapost, it is fairly easy to define spot colors and use them in an image: \starttext \definecolor[MyRed][c=0,m=1,y=1,k=0] \definespotcolor[RedSpot][MyRed][p=1,e=MyRed] ...
16
votes
2answers
3k views

Drawing hexagons

I have a case where I need to draw a hexagonal grid in LaTeX. I am considering just reading the grid from an eps file. Is there an alternative way to do it completely within LaTeX?
16
votes
3answers
3k 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 ...
16
votes
2answers
1k views

Is there a way to draw 3D-style “buttons”?

I was wondering if there is a latex package to get pseudo-3D style "buttons" as are often seen on the web, or if not is there an easy way to draw them? An example of what I mean:
16
votes
2answers
2k views

How to make nice braids diagrams

This question led to a new package: braids — Blog: The Braids Package I search to draw braids diagram, if possible in xy-pic. I already know how to do that with the knot module and some ...
16
votes
3answers
9k views

Is there any way to type LaTeX code directly into the text boxes Inkscape?

I use Inkscape on Windows 7 platform. The principle to enter integrals and other mathematical symbols in Inkscape seems that the best thing to do and write them in a LaTeX compiler and cut them in ...
16
votes
1answer
3k views

Avoid arrow crossing over blocks in flow chart

I've been creating a flow chart using the template I found here: http://www.texample.net/tikz/examples/simple-flow-chart/ Please see the code below: \documentclass{article} ...
15
votes
5answers
734 views

Draw a chain of beads

I would like to reproduce this kind of figure: I'm wondering what's the best way to achieve that with TikZ. My guess is to draw an element composed of a circle + a link and to link this element ...
15
votes
3answers
3k views

Political map in LaTeX

Is there a package that can be used to make political maps in LaTeX? Like a world map or a map of Europe?
15
votes
5answers
2k views

How to include graphs in my document?

I've just started using LyX for my Economics essays. Using Inkscape, I have been able to create some very neat diagrams to go with them. However I really need to be able to insert graphs (XY charts, ...
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 ...
15
votes
3answers
772 views

Draw a 3D diamond structure

I want to draw a 3D diamond crystal structure. The point where I struggle is quite in the beginning to draw connecting 3D rods: \documentclass{article} \usepackage[utf8]{inputenc} ...
15
votes
4answers
588 views

Any nice packages for word alignment?

I want to visualize word alignments between sentence pairs, where the positions of aligned words may differ between the sentences, and a word in one sentence may be aligned to more than one word in ...
15
votes
1answer
2k views

How to open a temporary comics-like balloon in a beamer slide?

I would like to open a temporary comics-like balloons to explain a specific word in a beamer slide. Somebody has suggestions?
15
votes
2answers
2k views

Breaking pictures across multiple pages

I am a relative TeX newbie trying to write a new package to generate timelines that can span multiple pages (the existing timeline solutions are not suitable for me, and I would like to write ...
15
votes
1answer
1k views

Waterfall Chart

For displaying the total effect of a series of values, a waterfall chart can be useful. For example this chart, taken from The Economist, illustrates estimated efficiency potentials in the UK public ...
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 ...
14
votes
5answers
661 views

Lines and circles are not visible. Why not?

I'm running TeXworks and MikTeX on Microsoft Windows and within a document I have the code you see below. Compiling results in a pdf file in which I can see the text within this picture but I can't ...
14
votes
4answers
2k views

Plotting the solution of inequalities with WolframAlpha or Maple

I want to plot the solution of two inequalities and include them in a LaTeX paper. I really like they way this looks: Wolfram Alpha. Unfortunately, I have no idea how to export this into a ...
14
votes
2answers
574 views

Creating plasmid diagrams in TeX

I need to create a diagram of plasmid in TeX, which looks like that: The images above are slightly different but show pretty much the same thing so it would be great if I could create any of them ...
14
votes
3answers
2k views

Drawing a circle in the complex plane.

I would like to draw the set of points in the complex plane that satisfies $|z-1+i| <= 3$ using LaTeX (with TikZ, or some related system). I would want to fill this circle with say dashed lines, or ...
14
votes
3answers
4k views

How should I draw a singly/double linked list?

I need to draw some singly and double linked lists for a CS paper and I don't know what package should I use. As far as I've searched over the Internet I can't seem to find a good one. Maybe TiKZ/PGF? ...
13
votes
3answers
615 views

Noisy, analogue waveform in TikZ

Is there an easy way of drawing a noisy waveform in TikZ? I know you can draw a simple sinusoid by repeatedly using cos and sin for every half-period, but doing that for a noisy waveform seems like a ...
13
votes
3answers
619 views

Which LaTeX package is needed to draw radar-like diagrams?

Can you please suggest some LaTeX package of drawing charts in the format mentioned below? It should offer the possibility to put text as "Text A" as well as "Text B" . Note: Currently I'm using ...
13
votes
4answers
1k views

Bending snakes with xy-pic

This is a follow-up to this question: How do you draw the "snake" arrow for the connecting homomorphism in the snake lemma? I'm trying to emulate this snake diagram Aluffi does in his book ...
13
votes
3answers
438 views

Drawing complex diagrams with TikZ using gradients

I am relatively new to LaTeX. I don't find it an issue writing documents and so on but when I try to draw diagrams I run into some bother. I was reading an article and found this diagram: I was ...
13
votes
1answer
574 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 ...
13
votes
2answers
437 views

How to draw spherical triangles?

Does anyone know how to draw spherical arcs and spherical triangles using LaTeX?
13
votes
2answers
259 views

Two coloured arrow

I would like to draw arrows in diagrams that have two colours split along the axis. (This shall represent a mixed case in colour-coded case distinction.) Here's a sketch: Here is a MWE to play with: ...
13
votes
1answer
2k views

What's the name of this timeline package in LaTeX?

I tried searching through many resources to identify the package that allows to create this type of time lines: but all in vain. Could anyone, please, point in the right direction?
13
votes
3answers
1k views

What's a good package for typesetting quantum circuits?

I want to typeset things that look like I'm already aware of Q-circuit, which has nice custom macros for this purpose, but is based on the relatively slow and clunky XyPic TikZ, which I can use ...
13
votes
1answer
1k views

Style question: serif or sans fonts in figure and chart text?

Question for you design-y types: I like to use a serif font for all my text (title, headings, body). What I'd like to know is whether you think that I should go with a serif or sans serif for text in ...
13
votes
0answers
395 views

Are there any other methods left to create a spiral of equidistant segments?

I want to create a spiral that is composed of equidistant segments as shown in the following figure. I tried to draw it with various methods. The colors are used to distinguish each method from the ...
12
votes
5answers
7k views

Drawing circles in LaTeX

How do I draw a circle and its surrounding polygons, for example an octagon, in LaTeX?
12
votes
5answers
3k views

Drawing 3d diagrams

I would like to use a few simple 3d diagrams in my LaTeX document. They primarily consist of polyline segments in 3d, along with an occasional simple surface (e.g. paraboloid). There are two ...
12
votes
3answers
666 views

Graphing multiple functions on the same graph

I'm new to LaTeX and am attempting to type up some old differential equations notes. The only part I seem to be having trouble with is graphing multiple functions onto a single graph. For example the ...