pdk.Plot.Components ($Date: 2002/12/04 10:15:53 $)
index
pdk/Plot/Components.py

Component classes for the plotting package of pdk.

Based on graphite, which was written by Joseph and Michelle Strout in 1999.

FOG 03/2000

 
Classes
            
pdk.PropertyManagers.ComponentPropertyManager(pdk.PropertyManagers.PropertyManager)
Axis(pdk.PropertyManagers.ComponentPropertyManager, Component)
Frame(pdk.PropertyManagers.ComponentPropertyManager, Component)
Legend(pdk.PropertyManagers.ComponentPropertyManager, Component)
TickMarks(pdk.PropertyManagers.ComponentPropertyManager, Component)
pdk.PropertyManagers.PropertyManager(__builtin__.object)
AxisMapping
Component
Axis(pdk.PropertyManagers.ComponentPropertyManager, Component)
Frame(pdk.PropertyManagers.ComponentPropertyManager, Component)
Label
Title
Legend(pdk.PropertyManagers.ComponentPropertyManager, Component)
TickMarks(pdk.PropertyManagers.ComponentPropertyManager, Component)
Dataset
 
class Axis(pdk.PropertyManagers.ComponentPropertyManager, Component)
     
Purpose:axis component of a graph

 
  
Method resolution order:
Axis
pdk.PropertyManagers.ComponentPropertyManager
Component
pdk.PropertyManagers.PropertyManager
__builtin__.object

Methods defined here:
__init__(self, whichAxis=0, **initPropertyD)
addTickmarks(self, name=None, **propertyD)
adds tick marks with name name.
exportString(self, selfname)
getActualRange(self)
getAxisIndex(self)
isMapped(self)
logorigin(self)
return the start of our range, transformed by the log base.
logscale(self)
return the scale factor needed to map our range into 0-1, after a log transformation.
origin(self)
return the start of our range.
scale(self)
return the scale factor needed to map our range into 0-1.
setActualRange(self, dataRange)
depending upon AUTO settings and the range of the data given in dataRange set the actual bounds and tickmark spacing for this axis.
submit(self, graph)
viewOrigin(self, whichAxis)
return the origin of this graph axis in view space, along the given coordinate axis (X, Y, or Z) -- normally, this origin is 0.
viewScale(self, whichAxis)
return the extent of this graph axis in view space, along the given coordinate axis (X, Y, or Z) -- normally, this extent is 1.

Data and non-method functions defined here:
PROPERTIES = {'drawpos': <pdk.Properties.AnyProperty instance>, 'label': <pdk.Properties.InstanceProperty instance>, 'labeldist': <pdk.Properties.FloatProperty instance>, 'linestyle': <pdk.Properties.InstanceProperty instance>, 'logbase': <pdk.Properties.FloatProperty instance>, 'range': <pdk.Properties.SequenceProperty instance>, 'visible': <pdk.Properties.BooleanProperty instance>}
 
class AxisMapping(pdk.PropertyManagers.PropertyManager)
     
Purpose:mapping of dataset coordinates to graph axes

 
  
Method resolution order:
AxisMapping
pdk.PropertyManagers.PropertyManager
__builtin__.object

Methods defined here:
__getitem__(self, index)
__init__(self, axisNames=[], **initPropertyD)
__len__(self)

Data and non-method functions defined here:
PROPERTIES = {'x': <pdk.Properties.StringProperty instance>, 'y': <pdk.Properties.StringProperty instance>, 'z': <pdk.Properties.StringProperty instance>}
 
class Component(pdk.PropertyManagers.PropertyManager)
     
Purpose:base class for all graph components

 
  
Method resolution order:
Component
pdk.PropertyManagers.PropertyManager
__builtin__.object

Methods defined here:
__init__(self, **initPropertyD)
appendPrimitive(self, primitive)
configure(self, **propertyD)
getPrimitives(self)
isModified(self, flag=None)
setPrimitives(self, primitiveL)
submit(self)
 
class Dataset(pdk.PropertyManagers.PropertyManager)
     
Purpose:plot data container class

 
  
Method resolution order:
Dataset
pdk.PropertyManagers.PropertyManager
__builtin__.object

Methods defined here:
__add__(self, other)
__array__(self, t=None)
__getitem__(self, index)
__getslice__(self, i, j)
__init__(self, indata, **initPropertyD)
Parameters:
  • indata : a sequence of data values
  • initPropertyD : initialization properties
__len__(self)
__radd__ = __add__(self, other)
__rsub__(self, other)
__sub__(self, other)

Data and non-method functions defined here:
PROPERTIES = {}
 
class Frame(pdk.PropertyManagers.ComponentPropertyManager, Component)
     
Purpose:the frame component of a graph

 
  
Method resolution order:
Frame
pdk.PropertyManagers.ComponentPropertyManager
Component
pdk.PropertyManagers.PropertyManager
__builtin__.object

Methods defined here:
submit(self, graph)

Data and non-method functions defined here:
PROPERTIES = {'bottom': <pdk.Properties.FloatProperty instance>, 'left': <pdk.Properties.FloatProperty instance>, 'linestyle': <pdk.Properties.InstanceProperty instance>, 'right': <pdk.Properties.FloatProperty instance>, 'top': <pdk.Properties.FloatProperty instance>}
 
class Legend(pdk.PropertyManagers.ComponentPropertyManager, Component)
     
Purpose:implements the legend component of a graph

 
  
Method resolution order:
Legend
pdk.PropertyManagers.ComponentPropertyManager
Component
pdk.PropertyManagers.PropertyManager
__builtin__.object

Methods defined here:
submit(self, graph)

Data and non-method functions defined here:
PROPERTIES = {'boxed': <pdk.Properties.BooleanProperty instance>, 'boxstyle': <pdk.Properties.InstanceProperty instance>, 'orientation': <pdk.Properties.EnumProperty instance>, 'position': <pdk.Properties.PropertyGroup instance>, 'textstyle': <pdk.Properties.InstanceProperty instance>}
 
class TickMarks(pdk.PropertyManagers.ComponentPropertyManager, Component)
     
Purpose:implements the axis tick marks component
Detail:keeps information about a set of tick marks -- how big they are, the spacing, labels, etc. Note that overlapping tickmarks are not handled yet.

 
  
Method resolution order:
TickMarks
pdk.PropertyManagers.ComponentPropertyManager
Component
pdk.PropertyManagers.PropertyManager
__builtin__.object

Methods defined here:
__init__(self, **propertyD)
getActualSpacing(self)
returns the actual spacing.
setActualSpacing(self, magnitude)
sets the actual spacing. If the "spacing" property is set to AUTO, the actual spacing will be set 10^`magnitude`; otherwise, it will be set to magnitude.
submit(self, graph, axis)

Data and non-method functions defined here:
PROPERTIES = {'inextent': <pdk.Properties.FloatProperty instance>, 'labeldist': <pdk.Properties.FloatProperty instance>, 'labels': <pdk.Properties.AnyProperty instance>, 'labelstyle': <pdk.Properties.InstanceProperty instance>, 'linestyle': <pdk.Properties.InstanceProperty instance>, 'logsteps': <pdk.Properties.IntProperty instance>, 'offset': <pdk.Properties.FloatProperty instance>, 'outextent': <pdk.Properties.FloatProperty instance>, 'spacing': <pdk.Properties.AnyProperty instance>}
 
class Title(Label)
     
Purpose:the title component of a graph

 
  
Method resolution order:
Title
Label
Component
pdk.PropertyManagers.PropertyManager
__builtin__.object

Methods defined here:
__init__(self, **initPropertyD)
 
class Label(Component)
     
Purpose:label component

 
  
Method resolution order:
Label
Component
pdk.PropertyManagers.PropertyManager
__builtin__.object

Methods defined here:
submit(self, graph)

Data and non-method functions defined here:
PROPERTIES = {'position': <pdk.Properties.SequenceProperty instance>, 'style': <pdk.Properties.InstanceProperty instance>, 'text': <pdk.Properties.StringProperty instance>}
 
Author
            
$Author: gathmann $