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

learn more… | top users | synonyms

4
votes
1answer
70 views

What is the easiest way to draw a graph with asymptotes using TikZ?

I have a graph with some extra graphics on it: \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture}[ declare function={ f(\x) = 4/(1+pow(\x/5, 2)); }] % partitions ...
0
votes
3answers
63 views

Taylor's diagrams package : set color of individual elements

In Paul Taylor's diagrams package, is it possible to set the color of specific elements in a diagram? If so, how? I have tried using \color{a_color}. It changes the color of part of the diagram, but ...
3
votes
1answer
57 views

AND-OR Graph from Horn clauses

Does anyone know if there is a way to generate a nice graph from Horn clauses? for example: Ideally, I would like to generate AND-OR graphs like this directly from Horn clauses written in Latex; ...
1
vote
2answers
67 views

How can I make the loops fatter?

In this code, how can I make my loop fat? I know how to make it longer, but I want it wider as well. Please try to tell me using this code, and not new code. I'm new to tikZ and this is what is ...
3
votes
1answer
56 views

Changing arrow style between graph and legend

I want to have the arrows on the ends of the graph but have the legend just show straight lines (without arrows). MWE: \documentclass[12pt]{article} \usepackage{amsmath, amssymb} ...
6
votes
2answers
158 views

Putting tick marks on graph without label using TikZ

I'm trying to create a piecewise function on a colored background with TikZ that has tick marks on the coordinate axes every 2 units but a grid that intersects the axes every 1 unit. The problem I ...
6
votes
4answers
433 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
58 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
128 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
103 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
50 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
36 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?
5
votes
3answers
163 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
95 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
40 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
122 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
36 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
167 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
175 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
35 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
88 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
115 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
112 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
140 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
50 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
88 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
99 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
137 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
109 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
80 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
79 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
111 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
123 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
91 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
133 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
187 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
212 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
173 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
399 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
83 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
80 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
47 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
179 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
161 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
122 views

pgfplots very small Y values

I need to plot the following function: ...
4
votes
1answer
135 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
93 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
102 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
173 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 ...