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

learn more… | top users | synonyms

12
votes
4answers
5k 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?
4
votes
1answer
333 views

How to reduce the space between the y-axis label and the plots

Please I need some one to help me out with this issue. I have been able to add common axes labels to two plots I made with excel successfully. Now the problem I have is that the class file (name ...
6
votes
2answers
566 views

How to add a single axis label to multiple graphs

Please I need someone to help me address this problem. I have three graphs that I created using excel and I have been able to save them as eps files. I've been able to use the \raisebox command to ...
4
votes
0answers
149 views

Heavy arrow tips for xy-pic

Arrows in xy-pic have narrow heads, but I need heavy tips for my graphs. I tried the following arrow definition, but the tip of the arrow enters into the circle of graph node. \documentclass{report} ...
6
votes
2answers
192 views

Wavy arrows in xy-pic

What method should I use, to draw beautiful wavy arrows. So far I tried the following. I use xy-pic package, there I use @{~>} definition for the arrow. The code I've composed is like this: ...
2
votes
2answers
357 views

tikz graphs: draw an edge from a node without a goal node

Is it possible to write an edge going from a node but out into nowhere, see image below (ignore the trace of goal node that is visible)
2
votes
3answers
351 views

programs for creating diagrams

Does anybody know of some programs I can use to make diagrams that look like the following I would use the above diagram directly, however due to copyright issues, this is not an option for me. ...
1
vote
0answers
40 views

Save and load TikZ graphs [duplicate]

Possible Duplicate: Outsourcing TikZ code Pardon the question, I'm an undergrad using TikZ and LaTeX to write-up my final term report. Is there a way to write the code for a tikzpicture ...
2
votes
1answer
353 views

Graphing algebraic functions and converting to image (PNG)

My goal is to be able to generate, on-the-fly, a small variety of graphs--linear functions, quadratics, inequalities, multiple plots of each. Nothing more complex than what you'd see in a high school ...
9
votes
3answers
210 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 ...
6
votes
2answers
345 views

Tikz Composite Midpoint Rule Horizontal Lines

I have 'written' the following code to get the attached diagram but am unable to draw horizontal lines above the even notes, i.e. x-2j and x-2n as well as x-0 and x-2. This was extremely straight ...
4
votes
1answer
288 views

Could someone help me pgfplots the following functions (w/labels)?

This is an extension of my previous question concerning graphing a pair of functions using pgfplots (please see link below): Could somebody figure out how to create the following graph using pgfplot? ...
6
votes
1answer
1k views

How to create a gaussian curve with pgfplot?

What I want: This is what I have so far in terms of code: \newcommand\gauss[2]{1/(#2*sqrt(2*pi))*exp(-((x-#1)^2)/(2*#2^2))} % Gauss function, parameters mu and sigma \begin{tikzpicture} ...
1
vote
2answers
499 views

Scientific workplace piecewise constant function

I want to sketch a piecewise constant function. Ie S(t) on y axis, time on x axis. The values of S(t) are arbitrary, I just want a piecewise constant function with time partition 1/10 to use: ...
7
votes
3answers
767 views

Tikz graph: weight above the node

Hy, I would like to know if it is possible in Tikz graphs put the weight above the vertice (this way, all edges to the destination node has the same weight) instead above the edge. Here is an ...
3
votes
1answer
602 views

Tikz Graph with Nodes and Edges and some Dots

I want to draw an image like this with TIKZ. I want to convert the Squares to rectangles, thus I am using Tikz. However, I am unable to draw those dots in TIKZ. Here is the code that I have ...
14
votes
1answer
532 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 ...
5
votes
0answers
413 views

Trying to make an automatic histogram (in pgfplots?)

How can I convert the automatic table generated by the macro, to an automatic histogram? Is the best way do it using pgfplots? \documentclass{article} \RequirePackage{ifthen} ...
2
votes
1answer
269 views

Problem with simple TikZ plot

I'm trying to make an explanatory graph that boils down to annotating curves between two arbitrarily placed points. My TikZ/Tex code just isn't compiling even though it closely follows the manual; ...
6
votes
1answer
525 views

How to grey out edges in a tikz graph?

I'm trying to grey out edges of a graph to high a region of interest. For instance, I would like to make every edge expect for that labeled "interest" grey in the following MWE. \usefonttheme{serif} ...
1
vote
1answer
309 views

pgf stacked bar graph with line plot

I want to draw a stacked bar graph plot with one parameter as a line plot. Here is my code below - \begin{tikzpicture} \pgfplotstableread{Figures/measurements.dat} \datatable ...
4
votes
1answer
788 views

Making chart grids be finer grained

For the MWE below: \documentclass{report} \usepackage[left=2.5cm,right=2cm,top=2cm,bottom=2cm]{geometry} \usepackage[T1]{fontenc} \usepackage{tikz,pgf} \usepackage{pgfplots} \usepackage{slashbox} ...
1
vote
1answer
505 views

Tikz Graph Example – all nodes stacked

I try to reproduce the \graph example of the pgf manual 2.10 page 208: \documentclass{article} \usepackage{tikz} \usetikzlibrary{graphs} \begin{document} \tikz \graph {a -> { b , c } -> d}; ...
6
votes
1answer
367 views

Drawing a Petersen graph as a voltage graph

I am trying to illustrate a voltage graph construction of the Petersen graph. In practice, this means: The outer cycle will be labelled clockwise (a,0),...,(a,4) with arcs oriented in that order; ...
6
votes
1answer
278 views

As my exponentials in TikZ plot a parabolic style function, do I install CVS version, and how?

I'm very new to LaTeX. I have read Is plotting exponential graphs a known source of bugs in TikZ? and implemented the code Jake supplied and this fixed the current problem. Thanks Jake :). On this ...
4
votes
2answers
2k views

How to create simple graph in latex

How to create simple graph in latex. x,y axis with straight line drawn at (0,0) at 45 degress through the x,y axis. The graphs here are excellent but just too complicated for newcommers. here is ...
3
votes
2answers
259 views

Numbers as markers with \foreach and additional macro based on counter

First issue I would like to plot several curves using the \foreach command and have their number in the sequence as markers. Here is the code I came up with : \documentclass{article} ...
2
votes
1answer
401 views

How can I position the text within a node of a graph?

I would like to create a visualization of the Bellman-Ford algorithm. To do so, I need to add the information of the weight (number or $\infty$) and the predecessor (letter) into every node. This ...
28
votes
2answers
3k 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.
6
votes
2answers
4k views

How to create a line graph in LaTeX?

I am in need of displaying line graphs in a LaTeX document but I can't figure out how. I searched on Google but did not receive any promising results. Is it really possible to do this within LaTeX or ...
14
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 ...
5
votes
2answers
3k views

Simple directed graph with some dashed edges

My code here does what I would like, except some node outlines are dashed where they should be solid. I realise I am probably putting the dashed in the wrong place, but I just tried my way to this. ...
14
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 ...
7
votes
2answers
694 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 ...
1
vote
1answer
244 views

Errors when using dot2texi in MikTeX

I receive errors in log file while trying to compile the following code: \documentclass{article} \usepackage{tikz} \usetikzlibrary{shapes,arrows} \usepackage{dot2texi} \begin{document} ...
3
votes
3answers
840 views

Drawing a collaboration graph or tree with TikZ

I'm trying to draw a collaboration graph for C data structures. originally I got dot files from Doxygen which I tried to convert using dot2tex with varying degrees of success, though none produced ...
10
votes
3answers
1k 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 ...
5
votes
2answers
786 views

Dependency graph with TikZ

I would like to make a TikZ diagram to show the detailed dependency structure of the theorems in my thesis with nodes and subnodes. Ex: Theorem 4 (A) coding theorem (A1) ...
6
votes
2answers
4k views

Self loop in an undirected graph using TikZ

How can I create a self loop without a direction on the edge? \path[every node/.style={font=\sffamily\small}] (3) edge[loop] node {$e_{1}$} (3); creates the loop I want but has a direction.
5
votes
1answer
555 views

Can we define a multiedge command using tikz?

I usually need to draw graphs with multiple edges. I would really appreciate if someone can tell me how to write a multiple edge command which will allow me to write one line instead of repeatedly ...
5
votes
2answers
4k views

tikzpicture: How can I draw a loop right-below?

\begin{tikzpicture}[->,>=stealth',shorten >=1pt,auto,node distance=4cm, thick,main node/.style={circle,draw,font=\Large\bfseries}] \node[main node] (1) {1}; \node[main ...
17
votes
3answers
15k 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). ...
5
votes
3answers
695 views

What are some good graphing libraries/programs for embedding in LaTeX

The de-facto plotting program for LaTeX is, AFAIA, gnuplot. Is there such a program for drawing graphs/diagrams? I am aware of graphviz and at first glance it appears very useful, but it is missing ...
1
vote
0answers
451 views

Could you represent this sort of network graph, using latex? [closed]

This came up on a rpg.stackexchange question, as an option to represent relations between character with a graph from this PDF where: Every node of this graph is another person who "[who] can do ...
7
votes
2answers
2k views

How to label complex edges with graph library?

I would like to use graph TikZ-library from CVS version (sourceforge or tlcontrib) to draw flowcharts. Something like the one shown in chapter 5 from TikZ manual. In this tutorial, some styles are ...
4
votes
3answers
1k views

WYSIWYG Editor for drawing trees (and export them as vector images)

Is there a good WYSIWYG solution out there for quickly drawing tree-like structures (e.g. in combination with graphviz)? The nodes may contain arbitrary text and should be positioned automatically. I ...
11
votes
1answer
10k 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 ...
3
votes
1answer
347 views

PSTricks---plotstyle LSM (Least Square method)

I am discovering PSTricks's plotstyle=LSM to make a regression analysis y=m x + c. Here is my code: \documentclass[12pt]{article} \usepackage{filecontents} \begin{filecontents*}{data.dat} 0.0 0.0 ...
3
votes
1answer
3k views

PGFPLOTS: figure and table formatting

Just after an hour spending browsing through the pgfplots manual, I am trying to have a figure and a table side by side (both the figure and the table use the same data). So I still have lot to learn! ...
3
votes
2answers
987 views

Using PSTricks to plot from a data file

I would like to know how to use PSTricks to read and plot data from a text data file e.g. 8 98826 year 2008 9 104925 year 2009 10 140153 year 2010 11 178414 year 2011 And three further ...