labcore.analysis.mpl#

Functions

add_legend(ax[, anchor_point, legend_ref_point])

centers2edges(arr)

correctly_sized_figure(widths, heights[, ...])

Create a figure and grid where all dimensions are specified in inches. :param widths: list of column widths :param heights: list of row heights :param margins: either a scalar or a list of four numbers (l, r, t, b) :param dw: white space between subplots, horizontal :param dh: white space between subplots, vertical :param make_axes: bool; if True, create axes on the grid and return, else return the gridspec.

fit_and_plot_1d(ds, name, fit_class[, ...])

format_ax(ax[, top, right, xlog, ylog, ...])

format_right_cb(cb)

get_color_cycle(n, colormap[, start, stop, ...])

pcolorgrid(xaxis, yaxis)

plot_fit_1d(ds, name)

setup_plotting([sns_style, rcparams])

labcore.analysis.mpl.add_legend(ax, anchor_point=(1, 1), legend_ref_point='lower right', **labels_and_handles)[source]#
labcore.analysis.mpl.centers2edges(arr)[source]#
labcore.analysis.mpl.correctly_sized_figure(widths, heights, margins=0.5, dw=0.2, dh=0.2, make_axes=True)[source]#

Create a figure and grid where all dimensions are specified in inches. :param widths: list of column widths :param heights: list of row heights :param margins: either a scalar or a list of four numbers (l, r, t, b) :param dw: white space between subplots, horizontal :param dh: white space between subplots, vertical :param make_axes: bool; if True, create axes on the grid and return,

else return the gridspec.

labcore.analysis.mpl.fit_and_plot_1d(ds, name, fit_class, dim_order: List[int] | None = None, run_kwargs: Dict[str, Any] = {})[source]#
labcore.analysis.mpl.format_ax(ax, top=False, right=False, xlog=False, ylog=False, xlabel=None, ylabel=None, xlim=None, ylim=None, xticks=3, yticks=3)[source]#
labcore.analysis.mpl.format_right_cb(cb)[source]#
labcore.analysis.mpl.get_color_cycle(n, colormap, start=0.0, stop=1.0, format='hex')[source]#
labcore.analysis.mpl.pcolorgrid(xaxis, yaxis)[source]#
labcore.analysis.mpl.plot_fit_1d(ds, name)[source]#
labcore.analysis.mpl.setup_plotting(sns_style='whitegrid', rcparams={})[source]#