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

learn more… | top users | synonyms

3
votes
0answers
53 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 ...
2
votes
1answer
54 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
98 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
16 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
553 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
67 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
21 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
72 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
79 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
40 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
71 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
61 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
79 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
74 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
63 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
30 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
33 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
98 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
60 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
90 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
94 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
110 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 ...
34
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
375 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
100 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
76 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
256 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
884 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
552 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
65 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
241 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
67 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
217 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
123 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
139 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
183 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 ...
4
votes
1answer
93 views

Draw string with linking numbers or no linking number?

How can I use LaTex (p.s. I use Mac OS 10.5.8 with TexShop 2.47) to draw strings with linking numbers or no linking numbers? If any experts know any examples below, please feel free to comment. The ...
1
vote
0answers
201 views

Plotting Multiple Time Series plots in LaTeX using PGFplots and txt files - Relativity Issues

I have a problem with plotting multiple time series plots in a single graph in Latex. Background: I have three products - Potatoes, Apples, and Oranges. Each products' historical price and ...
10
votes
2answers
335 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 ...
4
votes
1answer
262 views

Showing weights on Tikz graph using “draw edge” commands

I would like to show some numbers as weights of the edges of my Tikz graph. My graph without weights is the following: \begin{figure}[!ht] \begin{tikzpicture}[shorten >=1pt, auto, node ...
4
votes
1answer
142 views

Drawing directed hyperedges with TikZ

I'm currently working with modelchecking of symbolic dependecy graphs for my semester project in Computer Science, and am dire need of an easy way to draw dependency graphs preferably using TikZ. My ...
3
votes
1answer
112 views

Automatically define domain of function

I use the following code to depict mathematical functions. This is my coordinate system: \newenvironment{graph}[2]{\begin{tikzpicture}[scale=0.6] \draw[->] (0,0) -- (10,0) node[right] {$#1$}; ...
6
votes
1answer
267 views

How to plot a graph from its adjacency matrix?

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 ...
11
votes
1answer
164 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 ...
6
votes
2answers
585 views

2D and 3D vectors in Tikz

I would like to draw some 2D and 3D vectors in Tikz with certain properties. The following primitive graph sums what I desire: I just need the first quadrant of the Cartesian coordinate system for ...
12
votes
1answer
376 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 ...