Errors and Type Aliases#
Error Handling#
Public exceptions are available from plotez.errors.
Base Exceptions#
- class plotez.errors.PlotEZError[source]#
Bases:
ExceptionBase class for exceptions related to plotting operations.
- class plotez.errors.DataError[source]#
Bases:
PlotEZErrorBase class for data-related plotting errors.
- class plotez.errors.ConfigurationError[source]#
Bases:
PlotEZErrorBase class for plot configuration and parameter errors.
- class plotez.errors.OrientationError[source]#
Bases:
PlotEZErrorRaised when an invalid or unexpected plot orientation is used.
Data Exceptions#
- class plotez.errors.ShapeError[source]#
Bases:
DataErrorRaised when an array has an unexpected or incompatible shape.
- class plotez.errors.DataLengthError[source]#
Bases:
DataErrorRaised when arrays that must align have incompatible lengths.
Configuration Exceptions#
- class plotez.errors.AxisLabelError[source]#
Bases:
ConfigurationErrorRaised when
axis_labelsdoes not contain exactly three elements.
- class plotez.errors.TwinXDataError[source]#
Bases:
ConfigurationErrorRaised when
x2_datais supplied for a dual-Y-axis plot.
- class plotez.errors.TwinYDataError[source]#
Bases:
ConfigurationErrorRaised when
y2_datais supplied for a dual-X-axis plot.
- class plotez.errors.XArrayNot1D[source]#
Bases:
ConfigurationErrorRaised when the x dimension of a data array is not one-dimensional.
- class plotez.errors.YArrayNot1D[source]#
Bases:
ConfigurationErrorRaised when the y dimension of a data array is not one-dimensional.
Type Aliases#
Note
AxesReturn describes single- and dual-axis plotting results:
Axes | tuple[Axes, Axes]. Grid functions such as n_plotter and
two_subplots return a shaped NDArray of Axes directly.
Type aliases used throughout PlotEZ.
Name |
Description |
|---|---|
|
Re-export of |
|
|