P_astro_project.mpl_utils
This script was produced by the LVK and it used for formatting plots.
Module Contents
Functions
|
Takes a |
- P_astro_project.mpl_utils.limit_ax_oom(ax, n_oom: int, x_or_y: str, measure_from: str = 'upper', base: float = 10.0) None
Takes a
matplotlib.axes._subplots.AxesSubplotobject, and limits its limits ton_oomorders of magnitude (in the logarithmic base set by thebaseparameter,10.0by default) from either the upper or lower data limit (set withmeasure_fromargument, “upper” by default). Either operates on x- or y-axis, set by passing “x” or “y” forx_or_yargument.If the data limits are already within the specified orders of magnitude, no changes will be made.