{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.
126
votes
3answers
15k views
Drawing on an image with TikZ
Recently I have learned how to draw simple stuff with TikZ. I really like it. Now I wonder if it is possible to draw with TikZ on a image. Instead of pasting a image in Illustrator and adding some ...
68
votes
8answers
5k views
Simulating hand-drawn lines
I am working on a project that will have some vector graphics, perhaps using TikZ (or a similar tool). All of the graphics consists of lines, in shades of gray. However, the lines from TikZ appear too ...
59
votes
1answer
2k views
PowerPoint's “Smart Art” for TikZ?
This question led to a new package:
smartdiagram
I haven't been using PowerPoint for years, but today I immediately fell in love with its "Smart Art" feature (2010 version of PowerPoint). The ...
50
votes
3answers
2k views
How to draw a Sankey Diagram using TikZ
I would like to draw something similar to this (not exactly):
using TikZ. Ideally I would be able to set the width by variables and rejoin two flows into one again. Is there a good way to do this?
...
42
votes
4answers
5k views
How do I insert an image in LaTeX so it looks good on print?
LaTeX documents print beautifully, but images often looks "ugly", "pixelated" or "low-res" compared to the text. By images I don't mean photos, which I rarely use, but rather diagrams, charts and ...
34
votes
4answers
4k views
How do you draw the “snake” arrow for the connecting homomorphism in the snake lemma?
How does one draw the "snake" arrow for the connecting homomorphism when using the snake lemma?
I'd also be interested in drawing similar arrows act as "carriage returns" when considering a long ...
33
votes
2answers
3k views
Wordle-like word clouds
Wordle creates word clouds based on the frequency on words in a text, similar to tag clouds. What makes it unique is that it can lay out words in arbitrary directions without too much white space. See ...
32
votes
3answers
6k views
Drawing Mechanical Systems in LaTeX
I really like CircuiTikZ for drawing diagrams in my LaTeX documents. However I mostly draw mechanical and not electronic systems, which is why I'm looking for some similar way to draw mechanical ...
31
votes
6answers
10k views
28
votes
1answer
1k views
Plotting several 2d functions in a 3d graph
I am trying to reproduce a similar figure to the following one. My first guess was to use pgfplots but I didn't find any example that I could use as a starting point. At the moment I am unsure if ...
27
votes
7answers
6k views
What graphics packages are there for creating graphics in LaTeX documents?
What packages do you use and recommend for creating graphics in your LaTeX documents?
As this is a community wiki post, please add your package to the accepted answer (or add a comment, and ...
25
votes
1answer
8k views
How can I draw simple trees in LaTeX?
I need to draw a tree, and constantly using dotty and including the PNGs is starting to be a pain. Is there a way to get LaTeX to draw it's own trees that doesn't involve learning an entirely new ...
25
votes
2answers
4k views
Which package can be used to draw automata?
I'm looking for a LaTeX package which helps drawing automata problems. I googled and found A package for drawing automata and graphs (Version 0.4). But I'm not sure is this package a standard one, or ...
23
votes
11answers
12k views
Best way to generate a nice function graph in LaTeX?
Which is the best way to put function graphs into a LaTeX document?
Note: Since the question is fairly wide, and perhaps a bit individual, I will wait for at least 4 answers before I close it ...
23
votes
3answers
2k views
How to draw tangent vectors and component vectors on a curve
I am searching for a way to have a figure drawn using LaTeX. I am aware of some packages TikZ and PSTricks that could accomplish this, and have been tinkering around with them recently but do not have ...
23
votes
3answers
2k views
How to draw triangular grid in TikZ?
Is there an easy way to draw a triangular grid in TikZ, like this?
23
votes
4answers
5k views
Node shapes TikZ
I want to draw a block diagram for a software app and I need two shapes which I couldn't find on the Internet. The shapes are a parallelogram and a rectangle with double side margins.
One is for data ...
23
votes
3answers
2k views
Drawing random paths in TikZ
I am looking for a way to draw with TikZ something that looks like a random path.
Here is an inspiration:
Is it possible to have TikZ generate something that would be similar to a random path ...
22
votes
2answers
2k views
Drawing path diagrams with minimal effort?
I wonder how to draw such path diagrams with minimal effort.
22
votes
2answers
831 views
Is there a way to compile tikz graphics outside a document?
As my document grows, so does the number of drawings. I am using PGF/TikZ and each drawing is what is enclosed between \begin{tikzpicture} and \end{tikzpicture}. Every time the document is compiled, ...
21
votes
4answers
2k views
How to draw arrows between parts of an equation to show the Math Distributive Property (Multiplication)?
there is a part of my paper where I use the distributive property and it's not that clear for the reader to see (I'm using in proposional logic for a proof). The logic equation (part of) is:
(l_{1}) ...
21
votes
7answers
4k views
How to draw a torus
Is there an easy way to draw a contour image of torus below with tikz? Or for that matter with any other graphics package.
21
votes
4answers
2k views
Is there an easy way to TeX geometric pictures?
Say I want to include geometry graphics such as the following in a document:
I don't merely want to import preexisting figures, I want to be able to draw my own corresponding to a solution I may ...
21
votes
2answers
3k views
How to draw a poset Hasse Diagram using TikZ?
I need to draw an Hasse Diagram using LaTeX. TikZ is the solution I would like to use. I tried with a simple structure involving trees but obviously when I need to join two nodes, it is not possible.
...
21
votes
5answers
356 views
Easier way to make permutation diagrams?
I prefer using figures created inside TeX, but I only know very labor-intensive methods. The following creates a permutation diagram for (6,3,2,4,1,5) with some colors and additional symbols.
I'm ...
21
votes
2answers
950 views
Draw a coat of arms in LaTeX
Over at academia.sx we are trying to create a community ad to try and get us promoted out of beta. We are looking to create a university type coat of arms/seal. I have seen some really great artwork ...
19
votes
5answers
2k views
Drawing stars/similar with Tikz
I'm writing a review for a book at the moment, and I thought I'd be clever and show off what LaTeX is capable of by adding a x-out-of-y stars graphic. Tikz can do many things so I would have thought ...
19
votes
6answers
2k views
Need recommendations for a drawing tool in LaTeX
I have never used a graphing tool in LaTeX but now I need to draw a picture. It is not very complicated: an xy-plane with axis; a number of points; a number of straight lines and finally two ...
19
votes
2answers
1k views
package(s) for creating knot diagrams
I was wondering if anyone could suggest software/packages to create nice knot diagrams (hopefully with a link to images they have made in the past).
I have used xy-pic recently but am mainly ...
19
votes
2answers
2k views
Drawing a hypergraph
What is the proper way to draw a hypergraph? Is there a package to do this, or is there an easy way to draw such diagrams with a common drawing method like tikz?
I'm trying to draw something like
19
votes
1answer
566 views
How to produce John Kruschke's Bayesian model diagrams using TikZ or similar tools?
In a May 2012 blogpost John Kruschke discusses how he prefers his diagram conventions for representing bayesian models to the traditional approach.
You can see an example of his approach in the ...
18
votes
3answers
2k 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 ...
18
votes
2answers
558 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}
...
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 ...
17
votes
1answer
732 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
3answers
2k views
How to draw Kiviat Diagrams
This question led to a new package:
tkz-kiviat
Is there a way to draw Kiviat diagrams easily?
16
votes
1answer
3k 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 ...
15
votes
5answers
495 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
9k 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).
...
15
votes
2answers
775 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 ...
15
votes
5answers
1k 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
4answers
463 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
3answers
2k 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 ...
15
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 ...
15
votes
1answer
2k 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
1answer
504 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 ...
15
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 ...
15
votes
1answer
865 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 ...
14
votes
5answers
818 views
Design of an asteroid belt in TikZ
How can I construct an asteroid belt in TikZ? That is my question: I get everything right, but I do not know how to make the asteroid belt.
I have no code to add besides the preamble with TikZ ...
14
votes
2answers
2k 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?

