wx.lib.plot.utils¶This is a collection of utilities used by the wx.lib.plot package.
Functions Summary¶s -> (s0,s1), (s1,s2), (s2, s3), ⦠|
|
Raise PendingDeprecationWarning and display a message. |
|
Creates a scaled and shifted 2x1 numpy array of [x, y] values. |
|
Wrapper around |
Classes Summary¶Generic class for describing which sides of a box are displayed. |
|
Base class for warnings about deprecated features. |
|
Decorator / Context Manager to revert pen or brush changes. |
s -> (s0,s1), (s1,s2), (s2, s3), â¦
Raise PendingDeprecationWarning and display a message.
Uses inspect.stack() to determine the name of the item that this is called from.
new_func (string.) â The name of the function that should be used instead.
Creates a scaled and shifted 2x1 numpy array of [x, y] values.
The shift value must be in the scaled units.
x (float) â The x value of the unscaled, unshifted point
y (float) â The y valye of the unscaled, unshifted point
scale (np.array) â The scale factor to use [x_sacle, y_scale]
shift (np.array) â The offset to apply [x_shift, y_shift].
Must be in scaled units
a numpy array of 2 elements
np.array
Note
\(new = (scale * old) + shift\)
Wrapper around _DisplaySide that allows for âoverloadedâ calls.
If value is a boolean: all 4 sides are set to value
If value is a 2-tuple: the bottom and left sides are set to value
and the other sides are set to False.
If value is a 4-tuple, then each item is set individually: (bottom,
left, top, right)
value (bool, 2-tuple of bool, or 4-tuple of bool) â Which sides to display.
TypeError if setting an invalid value.
ValueError if the tuple has incorrect length.
_DisplaySide