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

learn more… | top users | synonyms

3
votes
1answer
110 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
129 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
145 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
395 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
111 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
93 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 ...
10
votes
2answers
296 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
929 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
691 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
89 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
480 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
85 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
334 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
225 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
144 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
200 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
111 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
338 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
377 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 ...
5
votes
1answer
454 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
179 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
139 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$}; ...
11
votes
1answer
384 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 ...
11
votes
1answer
186 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
738 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
556 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 ...
4
votes
1answer
138 views

Creating a directed graph with some cosmetic structure

Via utilizing Tikz, I would like to create a graph such as the following : So I would like to have a classical directed graph, where there is some text in each node. Moreover there is a single ...
4
votes
2answers
116 views

How to denote adjacent vertices?

Background I'm trying to write a rapport that relies on some rudimentary graph theory and as such I'd like to write a section explaining the basics of it. Trying to do I've run into a bit of a snag ...
2
votes
1answer
56 views

Automatic axes for graphs with PSTricks

I have datas from Matlab and I would like to plot them using PSTricks. My datas are in a .data file. So far I have done a graph but only with Manual adjustment of the axes: \psset{xunit=0.025mm, ...
1
vote
2answers
219 views

Circular graph with many nodes

I have a simple circular graph with N nodes. However N could be arbitrarily large, so I use an ellipsis between nodes. I use the following code: \documentclass[a4paper,10pt]{article} ...
4
votes
2answers
207 views

Ellipsis positioning when drawing large graphs in Tikz

I tried to use Tikz to draw large graphs with specific toologies and I am running into some problems. Since not all nodes can be represented explicitly, I am forced to use an ellipsis. I tried to ...
4
votes
1answer
98 views

controlling the angle of line/curve endings

Is there a way to control the line endings of a line/curve to be vertical. It is easier to explain with a picture. Here I have drawn a curve, but as you can see the lines end at the angle equal to the ...
2
votes
1answer
1k views

Tikz edge label position

Is there a way to set the location of the position of edge label when using the tikz graph package? I attempted to look for samples of this being done in the manual, but was unable to find any ...
4
votes
1answer
231 views

Change distance between nodes in tikz graph

I am attempting to do this, but I cannot seem to find the correct syntax for it in LaTeX. Here is what I have: \documentclass[12pt]{article} \usepackage[english]{babel} \usepackage{tikz} ...
4
votes
1answer
107 views

LaTeX Stretching the x-axis of the graph

I asked this question on Reddit and they told me to come here. I'm wondering if there is a way to stretch my graph, because it is narrow horizontally. Here is a picture: \documentclass{article} ...
6
votes
2answers
305 views

How to give a label to nodes which already contain a tikzpicture with nodes.

I am a beginner at TikZ and LaTeX. This is what I currently have: I would like to label each of these rectangles (i.e. graphs) with a single letter, i.e. G. This is the code for a single graph in ...
2
votes
2answers
191 views

Importing a .png file into .tex file

I've been trying to input a graph into my .tex file, but it won't work. I've put the .png file in the same folder as the .tex file and a part of my code looks like: \documentclass[16pt, ...
4
votes
1answer
126 views

Plot 2-D data point in just one plan

everyone! I have got a little problem trying to draw in LaTeX. Let me try to explain: I have a xyz-axis, as you can see on the figure below. Plotting any 2-D data point graph in the xy-axis: ...
2
votes
1answer
180 views

Bent paths via relative point from node to node

I'm trying to draw a network flow diagram in tikz, and am having some problems. Here is what I have so far: However I'm having 2 problems with it currently. First of all, for some reason, arrow ...
4
votes
1answer
469 views

Tikz paths not starting/ending at edges of nodes

I'm trying to draw a graph with directed arcs. There will be quite a few arcs, so I'll need to bend them in various ways so the diagram is legible. Here is what I have so far: \begin{tikzpicture} ...
0
votes
1answer
275 views

Import selected rows without header in pgfplots

Import of selected rows of a data set (without header line) The import should make use of the column numbers instead of row headers. The pgfplots' manual presents the possibility to use the command ...
3
votes
1answer
135 views

Best way to produce a graph similar to one generated by Maple

I wish to produce the following graph from Maple in my Latex document, here is my Maple code: p := x -> ...
5
votes
3answers
226 views

Move graph nodes on a circular path while keeping the circle

I would like to show nodes on a graph. The graph shape should be a circle. I would like to move the nodes while keep the circular shape. The following is what I can create with four nodes and it ...
3
votes
0answers
123 views

How to color groups of bars in a graph, coming form an external file?

I have a graph displaying bars and error bars, the numbers comming from an external .dat, being simply black and white. And this is how I got there: \documentclass[12pt]{report} ...
1
vote
0answers
136 views

Drawing the area under the curve of a function in LaTeX

Could you give me some guidance for producing a simple graph showing the integral of a function as the area under its curve?
3
votes
2answers
257 views

Overwrite TikZ auto placement of weights in graph

So I have the following graph: \documentclass{article} \usepackage{amsmath} \usepackage{tikz} \usepackage[english]{babel} \begin{document} ...
1
vote
0answers
89 views

ASCII graphs in LaTeX document?

I have ASCII graphs which I want to get nicer like the below. How can I embed ASCII graphs nicely converted to LaTeX document? Input 11 11 01 10 <-> 10 01 00 ...
4
votes
4answers
434 views

How to plot a curve in a polar form r = f(Θ)?

Can we use LaTeX to make the graph of $\rho = \sec(\theta)$?
5
votes
2answers
337 views

How can I make this diagram about graphs in LaTeX?

How can I make the following diagram in LaTex: