Package igraph :: Module drawing :: Class DescartesCoordinateSystem
[hide private]
[frames] | no frames]

Class DescartesCoordinateSystem

object --+
         |
        DescartesCoordinateSystem

Class implementing a 2D Descartes coordinate system object.

Instance Methods [hide private]
 
__init__(self, context, bbox, bounds)
Initializes the coordinate system.
 
_get_bbox(self)
 
_get_bounds(self)
 
_recalc_scale_factors(self)
 
_set_bbox(self, bbox)
 
_set_bounds(self, bounds)
 
local_to_context(self, x, y)
Converts local coordinates to the context coordinate system (given by the bounding box).
 
plot(self)
Draws the coordinate system.

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

Properties [hide private]
  bbox
The bounding box of the coordinate system
  bounds
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)

 

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__

Property Details [hide private]

bbox

The bounding box of the coordinate system

Get Method:
_get_bbox(self)
Set Method:
_set_bbox(self, bbox)

bounds

The lower and upper bounds of the X and Y values

Get Method:
_get_bounds(self)
Set Method:
_set_bounds(self, bounds)