Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Size of a Graphviz Graph

Tags:

graphviz

I'm creating a circular graph that contains a thousand edges. It works fine if I only put a few in there, e.g., I can vary the edge length. However, when I put all the data in, I can't seem to control the size anymore. The picture just blows up ridiculously large with just tiny nodes and huge (HUGE) distance to the other nodes.

I'm trying to influence the length and size using weight, size, len, etc. but nothing seems to work. Anyone any ideas how to control the size of the graph?

like image 890
Chrisvdberge Avatar asked Sep 25 '10 19:09

Chrisvdberge


People also ask

What is Python Graphviz?

Graphviz is an open-source graph visualisation software. The graphviz package, which works under Python 3.7+ in Python, provides a pure-Python interface to this software. This package allows to create both undirected and directed graphs using the DOT language.

What is rank in Graphviz?

Ranks and Subgraphs To work out the layout, Graphviz uses a system it calls "ranks". Each node is assigned a higher rank than the highest ranked node that point to it. If your rank direction is set to left to right ( rankdir=LR ), then nodes with a higher rank are placed further to the right.

What is the meaning of Graphviz?

Graphviz (short for Graph Visualization Software) is a package of open-source tools initiated by AT&T Labs Research for drawing graphs specified in DOT language scripts having the file name extension "gv". It also provides libraries for software applications to use the tools.

What is the use of Graphviz?

Graphviz is an open-source python module that is used to create graph objects which can be completed using different nodes and edges. It is based on the DOT language of the Graphviz software and in python it allows us to download the source code of the graph in DOT language.


1 Answers

Use size="width,heigth!" (the exclamation mark is important here)

width and height are "Maximum width and height of drawing, in inches."

like image 164
greg Avatar answered Oct 02 '22 01:10

greg