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

learn more… | top users | synonyms

6
votes
4answers
391 views

Simple and intuitive tool for generating simple diagrams

I am looking for a simle and intuitive tool for generating simple diagrams to be included in tex document. The graph I want to convert into tex is given below: Ideally, I would like to end up with ...
1
vote
1answer
46 views

Graphing y=x^2 and y=x

I want to draw the region bounded by y=x^2 and y=x. Any ideas? I was hoping this would be somewhat simple. I've tried used a similar, with \begin{axis}..\end{axis}, but it doesn't like that. Did I not ...
4
votes
3answers
111 views

Adjusting edge and vertex label

I am using the following code (thanks to several answers on TeX.Stackexchange) to draw a small bipartite graph: \documentclass{article} \usepackage{tkz-berge} \usetikzlibrary{fit,shapes,arrows} ...
4
votes
1answer
84 views

How to plot a bifurcation graph

I am trying to make just a general picture that looks like this one: It doesn't have to look exactly like this, but just look like a general bifurcation in similar spirit to this one. And here is ...
1
vote
1answer
46 views

How to put labels on a plotted graph?

\documentclass{amsart} \usepackage{tikz} \usepackage{pst-plot} \usetikzlibrary{decorations.markings} \usetikzlibrary{arrows} \begin{document} \begin{tikzpicture} \draw[->] (-3.5,0) -- (3.5,0) ...
2
votes
1answer
26 views

plotting spectra using r-studio in latex

Hi all. How can I create Raman graphs in latex? I have allready plotted it but I couldn't got it using Latex. So how can I merge between two software?
4
votes
3answers
85 views

Drawing undirected graphs in LaTeX

I came across this graph in the question Drawing graphs in LaTeX: without arrows? Is it possible to draw graphs like this one in LaTeX but without the arrows? edit: I found this piece below, but ...
1
vote
2answers
79 views

Windows spreadsheet - latex export

I am trying to find a Windows available spreadsheet with an option of graphs export to LaTeX. It would be great to export it directly from Excel, but I've read that it is not possible furthermore I am ...
1
vote
1answer
30 views

How to typeset a graph of a binary relation?

What is the best way to typeset in LaTeX a graph of a binary relation on $\mathbb{R}$ similar to the following: The bold lines denote a binary relation (consisting of three line segments).
0
votes
1answer
108 views

How can we draw these graphs like in this book?

Can you show me which tools we can use to draw the graphs look like in this book? (see below figure). Sorry, I don't know exactly where I can post this question.
1
vote
0answers
34 views

Including graph using tikz causes not including bibliography file

I am experiencing problems using package tikz. I have produced a graph in R and want to include it in my tex file using package tikz. After I include the the tex file with graph in myfile.tex with ...
4
votes
2answers
121 views

drawing curve line between predefined edges

Im trying to draw the following figure in LaTeX format: My question is how can I draw the curved line passing through the nodes shown in the figure? And how to change the color of the nodes left ...
2
votes
0answers
145 views

TikZ new graphing library - how to use?

Ubuntu 14.04 tex version : TeX 3.1415926 (TeX Live 2013/Debian) After seeing this post I really wanted to play with the example and library, however I can't seem to get it working on my system. ...
0
votes
0answers
40 views

Graph not drawing correctly when within a node [duplicate]

I am having a problem getting a graph to come out correctly. \documentclass[journal]{IEEEtran} \usepackage{graphicx} \begin{axis}[ title={}, xlabel={$q$}, ylabel={Time /seconds}, xmin=6, ...
4
votes
1answer
30 views

without using explicite coordinates - graph with nodes aligned above

I want to draw a structure as shown in the picture so that the knots 3 and 2 are on the top left and top right of 1. And 4 should be in the middle of 3 and 2 in the level on top of them and so on. ...
2
votes
1answer
82 views

Can anyone help in drawing this kind of graph?

Can anyone help in drawing the graph of the kind shown in figure with edge intersections? I struggled with pstricks and started to learn tikz but not able to do it. Kindly help as am not getting how ...
4
votes
2answers
68 views

changing y axis values

How do you change the y axis points to letters? Specifically I'm interested in using musical notes in the y axis. This is what I've tried and I received an error. \begin{tikzpicture}[>=latex] ...
1
vote
0answers
87 views

how to draw multiple graphs next to each other with labels

How to draw multiple graphs next to each other in a document? Also, how to name each graph with a label? One more thing is I need to show an dashed edge to intersect the graph edge, in that case how ...
5
votes
0answers
132 views

Visualisation of planes within hypercubes in LaTex? [closed]

The 3rd hypercube is the cube below where planes cover the space in different ways. The 4th hypercube can be considered as many connected 3rd hypercubes. You are interested in planes, the example is ...
0
votes
0answers
37 views

Use of block diagrams or graphs in Journals or Conference templates

I have a question regarding the research journals and conference templates given by majority of templates from IEEE, Springer. I need to add few block diagrams, tree diagram such as spanning tree, ...
5
votes
1answer
79 views

Xy curves not obeying round frames

I am trying to draw the Frucht graph in with Xy-pic, using the polygon extension. The natural way to make curved inside edges ("origin" ; "destination" **\crv{"center"}) doesn't quite reach the ...
1
vote
1answer
88 views

An example about diagrams and graphs with Tikz on manual V2.10 Page 70 fails [closed]

My question is that I cannot compile the codes provided on page 70 in the TikZ Manual V2.10. I just add some packages but it cannot compile. Can anybody help? My codes are shown as below: ...
0
votes
1answer
108 views

How to draw adjacency array with TikZ?

I will draw a graph representation as adjacency array, also something like that: How to make it? I didn't found any examples like the picture above.
2
votes
1answer
95 views

Automating a graph drawing procedure

Here it is: I want to draw a big graph, say 50 vertices and ~200 edges. I'm getting the edges from the output of GAP, a programme for computational algebra. As it is, I have no idea what the graph ...
2
votes
1answer
72 views

Area between graphs of two functions

This is a follow-up question to Area between curves. After one day, i found out how to do it in LaTeX (Miktex): \documentclass[10pt]{article} \usepackage{pstricks-add} \begin{document} ...
2
votes
1answer
76 views

Text in a graph in TikZ

I have the following code. \begin{tikzpicture} [auto, vertex/.style={circle,draw=black!100,fill=black!100,thick,inner sep=0pt,minimum size=1mm}] \node (v1) at ( 1,1) [vertex,label=left:$v_1$] {}; ...
2
votes
2answers
101 views

Prevent edge from cutting through node

I got the following TikZ Graph: \begin{tikzpicture}[auto,node distance=2cm,thick, node/.style={shape = rectangle,draw}] \node[node] (en) {ENTRY}; \node[node, label=180:$B_1$:] (1) [below of=en]{ ...
1
vote
1answer
110 views

Draw graphs (DAGs) in Latex

I am searching for a latex package which allows to draw something like the DAGs in this page. Does anyone know how to draw them? Thanks for the support!
6
votes
1answer
87 views

How to vary distance between siblings in TikZ graph?

The example below renders a simple graph. I would like to branch with 1 cm to the left as default, but to branch a bit further in some cases. Say, I want f to branch 2 cm to the left. How would I do ...
2
votes
1answer
125 views

pgfplots significant figures

I'm trying to work out how to change the number of sig figs in the axis labels. I.e., I want the graph to display 0.0, 1.0, etc. Any ideas? \documentclass{memoir} \usepackage{pgfplots} ...
0
votes
1answer
181 views

how can I draw a functional graph in tikz?

Let X is a finite set and $f:X \rightarrow X$ is a function. how can i draw the graph with vertex V=X and edges (x,f(x)) with x in V?
2
votes
1answer
154 views

Edge weights and node labels

I am trying to draw a graph with node and edge weights. Here is what I've managed to do so far. I've placed node names. but I want to place node weights under the circles. And I want to put edge ...
2
votes
1answer
149 views

Help drawing vectors in a PGFplots axis environment using calculated coordinates and \draw

Why does using \draw and calculated coordinates not follow what a graph of projectile motion ought to look like? Any suggestions for code that would work using formulas in coordinates? ...
5
votes
2answers
379 views

TikZ: Parametric Gnuplot plot fails to appear

I am trying to create a parametric curve using the source code below. It will not show up on my graph at all. The curve is supposed to look like this: \documentclass{article} \usepackage{tikz} ...
4
votes
1answer
75 views

How to create circular graphs with labels in Latex?

I am trying to draw these graphs with labels in Latex. I already drew a graph in this style with this code: \documentclass[tikz, border=5]{standalone} \usetikzlibrary{calc,arrows} \tikzset{ every ...
1
vote
1answer
74 views

TikZ: How to distinguish multiple vertices with the same id?

(Almost minimal) working example: \documentclass{beamer} \usepackage{tikz} \usepackage{verbatim} \usetikzlibrary{arrows,shapes} \begin{document} \pgfdeclarelayer{background} ...
0
votes
1answer
45 views

Replace vertex in TikZ

I'm completely new to TikZ and took a look at an example graph: http://www.texample.net/tikz/examples/prims-algorithm/ For a presentation I need to replace a vertex by another vertex at a certain ...
2
votes
3answers
167 views

Plotted line in tikz stops in middle of grid

The plotted line stops and doesn't go on till the border of the grid: This is my code: \documentclass{article} \usepackage{tikz} \usepackage{amsmath} \begin{document} ...
4
votes
1answer
143 views

how do I create a complete graph in tikz?

I have the following code that I created: \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture}[->] \node[label=west:$s$,circle,fill,inner sep=1.5pt] (n0) at (-1,1) ...
2
votes
1answer
92 views

pgfplots very small Y values

I need to plot the following function: ...
4
votes
1answer
122 views

drawing directed graph

How can I draw an edge from (ab) to ($a^3$$b$)? I tried using \Edge(ab)($a^3$$b$) like I did for drawing an edge from (b) to (e) but the same method didn't work. I think it has something to do with ...
3
votes
0answers
86 views

Node size in graph with pgf 3.0

I want to draw some graphs with pgf 3.0, but the size of the nodes are not being taken into account when laying out the graph using spring layouts. Here is an example document: ...
2
votes
1answer
89 views

Styling TikZ graph

I have created a TikZ graph, like this: \documentclass[a4paper,11pt]{scrartcl} \usepackage{tikz} \usetikzlibrary{positioning} \begin{document} \begin{tikzpicture}[->,node distance=2cm] \node ...
4
votes
3answers
165 views

How do I arrange 9 figures, evenly spaced out, on a page?

\begin{figure}[!ht] \centering \begin{tikzpicture} \begin{axis}[ width = 12cm, height = 12cm, axis y line = middle, axis x line = middle, grid style = {dashed, gray!50}, grid = both, % Switch on ...
1
vote
2answers
181 views

How do I plot a graph with the x axis across the middle?

I have a huge project for my grade 11 physics class. I've just started using latex and i want to know how to plot a graph but as in the picture shows, the x axis is in the middle of the graph ...
5
votes
2answers
525 views

Petersen graph with new tikz graph library

I'm considering moving from tkz-berge to the new tikz graph library for drawing my graphs (in the sense of graph theory). I have produced the Petersen graph, but is there is a more elegant way of ...
0
votes
0answers
152 views

\graphicspath not working

I have saved a .eps file on a folder. I am using ShareLatex, but the code does not work. I couldn't find anything wrong with it looking at previous answers. Any hints? The complete code looks like ...
3
votes
1answer
159 views

How to make a vertex with math inside using tkz-graph?

Okay, my goal is to make a diagram like this in LaTeX: With the difference, that I want where you see dots or dots2, I want to have $\ldots$ displayed. I'm trying to get that working using the ...
5
votes
1answer
280 views

How to color vertices in a TikZ graph?

Consider the following code to draw a graph using TikZ: \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{graphs,graphs.standard} \begin{document} \begin{tikzpicture} \graph ...
3
votes
2answers
204 views

Drawing specific curves in LaTeX

I have the following table to draw as a graph in LaTeX. Notice that we don't have coordinates to be drawn. For each method, there is one accuracy value. For example the Method 1 has an accuracy ...