python-igraph manual

For using igraph from Python

   Home       Trees       Indices       Help   
Package igraph :: Package drawing :: Module coord :: Class CoordinateSystem
[hide private]

Class CoordinateSystem

source code

                 object --+        
                          |        
 baseclasses.AbstractDrawer --+    
                              |    
baseclasses.AbstractCairoDrawer --+
                                  |
                                 CoordinateSystem
Known Subclasses:

Class implementing a coordinate system object.

Coordinate system objects are used when drawing plots which 2D or 3D coordinate system axes. This is an abstract class which must be extended in order to use it. In general, you'll only need the documentation of this class if you intend to implement an own coordinate system not present in igraph yet.

Instance Methods [hide private]
 
__init__(self, context, bbox)
Initializes the coordinate system.
source code
 
draw(self)
Draws the coordinate system.
source code
 
local_to_context(self, x, y)
Converts local coordinates to the context coordinate system (given by the bounding box).
source code

Inherited from baseclasses.AbstractCairoDrawer (private): _mark_point

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

Properties [hide private]

Inherited from baseclasses.AbstractCairoDrawer: bbox

Inherited from object: __class__

Method Details [hide private]

__init__(self, context, bbox)
(Constructor)

source code 

Initializes the coordinate system.

Parameters:
  • context - the context on which the coordinate system will be drawn.
  • bbox - the bounding box that will contain the coordinate system.
Overrides: object.__init__

draw(self)

source code 

Draws the coordinate system.

This method must be overridden in derived classes.

Overrides: baseclasses.AbstractDrawer.draw

local_to_context(self, x, y)

source code 

Converts local coordinates to the context coordinate system (given by the bounding box).

This method must be overridden in derived classes.


   Home       Trees       Indices       Help