How to increase canvas size?

I'm having trouble with my vertex text running off the edge of the canvas.

For an example see:

I got the impression that "fit_view" with a float would scale things
properly but it does not seem to change anything.

Indeed there seems to be a bug with the fit_view option. I'll provide a fix.

In the meantime, the best approach would be to set fit_view=False, and
scale your vertex positions accordingly.


I've finally fixed this now in git.


Any advice on building from the git repo for python 3? Here's what I get
(ubuntu 14.04):

$ export PYTHON=/usr/bin/python3
$ export PYTHON_VERSION=3.4
$ make clean
$ ./configure --enable-openmp
$ make
$ sudo make install
$ ipython

Python 3.4.0 (default, Apr 11 2014, 13:05:11)
Type "copyright", "credits" or "license" for more information.

IPython 3.1.0 -- An enhanced Interactive Python.
? -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help -> Python's own help system.
object? -> Details about 'object', use 'object??' for extra details.

In [1]: import graph_tool

attachment.html (3.84 KB)

As you can see from the shared library name, the boost::python that is
being used was compiled with python 2.7, while graph-tool was compiled
with 3.4. Do you have a python 3 version of boost::python installed? If
yes, try passing the correct suffix value to --with-boost-python.


This worked for me:

$./configure --enable-openmp --with-boost-python=py34

fit_view works to now, thanks!

attachment.html (3.58 KB)