Base Class for lines and markers.
The points to plot
list of (x, y)
pairs
Additional attributes
dict
Warning
All methods are private.
wx.lib.plot.polyobjects.PolyBarsBase
, wx.lib.plot.polyobjects.PolyBoxPlot
, wx.lib.plot.polyobjects.PolyLine
, wx.lib.plot.polyobjects.PolyMarker
Initialize self. See help(type(self)) for accurate signature. |
|
Returns the bounding box for the entire dataset as a tuple with this |
|
Returns the index of closest point on the curve, pointXY, |
|
Scales and shifts the data for plotting. |
|
Set to change the axes to plot Log10(values) |
A tuple of |
|
A tuple of |
|
Get or set the plotted points. |
|
Not yet implemented. |
|
Not yet implemented. |
PolyPoints
(object)¶Base Class for lines and markers.
points (list of (x, y)
pairs) – The points to plot
attr (dict) – Additional attributes
Warning
All methods are private.
__init__
(self, points, attr)¶Initialize self. See help(type(self)) for accurate signature.
boundingBox
(self)¶Returns the bounding box for the entire dataset as a tuple with this format:
((minX, minY), (maxX, maxY))
boundingbox
numpy array of [[minX, minY], [maxX, maxY]]
getClosestPoint
(self, pntXY, pointScaled=True)¶Returns the index of closest point on the curve, pointXY, scaledXY, distance x, y in user coords.
if pointScaled == True, then based on screen coords if pointScaled == False, then based on user coords
getLegend
(self)¶scaleAndShift
(self, scale=(1, 1), shift=(0, 0))¶Scales and shifts the data for plotting.
scale (list of floats: [x_scale, y_scale]
) – The values to scale the data by.
shift (list of floats: [x_shift, y_shift]
) – The value to shift the data by. This should be in scaled
units
None
setLogScale
(self, logscale)¶Set to change the axes to plot Log10(values)
Value must be a tuple of booleans (x_axis_bool, y_axis_bool)
Deprecated since version Feb: 27, 2016
Use the logScale
property instead.
absScale
¶A tuple of (x_axis_is_abs, y_axis_is_abs)
booleans. If a value
is True
, then that axis is plotted on an absolute value scale.
Returns the current value of absScale
Sets the value of absScale
tuple of bool, length 2
ValueError – when setting an invalid value
logScale
¶A tuple of (x_axis_is_log10, y_axis_is_log10)
booleans. If a value
is True
, then that axis is plotted on a logarithmic base 10 scale.
Returns the current value of logScale
Sets the value of logScale
tuple of bool, length 2
ValueError – when setting an invalid value
points
¶Get or set the plotted points.
Returns the current value of points, adjusting for the various scale options such as Log, Abs, or SymLog.
Sets the value of points.
list of (x, y) pairs
Note
Only set unscaled points - do not perform the log, abs, or symlog adjustments yourself.
symLogScale
¶Warning
Not yet implemented.
A tuple of (x_axis_is_SymLog10, y_axis_is_SymLog10)
booleans.
If a value is True
, then that axis is plotted on a symmetric
logarithmic base 10 scale.
A Symmetric Log10 scale means that values can be positive and
negative. Any values less than
symLogThresh
will be plotted on
a linear scale to avoid the plot going to infinity near 0.
Returns the current value of symLogScale
Sets the value of symLogScale
tuple of bool, length 2
ValueError – when setting an invalid value
See also
symLogThresh
See http://matplotlib.org/examples/pylab_examples/symlog_demo.html for an example.
symLogThresh
¶Warning
Not yet implemented.
A tuple of (x_thresh, y_thresh)
floats that define where the plot
changes to linear scale when using a symmetric log scale.
Returns the current value of symLogThresh
Sets the value of symLogThresh
tuple of float, length 2
ValueError – when setting an invalid value
See also
symLogScale
See http://matplotlib.org/examples/pylab_examples/symlog_demo.html for an example.