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

learn more… | top users | synonyms

1
vote
1answer
30 views

Why no line drawn when use dot with psmatrix?

I am trying to draw a signal flow graph with \psmatrix where each node is just a dot. However \ncline does not seem to work when mnode is set to dot $ \psmatrix[colsep=1cm,rowsep=1cm,mnode=dot] ...
1
vote
1answer
53 views

How can I specify a minimum length for my graph's edges?

I've just started to use the (new?) graphdrawing library (see section 27 of the TikZ & PGF 3.0.0). It's awesome! However, I can't seem to effect a minimum length for my graph's edges. That's ...
6
votes
1answer
197 views

Classroom Seating Chart in TikZ?

I would like to make a random classroom seating chart starting from a numbered list of students. I would also like to specify the number of seats per row (as it varies in my classroom) and the number ...
1
vote
0answers
61 views

Fitting TikZ graphs into a small space

I am trying to produce a graph of the kind at the end of Kanamori's textbook - "The Higher Infinite": It would be nice to have a method that extends to any graph of implications, so rather than put ...
3
votes
1answer
36 views

Axes in the foreground with PSTricks

With the code shown below, the grid is on the foreground (one can see red lines on the labels...): \documentclass[11pt]{article} \usepackage[letterpaper, textwidth=7in, textheight=9.5in]{geometry} ...
1
vote
0answers
87 views

Organizational Chart / Family Tree using tikz drawing library

Previous questions showed how this can be done with plain tikz. I wonder if it is possible to use tikz drawing library for this purpose. Here are two previous questions that do this without the use ...
5
votes
3answers
166 views

Parametric plot using pgfplots package

I want to make a parametric plot using pgfplot in LaTex. My equations are \rho= K (sinh t-t) P= 1/3 K (sinh t - 8 sinh (1/2) t +3t) with K=1\pi I have written the LaTex code for equations , now ...
0
votes
0answers
45 views

Inserting graph from a software in Latex

I made a graph with Desmos.com. Which I want to insert in my LaTeX code, on the right side of these equations: \documentclass[12pt,a4paper]{article} \usepackage[a4paper, total={6in, 8in}]{geometry} ...
9
votes
2answers
256 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 ...
3
votes
2answers
114 views

How to highlight a path in Tikz with two different colours?

I have a small graph drawn in Tikz with two paths through it highlighted in different colours. However, these paths are going to share an arrow. What I would like is to highlight this arrow with both ...
4
votes
1answer
84 views

Is there an easy way to generate weighted vertices in graphs?

There are several ways to include edge weights in graphs, but what about node/vertex weights? I need each vertex to be labelled with a letter and weighted with a number; I cannot find code that does ...
3
votes
1answer
82 views

Drawing Graph of Markov Chain with “Patches” using Tikz

First time using Tikz. Haven't found any documentation on drawing graphs like these, so I have been reading other examples and trying to modify their code to fit my example. I am trying to reproduce ...
2
votes
1answer
111 views

Draw graphical model with many nodes

So I tried to follow the answer in http://stats.stackexchange.com/questions/16750/software-for-drawing-bayesian-networks-graphical-models with limited success. My problem is How do I incorporate ...
0
votes
0answers
20 views

How do I use fonts from TeX Live in Graphviz?

So I need to set my fonts for dot the way the pt to be the same as in pdflatex - so I'm looking for a way to use the same fonts pdflatex uses. Note also, that I'm unsure whether cm-super or cm-unicode ...
1
vote
2answers
557 views

Why doesn't this code compile?

Why doesn't this code compile? \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture} \GraphInit[vstyle=Classic] \SetGraphUnit{2} \Vertices{circle}{A,B,C,D} ...
1
vote
0answers
90 views

Flip x and y axis of ternary graph

I am trying to reproduce the USDA Soil Triangle. To do so, I would need to flip the x and y axis of the default pgfplots-ternary. I understand, that I could switch my inputs (don't really want to do ...
0
votes
0answers
22 views

Want to run graph on Beamer class

Before this, I run the program code about a graph in \documentclass{article}and it succeed. But, when I change it to \documentclass{beamer} and add \begin{frame} ...content... \end{frame} in the ...
2
votes
1answer
77 views

Subgraph node overlaps with regular - tikz

I'd like to have beautiful state machine without any thinking of it's layout. I also need some node grouping with description of the group. So, I wrote the following: \documentclass{article} ...
3
votes
1answer
87 views

Close a cycle in a TikZ graph with a loop

Consider the following simple flow diagram. I like using the graph drawing library in TikZ for its simplicity and semantics: \documentclass{standalone} \usepackage{tikz} ...
0
votes
0answers
42 views

eps files by originpro 8 do not show properly in LaTeX

The images in my paper are in EPS format. When I execute the paper, the graphs won't appear correctly (either the axes titles, legends or some data is missing). The graphs appear properly in the .eps ...
2
votes
1answer
86 views

Automatic edge placement / avoid collisions in generated graph

I have the following graph, whose labels are generated in a for-loop: \documentclass[tikz,margin=5mm]{standalone} \usetikzlibrary{graphs,graphs.standard,quotes} \usepackage{ifthen} \begin{document} ...
0
votes
2answers
62 views

Little graphs of groups [closed]

I am writing a little document about graphs of groups, and I would like to illustrate the theory with the simple examples of graphs with only one edge: Unfortunately, I do not know how to write ...
2
votes
3answers
96 views

export graphics on excel with quality

I want to export graphs on excel to latex. How I can do it ? Save graph as image ?
0
votes
0answers
79 views

Are there LaTeX packages able to plot Grace language files?

EDIT The below output file as identified below in the comments (thank you) is in the Grace language for plotting. I was wondering if there are any packages capable of using the Grace language to ...
2
votes
0answers
80 views

How to draw RDF graphs in LaTeX? [duplicate]

Is there any solution for drawing simple graphs in LaTeX like the following? I came across tikz but couldn't figure out how to do it. Are there also possibilities to extend such graphs without caring ...
2
votes
1answer
69 views

How to add edges to automatically generated graphs

I have no background in drawing in LaTeX and I just came across the tkz-berge package. I want to draw a complete graph, a small-world graph and a random connected graph. The complete graph was easy ...
1
vote
0answers
32 views

.eps graph overlapped with caption

I need your help desperately. I used latex to compile everything and used dvipdf to convert it to pdf. The graph (test) came out is overlapped with the caption. Can anyone point out what is the ...
0
votes
1answer
35 views

Vector PDF graph become blank after system reinstall

I used illustrator to create vector graphs and saved them as PDF files and used in latex file. I compiled the .tex file with xelatex (I use MikTeX on Windows 7) and everything was OK. The vector ...
3
votes
1answer
124 views

Axis Environment Tick Labels as Text (Including a $)

I am attempting to use the axis environment to build a simple plot line. Is it possible for tick labels to be renamed as text? Instead of numbers I would like the month on the x-axis, and in ...
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 ...
1
vote
0answers
34 views

Colored vertices on a directed graph with sets of Euler cycles [duplicate]

Is there a way to make the vertices on the following directed graph with a set Euler cycles colored? Provide the TeX code as well as explain how to color vertices!
2
votes
0answers
72 views

Help identify tool used to produce graph in LaTeX paper

In a paper by Ruth Gregory (see http://arxiv.org/abs/1203.0576), I found a graph: It does not seem to be an image from an application, e.g. Mathematica, but either rendered/generated by a LaTeX ...
2
votes
0answers
65 views

Fork down edge style with Tikz 3.0 tree graph

When node/child style is used, it is possible to achieve fork down edge style picured here: What would be the syntax for the similar edge style, but using graph? The below MWE produces sloped ...
3
votes
1answer
92 views

Are the line breaks allowed in the PGF 3.0 tree graph nodes?

The node/child layout of the trees allows to break node text into multiple lines. I tried the same with graph but luaLatex compilation never completed (using Texmaker) and I had to stop it, which ...
5
votes
3answers
102 views

Draw a graph using xymatrix. Is there another way?

I am using the package xy to draw simple Graphs or Networks. It allows oriented and non oriented edges and even weights on the edges, but the code is very complicated and it is very difficult to build ...
3
votes
1answer
118 views

How can I easily draw gene regulation pathways in Latex?

It is very common in biology to draw diagrams like the one below to show regulatory interactions between genes: You can see that this is essentially a graph, with 3 key elements: Nodes, which can ...
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 ...
8
votes
3answers
382 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!
3
votes
2answers
104 views

title in graphic with pgfplots

I have the following code: \documentclass[12pt,a4paper]{article} \newcounter{conto} \setcounter{conto}{\time} \usepackage{lmodern} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} ...
2
votes
0answers
81 views

How to draw a graph on a sphere using tikz

I'm trying to make some TiKz graphics for a project I am working on and I am a little stuck. What I am looking for is to be able to draw some planar graphs on a sphere's surface? Any help would be ...
9
votes
2answers
266 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, ...
7
votes
7answers
901 views

Simplest way to create a grid with colored squares and labels

I am trying to create a grid with colored squares, multi-line labels within the squares, and labels on the axes. Is there a simple and easy way to achieve this? This question is the closest I could ...
22
votes
2answers
578 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 ...
3
votes
0answers
72 views

PgfPlots bar with missing data causes columns to be “misplaced” [closed]

I looked for a similar problem here in SE but I couldn't find it. It's just driving me crazy :| Here is a MWE: \documentclass[xcolor=dvipsnames, 10pt, pdflatex]{beamer} \usepackage[utf8x]{inputenc} ...
11
votes
2answers
292 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 ...
2
votes
1answer
71 views

pgfplots: how to add a label to a graph with the option clip=true?

Question I would like to add a label to my graph, on the right of it or at any other place, for instance somewhere above my graph. Is it possible? I want to use the option clip=true, because of the ...
6
votes
2answers
236 views

how to draw a cut through a graph in latex

I want to draw a cut through the graph, like a line passing through the edges from the source to gamma, source to alpha and source to omega. I am doing that to demonstrate a minimum cut in a network ...
2
votes
1answer
142 views

draw side by side graphs and make them more clear

I have two problems and sincerely I am trying to resolve them, but unfortunately I am not able...That is why I will appreciate very much your help. 1) My article architecture consists of two columns ...
3
votes
2answers
141 views

Good Reference Book

I am having a problem getting two sets of data plotted on the same graph and have trawled the www for info on how to solve it. The closest I have found is this TeX.SX post. However, that is a ...
7
votes
3answers
192 views

How to arbitrarily center these drawings?

I have adapted the following to draw lines from the center of a circle out to n equally spaced points on a circle (the n th roots of unity, or the points of an n-gon, or a star graph). I need to be ...