Plotting helpers¶
Plotting helpers (optional dependency on matplotlib).
If matplotlib isn’t installed these functions raise a clear
ImportError rather than the usual ModuleNotFoundError chain;
otherwise they return matplotlib Axes objects so callers can
further customise the plots.
The module itself imports lazily so just importing
reasitic doesn’t require matplotlib.
- reasitic.plot.plot_shape(shape, *, ax=None, color=None)[source]¶
Plot a shape’s polygons on the xy-plane.
Returns the matplotlib Axes for further customisation.