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

learn more… | top users | synonyms

4
votes
1answer
401 views

How do you make a tkz graph with edges starting and ending at the same vertex?

I am trying to use the tkz-graph package to put together a directed graph. I have never used it before, so I am trying to piece together examples I have found on the internet. Below is the code that I ...
12
votes
1answer
355 views

Git History Graph 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.
6
votes
1answer
438 views

Finite complete graph of arbitrary size in Tikz

I want to present a complete graph of arbitrary finite size. This means a number of nodes which are interconnected to all other nodes. In addition I want to clearify that the number of nodes is not ...
11
votes
2answers
542 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? ...
1
vote
1answer
394 views

Drawing bipartite graph

I want to draw graphs with white and black vertices, such as square-octagon graph. Someone knows the easy way to draw in Latex? Thanks a lot!
6
votes
1answer
353 views

How can I create a queuing node using tikz?

I am a newbie trying to recreate an M/M/1 queue in tikz and would really appreciate any help.
1
vote
1answer
162 views

Legend entry with curve fits

I am plotting two data sets with curve fits added manually (by defining two functions). How can I edit my legend entry to combine the data points and lines into one icon? So instead of having four ...
1
vote
0answers
76 views

Work diagram help [duplicate]

I am trying to create this sort of diagram (or graph). The X axis is time, Y axis are projects/tasks and lines through them are people (employees) working on certain task in given time period. I've ...
5
votes
1answer
262 views

Undefined control sequence on \frac?

I'd like to generate PDF's for some ad hoc screenshots, but I'm getting an undefined control error. I tried \usepackage{amsmath} after the line \usepackage{pgfplots} but that didn't work. I thought ...
1
vote
1answer
146 views

Can I write descriptions and notes into a diagram with Latex?

I just wanted to know if it is possible to write things into diagrams. I'm writing a scientific paper in German. So I need to edit a diagram by removing all English descriptions and writing them in ...
6
votes
1answer
231 views

Are my programming skills transferable to LaTeX and TikZ?

I just want to ask what is LaTeX and TiKZ programming language like? Basically, I am looking at projects available in my final year. The project I looked at is a graphical interface to draw graphs in ...
2
votes
1answer
132 views

dot2tex and math mode

I have successfully installed dot2texi but I'm facing an issue with the math mode. The sign (_) in math mode works fine however other symbols do not work. For example it ignores the bar over b in the ...
3
votes
2answers
3k views

How do I draw a graph in tikz where the vertices are only represented by the label names?

Right now, what I have is \documentclass[11pt]{article} \usepackage{tikz} \usepackage{tkz-graph} \tikzstyle{vertex}=[circle, draw, inner sep=0pt, minimum size=6pt] \newcommand{\vertex}{\node[vertex]} ...
3
votes
2answers
255 views

Methods for graphing simulation data

I ran a large bootstrap simulation to gather data which I would now like to include in my paper. Currently, I have the data in an Excel spreadsheet so I could get a quick overview of what my results ...
9
votes
1answer
635 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 ...
4
votes
1answer
183 views

Graphing with custom axes

How would one go about creating a graph in LaTeX with custom axes, colors and labels, something like this: If anyone knows the exact code to create this, that would be extremely helpful, but if not, ...
5
votes
2answers
266 views

Typesetting digraph with weighted edges, varying vertex size, multiple lines in vertex

I would like to draw the graph displayed in the following picture with TikZ and also do some modifications: Firstly I want to carry the labels of the nodes to the inside as a second line. For ...
9
votes
2answers
257 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 ...
10
votes
1answer
590 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?
3
votes
1answer
169 views

Problems in creating graphs using dataplot

I have four simple databases: db1 dy,volume 2009,120000 2010,160000 2011,400000 2012,650000 2013,1000000 2014,1500000 db2 dy,volume 2009,400000 2010,500000 2011,1600000 2012,2200000 2013,2500000 ...
2
votes
1answer
100 views

How to place two columns of graph on the same page

Please I need someone to help me out with this task. I used the code listing below to achieve the graph shown in Figure1. \documentclass[12pt,a4paper,notitlepage]{article} ...
5
votes
1answer
421 views

How to draw a graph along with probabilty tables using TikZ package

I need help to draw a Directed Acyclic Graph of Bayesian Network along with probability of each node using TikZ package. Here is an example: Table grid can be a full or partial as in above example. ...
18
votes
1answer
505 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 ...
3
votes
1answer
105 views

qtree items do not have the same baseline

I drew a tree with the qtree package. However, this tree has no consistent baseline. Screenshot: MWE: \documentclass{scrreprt} \usepackage{qtree} \begin{document} \Tree[.table ...
3
votes
1answer
169 views

I want to create graph with nodes as in the image:

I wrote an example graph with \xymatrix - that's OK. I added circles with &*+[Fo], that's OK too. I added table inside first circle with \begin{tabular} - it is OK. But table needs to be rotated ...
5
votes
1answer
274 views

Referencing a Vertex that has Math Typesetting inside it to make an Edge

I want to create math font inside of my vertex circles, AND draw edges between them. How I typically create network graphs is as follows: \usepackage{tkz-graph} \begin{tikzpicture} ...
11
votes
1answer
324 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 ...
0
votes
0answers
82 views

How to draw graphs in tikz/latex? [duplicate]

Possible Duplicate: Using LaTeX to draw time series graphs and histograms I have never drawn any graphs in latex/tikz. What is the best and the simplest way to draw graphs in latex. I want ...
8
votes
1answer
354 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 ...
14
votes
4answers
6k 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
391 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
758 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 ...
5
votes
1answer
174 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
220 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
441 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
366 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
41 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
376 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
215 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
363 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
306 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
555 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
854 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
754 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
585 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
431 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
281 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
662 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
336 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 ...