Axes¶
-
class
nata.plots.Axes(xlim: Optional[tuple] = None, ylim: Optional[tuple] = None, xlabel: Optional[str] = None, ylabel: Optional[str] = None, title: Optional[str] = None, xscale: Optional[str] = 'linear', yscale: Optional[str] = 'linear', linthreshx: Optional[float] = None, linthreshy: Optional[float] = None, aspect: Optional[str] = 'auto', legend_show: Optional[bool] = True, legend_loc: Optional[str] = 'upper right', legend_frameon: Optional[bool] = False, cb_show: Optional[bool] = True, index: Optional[int] = 0, fig: Any = None)¶ Container of parameters and parent and child objects (including plotting backend-related objects) relevant to draw a figure axes.
- Parameters
xlim (
tuple, optional) – Limits of the horizontal axis in the format(min,max). If not provided, it is inferred from the dataset(s) represented in the axes.ylim (
tuple, optional) – Same asxlimfor the vertical axis.xlabel (
str, optional) – Label of the horizontal axis. If not provided, it is inferred from the dataset(s) represented in the axis.ylabel (
str, optional) – Same asxlabelfor the vertical axis.xscale (
{'linear','log', 'symlog'}, optional) – Scale of the horizontal axis. If not provided, defaults to'linear'. If set to'symlog',linthreshxis required.yscale (
{'linear','log', 'symlog'}, optional) – Same asxscalefor the vertical axis.linthreshx (
float, optional) – Range within which the horizontal axis is linear. Applicable only whenxscaleis set to'symlog'.linthreshy (
float, optional) – Same aslinthreshxfor the vertical axis.title (
str, optional) – Axes title. If not provided, it is inferred from the dataset(s) represented in the axes.legend_show (
bool, optional) – Controls the visibility of the axes legend, when applicable. If not provided, defaults toTrue.legend_loc (
str, optional) – Controls the position of the axes legend, when applicable. Seematplotlib.axes.Axes.legend()for available options. If not provided, defaults to'upper right'.legend_frameon (
bool, optional) – Controls the visibility of the axes legend frame. If not provided, defaults toFalse.cb_show (
bool, optional) – Controls the visibility of the axes colorbar, when applicable. If not provided, defaults toTrue.index (
int, optional) – Position of the axes in the parent figure. Must be between0andN-1, whereNis the number of child axes objects in the parent figure. Increases along rows before columns.