python-igraph manual

For using igraph from Python

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

Class MatplotlibGraphDrawer

source code

                object --+        
                         |        
baseclasses.AbstractDrawer --+    
                             |    
           AbstractGraphDrawer --+
                                 |
                                MatplotlibGraphDrawer

Graph drawer that uses a pyplot.Axes as context

Instance Methods [hide private]
 
__init__(self, ax)
Constructs the graph drawer and associates it with the mpl axes
source code
 
draw(self, graph, *args, **kwds)
Abstract method, must be implemented in derived classes.
source code

Inherited from AbstractGraphDrawer: ensure_layout

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

Class Variables [hide private]
  _shape_dict = {'circle': 'o', 'hidden': 'none', 'rectangle': '...
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, ax)
(Constructor)

source code 

Constructs the graph drawer and associates it with the mpl axes

Overrides: object.__init__

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

source code 

Abstract method, must be implemented in derived classes.

Overrides: baseclasses.AbstractDrawer.draw
(inherited documentation)

Class Variable Details [hide private]

_shape_dict

Value:
{'circle': 'o',
 'hidden': 'none',
 'rectangle': 's',
 'triangle-down': 'v',
 'triangle-up': '^'}

   Home       Trees       Indices       Help