Tagged Questions

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

273 views

How to add edges to automatically generated graphs

I have no background in drawing in LaTeX and I just came across the tkz-berge package. I want to draw a complete graph, a small-world graph and a random connected graph. The complete graph was easy ...
64 views

.eps graph overlapped with caption [closed]

I need your help desperately. I used latex to compile everything and used dvipdf to convert it to pdf. The graph (test) came out is overlapped with the caption. Can anyone point out what is the ...
71 views

Vector PDF graph become blank after system reinstall

I used illustrator to create vector graphs and saved them as PDF files and used in latex file. I compiled the .tex file with xelatex (I use MikTeX on Windows 7) and everything was OK. The vector ...
4k views

710 views

How to plot a graph from its adjacency matrix (coordinates manually specified)? [duplicate]

For example, I want to plot a graph whose adjacency matrix is [0,1,0;1,0,1;0,1,0]. I first plot three points labeled by p1,p2,p3, and link the points p1,p2, p2,p3. For a general case, how to link the ...
374 views

Climographs (climate diagrams) with pgfplots

I'd like to create climographs (climate diagrams) with pgfplots, but these graphs have some special rules (defined by Walter and Lieth about 50 years ago) for axis scaling which I have absolutely no ...
4k views

2D and 3D vectors in Tikz

I would like to draw some 2D and 3D vectors in Tikz with certain properties. The following primitive graph sums what I desire: I just need the first quadrant of the Cartesian coordinate system for ...
2k views

Problems with the graphs library

According to the documentation for version 3.0.0 of PGF/TikZ (Section 19 Specifying Graphs, page 258), the powerful graphs library: [...] offers a powerful path command for specifying how the ...
289 views

Creating a directed graph with some cosmetic structure

Via utilizing Tikz, I would like to create a graph such as the following : So I would like to have a classical directed graph, where there is some text in each node. Moreover there is a single ...
696 views

Background I'm trying to write a rapport that relies on some rudimentary graph theory and as such I'd like to write a section explaining the basics of it. Trying to do I've run into a bit of a snag ...
74 views

Automatic axes for graphs with PSTricks

I have datas from Matlab and I would like to plot them using PSTricks. My datas are in a .data file. So far I have done a graph but only with Manual adjustment of the axes: \psset{xunit=0.025mm, ...
576 views

Circular graph with many nodes

I have a simple circular graph with N nodes. However N could be arbitrarily large, so I use an ellipsis between nodes. I use the following code: \documentclass[a4paper,10pt]{article} \usepackage[...
439 views

Ellipsis positioning when drawing large graphs in Tikz

I tried to use Tikz to draw large graphs with specific toologies and I am running into some problems. Since not all nodes can be represented explicitly, I am forced to use an ellipsis. I tried to ...
200 views

controlling the angle of line/curve endings

Is there a way to control the line endings of a line/curve to be vertical. It is easier to explain with a picture. Here I have drawn a curve, but as you can see the lines end at the angle equal to the ...
3k views

Tikz edge label position

Is there a way to set the location of the position of edge label when using the tikz graph package? I attempted to look for samples of this being done in the manual, but was unable to find any (...
666 views

Change distance between nodes in tikz graph

I am attempting to do this, but I cannot seem to find the correct syntax for it in LaTeX. Here is what I have: \documentclass[12pt]{article} \usepackage[english]{babel} \usepackage{tikz} \...
222 views

LaTeX Stretching the x-axis of the graph

I asked this question on Reddit and they told me to come here. I'm wondering if there is a way to stretch my graph, because it is narrow horizontally. Here is a picture: \documentclass{article} \...
1k views

How to give a label to nodes which already contain a tikzpicture with nodes.

I am a beginner at TikZ and LaTeX. This is what I currently have: I would like to label each of these rectangles (i.e. graphs) with a single letter, i.e. G. This is the code for a single graph in ...
6k views

Importing a .png file into .tex file

I've been trying to input a graph into my .tex file, but it won't work. I've put the .png file in the same folder as the .tex file and a part of my code looks like: \documentclass[16pt, a4paper]{...
160 views

Plot 2-D data point in just one plan

everyone! I have got a little problem trying to draw in LaTeX. Let me try to explain: I have a xyz-axis, as you can see on the figure below. Plotting any 2-D data point graph in the xy-axis: \...
548 views

Bent paths via relative point from node to node

I'm trying to draw a network flow diagram in tikz, and am having some problems. Here is what I have so far: However I'm having 2 problems with it currently. First of all, for some reason, arrow ...
860 views

Tikz paths not starting/ending at edges of nodes

I'm trying to draw a graph with directed arcs. There will be quite a few arcs, so I'll need to bend them in various ways so the diagram is legible. Here is what I have so far: \begin{tikzpicture} ...