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

learn more… | top users | synonyms

5
votes
1answer
63 views

Is it possible to draw a tree using standard syntax without overlapping, if graphdrawing is loaded?

It seems that merely loading the graphdrawing library can mess up drawing a tree using the standard TikZ syntax. Is there a way to avoid this unwanted effect? For example: ...
5
votes
1answer
97 views

How to draw a complex graph

I can draw a simple graph like this, but if I want to draw a complex one like this, I feel frustrated. How could I do it? The following are the codes which I drawn the first graph. ...
0
votes
0answers
23 views

Tikz, graphdrawing - common style for groups of nodes

I'm using tikz's graphdrawing library. I would like to define a common style for a group of nodes. What is the correct way of doing so ? Currently I specify the style per node, e.g. \graph[random ...
2
votes
1answer
40 views

A simple cycle with text instead numbers

can somebody help me to replace numbers to any text in the following graph: % A simple cycle % Author : Jerome Tremblay \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture} ...
3
votes
0answers
40 views

Why is this edge not straight when using subgraphs in layered layout?

The MWE below produces a simple graph. When I add the two upper nodes A1 and B1 to a subgraph the horizontal alignment is lost which is understandable, since the nodes in the subgraph are positioned ...
5
votes
3answers
101 views

foreach loop for adding arcs using commands path and edge

i want to know how to use the foreach loop for adding arcs using commands \path and edge. For instance, the following code generates a cycle and the task is to add the arcs not manually: ...
5
votes
1answer
127 views

tikz: help with this foreach loop

i'm getting an error in this code, can someone help me. I'm trying to create two concentric cycles, but it doesn't seems to work. \def\n{10} \defn\radio{3.00cm} \begin{tikzpicture} \foreach \x in ...
4
votes
1answer
86 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
79 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
66 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; ...
3
votes
3answers
134 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
72 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} ...
7
votes
2answers
271 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
446 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
68 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
147 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
121 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
56 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
47 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?
6
votes
3answers
302 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
110 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
45 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).
1
vote
1answer
130 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
38 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
240 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
246 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
37 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
95 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
208 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
132 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
157 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
62 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
93 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
107 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
172 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
123 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
88 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
81 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
119 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
147 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
97 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
158 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
191 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
264 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
215 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
430 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
88 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
86 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
50 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 ...