python-igraph manual

For using igraph from Python

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

Class DescartesCoordinateSystem

source code

                 object --+            
                          |            
 baseclasses.AbstractDrawer --+        
                              |        
baseclasses.AbstractCairoDrawer --+    
                                  |    
                   CoordinateSystem --+
                                      |
                                     DescartesCoordinateSystem

Class implementing a 2D Descartes coordinate system object.

Instance Methods [hide private]
 
__init__(self, context, bbox, bounds)
Initializes the coordinate system.
source code
 
_recalc_scale_factors(self)
Recalculates some cached scale factors used within the class
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]
  bbox
Returns the bounding box of the coordinate system
  bounds
Returns the lower and upper bounds of the X and Y values

Inherited from object: __class__

Method Details [hide private]

__init__(self, context, bbox, bounds)
(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.
  • bounds - minimum and maximum X and Y values in a 4-tuple.
Overrides: object.__init__

draw(self)

source code 

Draws the coordinate system.

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).

Overrides: CoordinateSystem.local_to_context

Property Details [hide private]

bbox

Returns the bounding box of the coordinate system

Get Method:
unreachable.bbox(self) - Returns the bounding box of the coordinate system
Set Method:
unreachable.bbox(self, bbox) - Sets the bounding box of the coordinate system

bounds

Returns the lower and upper bounds of the X and Y values

Get Method:
unreachable.bounds(self) - Returns the lower and upper bounds of the X and Y values
Set Method:
unreachable.bounds(self, bounds) - Sets the lower and upper bounds of the X and Y values

   Home       Trees       Indices       Help