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

294
votes
48answers
78k views

Nice scientific pictures show off

Task Show off your best scientific illustration ! The main purpose of this question is to share beautiful scientific pictures, preferably with an educational aspect. Content Your post must ...
191
votes
4answers
32k 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 ...
107
votes
12answers
7k views

Can we make a love heart with LaTeX?

I understand that this post may cause some down votes because it seems a bit off-topic, but having seen the discussion on Christmas Tree with LaTeX I am still willing to try. My Girlfriend's birthday ...
89
votes
8answers
8k views

Simulating hand-drawn lines

I am working on a project that will have some vector graphics, perhaps using TikZ (or a similar package). All of the graphics consists of lines, in shades of gray. However, the lines from TikZ appear ...
81
votes
4answers
4k 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? ...
69
votes
1answer
4k 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
4answers
9k 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 ...
50
votes
7answers
20k views

Typsetting UML class diagrams

What's the best way to draw UML class diagrams in LaTeX?
48
votes
3answers
2k views

Holiday contest! Drawing a picture of Krampus for Yule

I've volunteered to use some of my Cthulhu reputation to sponsor a Christmas/holiday contest. You all have aced previous holiday questions, so I'm going to give you a bit more of a challenge: Draw me ...
47
votes
6answers
2k views

How to automatically draw tree diagram of prime factorization with LaTeX?

I want to have a simple interface to automatically draw tree diagrams of prime factorization. For example, by invoking the following code, \PrimeTree{36} \PrimeTree{90} \PrimeTree{112} ...
46
votes
8answers
18k 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 ...
43
votes
13answers
2k views

What is the simplest way to draw this triangle exactly?

I want to see how we can exactly construct the following diagram as simple as possible. It means that the manual calculation should be avoided. Note that the angle marks attached to angles ...
43
votes
2answers
5k 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 ...
39
votes
3answers
10k 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 ...
38
votes
12answers
3k views

Drawing a Reuleaux Triangle

A Reuleaux triangle is a shape of constant width sort of like a rounded equilateral triangle. (Reuleaux triangle - Wikipedia, the free encyclopedia) It can be formed by the intersection of three ...
38
votes
4answers
5k 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 ...
37
votes
8answers
6k 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.
37
votes
1answer
19k 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 ...
37
votes
2answers
8k 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 ...
37
votes
1answer
2k 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 ...
36
votes
11answers
33k views

Best way to generate a nice function graph in LaTeX?

Which is the best way to put function graphs into a LaTeX document?
36
votes
3answers
1k views

Replicate the Fourier transform time-frequency domains correspondence illustration using TikZ

The following time-frequency correspondence illustration is in the wikipedia entry of the Fourier transform. Also a gif animation version (if the animation doesn't show, please open the following ...
36
votes
2answers
1k views

How can I draw nomograms in LaTeX?

What is a nomogram “A nomogram, also called a nomograph, alignment chart or abaque, is a graphical calculating device, a two-dimensional diagram designed to allow the approximate graphical ...
34
votes
3answers
1k views

How do I develop a complex time line?

I currently have a resume I've made in Illustrator with a time line of my work with academics on the lower part and jobs on the upper section: The trouble with it being in Illustrator of course, is ...
32
votes
2answers
9k views

Can you make chemical structure diagrams in LaTeX?

Can you create diagrams of chemical structures in LaTeX? Example(s) of "chemical structure diagrams":
31
votes
6answers
2k views

How to make the length of a car moving on a roller coaster track remain unchanged?

For any arbitrary parametric smooth curve, how can I make the length of a car remain unchanged? \documentclass[pstricks,border=12pt]{standalone} \usepackage{pst-plot,pst-node} \pstVerb { ...
29
votes
3answers
3k 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 ...
29
votes
2answers
999 views

How to plot a lattice of points on the surface of a torus?

I am doing a report on the Ising model, without going into the complex details of the model, in its two-dimensional form it involves a lattice of points. Which, when periodic boundary conditions ...
28
votes
5answers
2k views

How to produce a list of prime numbers in LaTeX

I would like to write a LaTeX script that produces all the prime numbers between the numbers n and m, where n < m. How can I do this? I feel it shoud not be that hard, but I cannot seem to program ...
28
votes
2answers
3k 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
27
votes
6answers
1k 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 ...
27
votes
4answers
9k views

Node shapes in 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 ...
26
votes
4answers
4k 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}) ...
26
votes
3answers
4k 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 ...
26
votes
2answers
657 views

Chaotic billiard with TikZ

I'm looking for a TikZ library that could help me to represent different shapes of chaotic billiards. Any idea?
25
votes
2answers
2k views

Drawing path diagrams with minimal effort?

I wonder how to draw such path diagrams with minimal effort.
24
votes
4answers
1k views

A rather difficult ring like picture to be drawn

I desire a figure similar to the following: \documentclass[tikz,margin=10pt]{standalone} \usepackage{mathtools,amssymb} \begin{document} \begin{tikzpicture}[scale=2,transform shape] \draw (1,0) ...
24
votes
4answers
3k views

How to draw triangular grid in TikZ?

Is there an easy way to draw a triangular grid in TikZ, like this?
24
votes
2answers
5k 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. ...
24
votes
2answers
1k 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 ...
23
votes
4answers
3k 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 ...
23
votes
3answers
3k views

How to draw Kiviat Diagrams

This question led to a new package: tkz-kiviat Is there a way to draw Kiviat diagrams easily?
23
votes
1answer
953 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 ...
23
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, ...
22
votes
5answers
3k 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 ...
22
votes
5answers
478 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 ...
22
votes
2answers
2k 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
3answers
1k views

A circular table? (where the rows form concentric circles)

I would need to make a table where the rows consist of concentric circles. That is, row 1 is forms the innermost circle; row 2 the second circle; row 3 the third circle and so on. The columns would ...
21
votes
6answers
3k 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 ...
21
votes
2answers
2k 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 ...