python-igraph manual

For using igraph from Python

   Home       Trees       Indices       Help   
Package igraph :: Package drawing :: Module graph :: Class UbiGraphDrawer
[hide private]

Class UbiGraphDrawer

source code

                  object --+        
                           |        
  baseclasses.AbstractDrawer --+    
                               |    
baseclasses.AbstractXMLRPCDrawer --+
                                   |
                  object --+       |
                           |       |
  baseclasses.AbstractDrawer --+   |
                               |   |
             AbstractGraphDrawer --+
                                   |
                                  UbiGraphDrawer

Graph drawer that draws a given graph on an UbiGraph display using the XML-RPC API of UbiGraph.

The following vertex attributes are supported: color, label, shape, size. See the Ubigraph documentation for supported shape names. Sizes are relative to the default Ubigraph size.

The following edge attributes are supported: color, label, width. Edge widths are relative to the default Ubigraph width.

All color specifications supported by igraph (e.g., color names, palette indices, RGB triplets, RGBA quadruplets, HTML format) are understood by the Ubigraph graph drawer.

The drawer also has two attributes, vertex_defaults and edge_defaults. These are dictionaries that can be used to set default values for the vertex/edge attributes in Ubigraph.

Instance Methods [hide private]
 
__init__(self, url='http://localhost:20738/RPC2')
Constructs an UbiGraph drawer using the display at the given URL.
source code
 
draw(self, graph, *args, **kwds)
Draws the given graph on an UbiGraph display.
source code

Inherited from AbstractGraphDrawer: ensure_layout

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Static Methods [hide private]
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, url='http://localhost:20738/RPC2')
(Constructor)

source code 

Constructs an UbiGraph drawer using the display at the given URL.

Parameters:
  • url - the URL where the XML-RPC calls for the service should be addressed to.
  • service - the name of the service at the XML-RPC address. If None, requests will be directed to the server proxy object constructed by xmlrpclib.ServerProxy; if not None, the given attribute will be looked up in the server proxy object.
Overrides: object.__init__

draw(self, graph, *args, **kwds)

source code 

Draws the given graph on an UbiGraph display.

Parameters:
  • clear - whether to clear the current UbiGraph display before plotting. Default: True.
Overrides: baseclasses.AbstractDrawer.draw

   Home       Trees       Indices       Help