The value of the two bounds can either be determined externally,
or (in a subclass) by the autobounds method. The autobounds in
this top class sets the scaling limits to the extreme values in the
data.
|
Methods
|
|
|
|
|
__call__
|
__call__ ( self, data )
Map the incoming data to a range-256 data array |
|
|
__init__
|
__init__ ( self, scaleobj )
Constructor.
Takes either a LinearScale or a LogScale object that
will be used to map the data to a range-256 data array. |
|
|
autobounds
|
autobounds ( self, data )
Determine the bounds to scale between.
Internal use.
This version just takes the data limits. It should be overwritten
in subclasses. |
|
|
gethigh
|
gethigh ( self )
Get the high bound. |
|
|
getlow
|
getlow ( self )
Get the low bound. |
|
|
limitbounds
|
limitbounds ( self )
Fix the bounds if they are outside of the data range.
internal use. |
|
|
limits
|
limits ( self, data )
Determine the maximum and minimum of the data.
assigns to self.lowlimit and self.highlimit.
Internal use. |
|
|
newbounds
|
newbounds ( self )
Tell the object to re-determine the bounds on the next data. |
|
|
newscale
|
newscale ( self, scaleobj )
Set a new scaling type.
Takes a LinearScale or LogScale object that will be used to
map the data to a range-256 data array. |
|
|
roundbounds
|
roundbounds ( self )
Rounds off the bounds to a useful precision.
Internal use. |
|
|
sethigh
|
sethigh ( self, val )
Set the high bound from an external source. |
|
|
setlow
|
setlow ( self, val )
Set the low bound from an external source. |