Graphs are (1) graphs of functions or (2) sets of nodes and edges.

learn more… | top users | synonyms

41
votes
11answers
37k 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
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 ...
35
votes
3answers
2k 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 ...
29
votes
2answers
4k views

What is the clearest way to graph a piecewise function?

I have a function defined as: How can I graph that using functions instead of coordinates? I'm currently working with pgfplots but I'm open to something else if it's better.
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
25
votes
2answers
607 views

How can I produce the history graph of a Git repository in LaTeX?

Is there a relatively simple way to produce the history graph of a git repository in LaTeX? I'm looking for something nicer-looking than the verbatim output of git log --graph --oneline
22
votes
2answers
745 views

Why does PGF/TikZ 3.0 draw my simple layered graph as non-planar by default?

I have two questions: If I’m reading §30.4 “Crossing Minimization” of the PGF/TikZ 3.0 manual correctly, the layered graph drawing algorithm should have crossing minimization enabled by default. So ...
20
votes
3answers
20k 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). ...
19
votes
4answers
2k views

How can I display an array (as in the data structure from Computer Science, not the mathematical version) in LaTeX?

I'm finding this extraordinarily difficult to search for, as the mathematical meaning of "array" is much more common in LaTeX documentation. I essentially want a single row of boxes, into which I can ...
19
votes
1answer
538 views

Drawing Tapered Edges in Graph

I'd like to achieve the following effect in a TikZ picture when drawing a straight edge from one node to another. How can I achieve this tapering effect? Notice what happens when an edge exists from ...
16
votes
4answers
870 views

The package to visualize graphs

What could be the packages to use for visualization of graphs? I tried Graphviz, but it's very hard to direct how the graphs should be shown. How can I make the graphs represented as is shown in the ...
16
votes
5answers
9k views

Is it possible to put MS Excel graphs into a LaTeX document?

I will be using Microsoft Excel to produce graphs and I was wondering if there was a simple way to put those graphs into a LaTeX document?
16
votes
2answers
2k views

Generating dozens of graphs

I am revising old lecture notes on microeconomics and they contain a lot of graphs. As I am rewriting it in LaTeX, I would like to recreate the old graphs, but I need to select the right tool for the ...
15
votes
1answer
2k views

TikZ - Two Colored Circle Split

I need to draw a two-colored circle split, exactly as is specified in the section 39.6 of the manual for rectangle splits, meaning that one half of the circle split has one fill color and the other ...
14
votes
1answer
628 views

How to plot integral as summation, as pictured?

I'm new to TikZ and pgfplots but would like to know how to plot the square as well as how to plot the arrows + delta x as well as arrow + delta A: I'd be most grateful if some of you had some ...
13
votes
3answers
755 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
469 views

How to plot a graph from its adjacency matrix and coordinates of vertices?

A similar question is here. If we give all the data of the vertices's coordinates and the graph's adjacency matrix, how to plot it with tikz, pstrick or other tool in tex? here are the data of ...
13
votes
1answer
12k views

Typesetting a directed, weighted graph with TikZ

I just started doing things with TikZ today and I run into a problem: there is just no example code snippets for typesetting directed, weighted graphs. Can anyone supply one simple example in an ...
12
votes
4answers
2k views

Is there a pure LaTeX or TeX package for chart drawing?

We are creating an easy-to-use LaTeX template for our institution. I'd like to have a pure LaTeX way to create simple bar graphs and pie charts. Does anything exist? I can certainly throw the students ...
12
votes
3answers
2k views

How to mark a node in a graph with a pattern

I would like to mark my nodes in a graph without using colors because it will be printed in black and white. For example by drawing a vertical line in the first vertex, a horizontal line in the ...
12
votes
3answers
1k views

Any way to get neato-like node placement in a TikZ graph?

I'm interested in drawing molecular connectivity graphs in TikZ. Using \node and child without any positions I am able to draw a tree diagram which is semi-useful as I can easily illustrate the ...
12
votes
2answers
10k views

Basic bar chart with text as x axis labels

I am trying to create a very basic bar chart using pgfplots. I need four bars representing percentages with text as labels under the x axis. Text labels contain spaces and accented, non-English ...
12
votes
1answer
648 views

Problems with the `graphs` library

According to the documentation for version 3.0.0 of PGF/TikZ (Section 19 Specifying Graphs, page 258), the powerful graphs library: [...] offers a powerful path command for specifying how the ...
11
votes
3answers
237 views

Matrix from graph description

Are there any LaTeX package that draws/plots/generates a matrix from a "graph" description (node relations). Any type of description/language could be useful. The trick is to generate automaticly a ...
11
votes
1answer
762 views

Package for drawing RDF graphs

Is there some package to draw nice RDF graphs, such as the one below (taken from there)? Can such a graph (with the same style) be produced in TikZ?
11
votes
2answers
628 views

TikZ - Four Colored Circle Split

Following @Alain Matthes's reply on this question, wa can get a picture like this: I am not good enough to adapt the code to split the circle into 4 quarters. Can you help me? ...
11
votes
2answers
667 views

pgfplots: Grid Lines below Filling

I want to fill the area between two curves and have the grid lines below the filling. Is this possible? (From Showing grid on top of plot fill with PGFplots? I thought axis on bottom might work, but ...
11
votes
1answer
3k views

Chart with long x axis text labels looks ugly

Thanks to Caramdir and Alan Munn I am now able to create basic bar charts that use text as x axis labels. Functionally they are perfect, but some of them look kind of ugly. See for yourself: ...
11
votes
1answer
354 views

(ConTeXt MkIV) Text in PiechartMP

So I need to include some pie charts in my document. As I'm using Metapost for all graphics I tried using the PiechartMP Metapost package. But for some strange reason no text shows up, just a very ...
11
votes
1answer
198 views

Climographs (climate diagrams) with pgfplots

I'd like to create climographs (climate diagrams) with pgfplots, but these graphs have some special rules (defined by Walter and Lieth about 50 years ago) for axis scaling which I have absolutely no ...
11
votes
1answer
421 views

How to plot a graph from its adjacency matrix (coordinates manually specified)?

For example, I want to plot a graph whose adjacency matrix is [0,1,0;1,0,1;0,1,0]. I first plot three points labeled by p1,p2,p3, and link the points p1,p2, p2,p3. For a general case, how to link the ...
10
votes
3answers
1k views

Function graphs

Can you help me with my page of function graphs? I could make the first four graphs but there is a problem with plotting by others. All graphs should have the same size like the first four ones. Thank ...
10
votes
3answers
1k views

Drawing a tree of grids

I need to draw a game tree that is similar to the image below. Is there any way to do this using the Tikz package so that the grids can simply be added as nodes?
10
votes
2answers
398 views

How can I produce such a graph of my piecewise function?

I am writing my thesis in behavioural economics and have to draw individual discount functions, I did the following graph with stata, but would love to have it with tikz. I played around in tikz ...
10
votes
2answers
311 views

Use “layered layout” with user-specified node ordering (i.e., without crossing minimization)

If and when someone answers this question in a way that demonstrates lua programming for TikZ graph algorithms, I will guarantee a 500-point bounty to that person. According to the PGF 3.0 manual, ...
9
votes
3answers
415 views

Mendelian Inheritence Chart

I would like to be able to create a simple chart that depicts Mendelian Inheritence, like this one: I'm not too picky about how it looks, as long as it depicts it accurately. Thanks!
9
votes
2answers
313 views

Plotting a directed graph using pgfplots

I have a few files in the following format: x y 12 12 12 13 13 15 15 15 15 13 13 12 12 10 10 8 8 8 8 10 10 12 12 12 12 10 10 10 And I wanted to plot them as a directed graph in a ...
9
votes
1answer
379 views

tikz problem (non-continuous function) [duplicate]

I want to plot a function x^3/(x^2-1) but it doesn't work. \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture}[domain=-5:5,smooth] \draw[->] (-5,0) -- (5,0) ...
9
votes
2answers
335 views

Typesetting a directed hypergraph in tikz

Similar to several other questions, I am trying to draw hypergraphs in tikz. I want to draw a directed hypergraph that looks something like those in this image from here: As opposed to other ...
9
votes
2answers
5k views

How to draw Bar & Pie Chart

I'm want to include two graphs mentioned below in a document. I'm able to draw pie charts using pgf-pie. Is there any package which is capable of generating BAR & PIE Chart both? [Also which ...
9
votes
1answer
2k views

How do I put loops at an angle in TikZ?

I'm trying to draw a graph in TikZ that has self-loops, and I'd like to be able to specify their position not only as "right" or "above", but something like "above right", i.e. at a 45° angle. How do ...
9
votes
1answer
519 views

TikZ picture too tall

I am typesetting the following equation: \documentclass[12pt]{article} \usepackage{tikz} \begin{document} \begin{equation} f\left( \begin{tikzpicture}[scale=0.5] \tikzstyle{every ...
9
votes
1answer
676 views

Use Graphviz within *TeX

I am trying to generate a a graph with dot/graphviz. Is it possible to include it within *TeX and be compiled at *TeX compile time? I've read about TikZ, but it's not the same syntax, is it possible ...
9
votes
1answer
788 views

Family tree with multiple marriage ties

I'm trying to build a family tree, and among the many examples I've found online this one has been the most useful: How can I improve this family tree in TikZ? However, there are two things I cannot ...
8
votes
6answers
668 views

By which pkg to visualize a hypercube graph?

I am trying to visualise hypercube like the below. I have asked help here but getting nodes on top of each other with the packages there. The N-th hypercube has 2^n nodes and each vertex with the ...
8
votes
2answers
886 views

Create a command to draw edges in a bipartite graph

In a document I need to insert several bipartite graphs, each one with different number of nodes and edge composition. My idea was to create a command with two arguments: the first one for the ...
8
votes
2answers
388 views

Draw edge on arc

I would like to draw an edge between two nodes which lies on a clip of an circle. For small angles I was able to get some more or less realistic appearance by using bend left and bend right, but for ...
8
votes
1answer
402 views

How can I make a graph with irregular time/date intervals on the x-axis?

I have a data set that has values for a set of dates, but these dates don't have a regular interval (i.e. 1 Feb., 3 Feb., 15 Feb., 5 March) . So my question is: is there a package or other method to ...
8
votes
1answer
1k views

Problem with a TikZ/Geogebra plot of an exponential function (even if using CVS version definition)

I wanted to graph the function f(x)=(-1+4x^2)*e^2 in a coordinate system. Using "Export Graphics View as pgf/TikZ" in Geogebra I got the following code (here shown after I did some minor changes ...
8
votes
1answer
973 views

How to draw a hypergraph (forest)?

How can I draw a hypergraph structure (a.k.a. forest) like this: (Note: This is not a duplicate of this question, of course, since that drawing is very different.)