pyllar :: Axes :: Axes :: Class Axes
[hide private]
[frames] | no frames]

Class Axes

source code

The Axes is the region of the figure window where the plot is displayed.

Instance Methods [hide private]
 
__init__(self, renWin)
Create a new instance of Axes.
source code
 
SetViewDirection(self, direction)
Set the direction of the camera.
source code
 
SetViewUp(self, direction)
Set the view up direction of the camera.
source code
 
SetDistance(self, distance)
Set the normalized distance of the camera from the center of the Axes.
source code
 
AddChild(self, child)
Add a child (Plottable) to the Axes.
source code
 
UpdateBounds(self)
Update the bounds of the Axes.
source code
 
SetRanges(self)
Automatically adjust the ranges of all three axes based on the bounds of the children.
source code
 
ScaleChildren(self)
Scales the children so that they'll fit inside the normalized axes ranges.
source code
 
SetXLim(self, lim=[0,0])
Set the x axis limits.
source code
 
SetYLim(self, lim=[0,0])
Set the y axis limits.
source code
 
SetZLim(self, lim=[0,0])
Set the z axis limits.
source code
 
GetXLim(self)
Get the x axis limits.
source code
 
GetYLim(self)
Get the y axis limits.
source code
 
GetZLim(self)
Get the z axis limits.
source code
 
SetNumTicks(self, n)
Set the number of ticks on all axes.
source code
 
UpdateGrid(self)
Update the grid based on the axis ticks.
source code
 
SetGridVisible(self)
Makes the grid visible (still experimental).
source code
 
SetGridInvisible(self)
Makes the grid invisible (still experimental).
source code
 
SetXLabel(self, label)
Set the x axis label.
source code
 
SetYLabel(self, label)
Set the y axis label.
source code
 
SetZLabel(self, label)
Set the z axis label.
source code
 
GetXLabel(self, label)
Get the x axis label.
source code
 
GetYLabel(self, label)
Get the y axis label.
source code
 
GetZLabel(self, label)
Get the z axis label.
source code
Class Variables [hide private]
  num = 0
  current = None
  standardDirection = array([0.894, 0.358, 0.268])
  standardViewUp = array([0, 0, 1.])
  frontDirection = array([0, 1., 0])
  frontViewUp = array([0, 0, 1.])
  backDirection = array([0,-1., 0])
  backViewUp = array([0, 0, 1.])
  rightDirection = array([1., 0, 0])
  rightViewUp = array([0, 0, 1.])
  leftDirection = array([-1., 0, 0])
  leftViewUp = array([0, 0, 1.])
  topDirection = array([0, 0, 1.])
  topViewUp = array([1., 0, 0])
  bottomDirection = array([0, 0,-1.])
  bottomViewUp = array([1., 0, 0])
  perspectiveDistance = 6.5
  parallelDistance = 15
Method Details [hide private]

SetViewDirection(self, direction)

source code 

Set the direction of the camera.

The direction is defined as a 3 element vector.

SetViewUp(self, direction)

source code 

Set the view up direction of the camera.

The direction is defined as a 3 element vector.

AddChild(self, child)

source code 

Add a child (Plottable) to the Axes.

All Plottable's should do this on initialization.

UpdateBounds(self)

source code 

Update the bounds of the Axes.

Although the actual bounds of the Axes will always be between -1 and 1, the children are scaled according to what their combined spatial bounds are.