On 28.03.2015 01:13, Johann wrote:
> Tiago de Paula Peixoto <tiago <at> skewed.de> writes:
>
>>
>> On 06.03.2015 01:20, dartdog wrote:
>>> 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

-- 
Tiago de Paula Peixoto <[email protected]>

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
graph-tool mailing list
[email protected]
http://lists.skewed.de/mailman/listinfo/graph-tool

Reply via email to