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
15
votes
1answer
2k views

Drawing a complete ER Diagram in Crow's foot style by TikZ

I need to draw a ER digram in Crow's foot style in LaTeX. After some search I found: Creating crow's foot style E-R diagrams, rather than Chen-style ones However, I found this style was not "...
14
votes
5answers
2k views

Drawing a regular polygon encompassed by a circle

I would like to replicate the sort of diagrams shown below - a regular polygon in dashed lines encompassed by a solid lined unit circle with vectors going from the origin to each labelled vertex in an ...
14
votes
3answers
1k 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 also ...
14
votes
3answers
1k views

Typographic conventions for width of figures in LaTeX data analysis reports

I posted this question on stats.SE, but the consensus was that it was better suited to tex.SE. Context: I've been thinking recently about conventions for figure width in data analysis reports that ...
14
votes
4answers
3k 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 LaTeX-...
14
votes
3answers
7k views

How do I draw parallel arrows in commutative diagrams with TikZ?

How do I draw two parallel arrows having the same domain and the same codomain in a commutative diagram with TikZ? For that matter, how do I draw any sort of parallel paths between two nodes? Do I ...
14
votes
3answers
1k views

Any package for matrix diagram?

Do you know if there is any LaTeX package available to create charts like these? (Source)
14
votes
1answer
3k views

Help creating solid cylinders along a path in Tikz for crystal lattice diagram

I am trying to draw a diagram using Tikz that will show the crystalline lattice structure of diamond. It should look like the following illustration (reference). I have managed to figure out the ...
14
votes
2answers
5k views

Horizontally enlarged hexagon with TikZ

I need to draw some nodes for a diagram, but I'm failing to produce a simple horizontally enlarged hexagon. If I use regular polygon (from shapes.geometric), I cannot enlarge it (first figure in ...
14
votes
1answer
757 views

Plotting a diagram with TikZ

I'm trying to plot the following diagram with TikZ. Here is my MWE \documentclass[10pt]{article} \usepackage{pgf,tikz} \usetikzlibrary{arrows} \pagestyle{empty} \begin{document} \centering \begin{...
13
votes
5answers
2k views

Can we rotate symbols in LaTeX? How should we make this diagram?

I would like to insert this diagram Into my LaTeX document. However, I don't know if it is possible at all to rotate symbols, and how they could fit into a diagram (notice that the \cong symbol has ...
13
votes
6answers
2k 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 ...
13
votes
5answers
36k views

Coordinate system in LaTeX with TikZ

How can I create a simple coordinate system with a linear line in LaTeX using the tikz package? It should look something like this. With the iterating numbers on each axis and all.
13
votes
4answers
3k views

Does LaTeX have a built-in scripting language?

Say I want to draw a simple graph in LaTeX. I'm interested to know if you can write a for loop or something to create things like lines or squares programmatically in LaTeX.
13
votes
2answers
3k 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 ...
13
votes
4answers
882 views

Draw a Hasse diagram with circles with 3 sectors

Hello everybody, I am try to draw the Hasse diagram (picture above) but I don't know. Thanks for your help. \documentclass[tikz,12pt]{standalone} \begin{document} \begin{tikzpicture} \fill [gray] ...
13
votes
2answers
11k views

How to draw up a hierarchical tree diagram for taxonomic classification

Please show me the most simple, elegant code for this: How to do it in other words.
13
votes
4answers
2k views

Plot the cusp catastrophe surface

I'm trying to draw (plot) the Cusp catastrophe surface into latex using any software logic. I am completely stuck because I'm definitely not a mathematician. The surface has the potential: V(x) = F(x,...
13
votes
3answers
2k views

callout and beamer

I am trying the callout code that Andrew has provided at How to open a temporary comics-like balloon in a beamer slide?, but I am getting an error: Undefined control sequence. \pgf@sh@bg@ellipse ...
13
votes
1answer
776 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
5answers
12k views

Diagram editors with support for text entry as TeX?

I'm looking for good diagram editors with support for text entry as TeX. I have used ipe and dia in the past, but ipe does not let me change a rectangle (or any polygon) so it'll have round corners. ...
13
votes
2answers
3k views

How to get a 4 by 4 chessboard? Or any other size of board.

I've seen some package to draw chessboard on LaTeX such as skak and chessboard. However, after reading the documentation, they don't seem to support a change of the board size. I'm talking about the ...
13
votes
2answers
3k views

3D Cube within a cube?

I have been trying to make an image but have been unsuccessful. Typically I use the tikz environment but can still not figure it out. I would love some help! Thank you! \documentclass{article} \...
13
votes
1answer
6k views

Draw (very basic) network topology using tikz

I'm trying to draw some very basic Network topologies and thought that I'd try using Tikz for it. So I thought that I'd make a start and then ask for help, as I've got to do 5 of these and there's ...
13
votes
2answers
3k views

Which are the advantages of TikZ over GeoGebra?

Now I have been using GeoGebra for a considerable amount of time and therefore I am rather experienced using it. Creating graphs, plots and geometric figures can be done in a matter of minutes. Often ...
13
votes
3answers
3k views

Drawing the contour of a 3d torus

I would like to draw a torus, like the one on the question How to draw a torus, with a 3d package. I would like to avoid drawing the torus in 2d with inkscape (or directly with tikz) because I will ...
13
votes
3answers
5k views

Commutative diagram with rounded arrows

I want to draw a diagram which has some arrows between to points A and B. First arrow goes straight from A to B and above it should be a $\Psi$. Second arrow goes in a round way from A to B and above ...
13
votes
2answers
531 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
0answers
804 views

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

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
1k views

How to replace space with '+' symbol in a triangular array?

How can I make number pattern like this But, all spaces are replaced with plus signs ?
12
votes
6answers
1k views

Graphing a non-linear inequality?

I'd love to automatically graph, on a number line, the solution to non-linear inequalities. Basically, the input would be an equation (e.g. x^2>=1) and the output would be a visual graph like the ...
12
votes
3answers
2k views

Circle made up of a looping squiggly line

I would like to create the following kind of diagram using TikZ/PGF: In words: a circle made up from a thick "random" squiggle. This squiggle style comes from David Mumford in his description of ...
12
votes
2answers
20k views

Histogram with Tikz

I am a newbie in TeX. And I need to use Tikz to make a copy of this histogram Of course, I am able to make something similar. Unfortunately, I need a replica (90%) of it. Can anybody help me? What ...
12
votes
5answers
2k views

How to color randomly drawn dots within a circle?

I'd like to create the following plot (illustrating a population and a random sample) with tikz where the dots are created/placed randomly; all dots inside the circle, however, are supposed to be ...
12
votes
6answers
12k views

Drawing simple sequence diagram

I need to draw this kind of simple sequency diagram, but I'm not very good with TikZ: \begin{figure}[!ht] \begin{center} \begin{tikzpicture}[node distance=2cm,auto,>=stealth'] \node[] (server) ...
12
votes
4answers
699 views

How can I make a diagram with lots of colored circles?

How can I make a diagram like you see below?
12
votes
5answers
6k 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 questions:...
12
votes
4answers
653 views

Triangular diagram in Tikz

I'm trying to replicate the following diagram in Tikz: Where the borders encompass a right angled triangle, with dashed lines (not in picture) joining (0,0.5--1,0) and (0,1--0,5,0). Moreover, it ...
12
votes
2answers
13k views

Labeled Number Line

I am transferring a professor's .doc files to LaTeX so that we can do more sophisticated formatting and I ran across a problem. I would like to recreate this number line in LaTeX. Help with which ...
12
votes
3answers
709 views

Draw Polygonal Number Using PSTricks (or TikZ)

I would like to draw the following using PSTricks (or TikZ): (Found on http://i1.wp.com/mathandmultimedia.com/wp-content/uploads/2012/08/polygonal-numbers.png.) I can do it myself using an extremely ...
12
votes
5answers
20k views

Plot the square root function using Tikz

I want to draw the graph the function $y=\sqrt{x}$ (and label it above the graph of the function) in an $x-y$ plane. Then I need to put a filled dot on the point $(4,0)$ (I want to label $(4,0)$ ...
12
votes
5answers
945 views

Creating complex diagrams

I need some help devising a method for further cases. I've searced tex.stackexchange.com for a solution but have so far not seen examples that help me much. In writing my thesis, on musicology, I ...
12
votes
3answers
7k 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 ...
12
votes
3answers
2k views

Drawing rectilinear curves in Tikz, aka an Etch-a-Sketch drawing

I'd like to draw a rectilinear path by starting at a particular location, and then prescribing increments in the horizontal and vertical directions. I am currently doing something like this \...
12
votes
3answers
1k views

Tikz: Better way to draw this simple diagram

I want to draw something like this diagram in TikZ. My code is: \documentclass[a4paper]{standalone} \usepackage{tikz} \usetikzlibrary{positioning} \begin{document} \begin{tikzpicture} \node (...
12
votes
5answers
1k views

How would you produce the following exact hexagon?

I'm somewhat familiar with the array environment, but I'm not sure what the best approach would be to produce this diagram: How would I make this, or diagrams similar to this? The slanted arrows and ...
12
votes
3answers
27k views

How to change the background color of \framebox?

I'm trying to change a picture drawn using the plain picture environment and I need to change the background color of certain \framebox to lightgrey. Is it possible? I know that there are more ...
12
votes
6answers
3k views

How do I draw bar graphs in my LaTeX documents?

I have set up the TexLive distribution on my Ubuntu system. What graphics or graph-drawing package should I use to embed bar graphs in my LaTeX documents?
12
votes
3answers
3k views

PRL style horizontal line in Latex

I want to get the line similar to the one in PRL articles at the end. I don't want to use RevTex but can't figure out a simple way of doing it in Latex. Any help will be appreciated.
12
votes
3answers
658 views

Creating macros for common commutative diagrams in tikz

I am currently typesetting a document which requires many commutative diagrams of the same shape and construction, but with different labels at the vertices and edges. For example, I want a ...

1 2 3
4
5
46