Point Lables

I go the initial examples going in an IPython Notebook with no problem, looks
great!
The SIRS example, and the Price network I'd be happy to post the Gists of
them at github. since so many are now using IPython notebooks for analysis.

In the examples there are none with hover labels on the resulting plots.

In doing visual exploration it is way helpful to be able to see the
properties of a point in a cluster.. The pretty graphs alone are not so
helpful?

I'm sure it should be obvious but I am new to graph analysis...

You can place labels on the vertices with the 'vertex_text' parameter:

    graph_draw(g, vertex_text=labels)

where 'labels' is some property map.

Best,
Tiago

Tiago de Paula Peixoto <tiago <at> skewed.de> writes:

> In doing visual exploration it is way helpful to be able to see the
> properties of a point in a cluster.. The pretty graphs alone are not
> so helpful?

You can place labels on the vertices with the 'vertex_text' parameter:

    graph_draw(g, vertex_text=labels)

where 'labels' is some property map.

This puts simple text labels right on the vertex. Is there a way to show an
alt-type text when hovering over a vertex? This would be great to show
detailed information about a specific vertex.

Background: I am using graph-tool as a way to debug the building of a
FORTRAN/C/C++ program (several 1000's source files) and many external
libraries). The vertex therefore represent quite a lot of information and it
would be great to show a simple text label in the vertex marker and hover to
show details.

Yes, just do:

   graph_draw(g, display_props=[labels])

When you hover over a vertex, the corresponding label will appear on the
lower right corner. The "display_props" takes a list of property
maps. You can pass many, and all of them will be displayed.

Best,
Tiago

This is just what I was looking for, thank you! graph-tool is among the best
projects I have ever used, thank you so much guys!