utils#
Module containing plotting utility functionality.
Functions#
Summary
Calculate the absolute maximum values of
dataalong all dims exceptresult_dims.Add cycler to
Axesif it is not None.Add labels to all subplots in
axesin a consistent manner.Add a legend with unique elements sorted by label to a figure.
Calculate tick values and labels in units of Pi.
Condense a list of numbered strings into a compact string representation.
Ensure that axes have flatten method even if it is a single axis.
Extract 'dataset_scale' attribute from optimization result dataset.
Extract the IRF dispersion center data from a result dataset where
irf_nr==irf_nr_index.Determine location of the
irf, which can be used to shift plots.Format
sub_plot_numberinto an upper case letter, that can be used as label.Get next color from cycler assigned to
ax.Shift traces by the position of the main
irf.Get subplot label function from
BuiltinSubPlotLabelFormatFunctionsif it is a key.Calculate the minimal and maximal values of a coordinate across datasets.
Names of dimensions in
datawhich don't have a size equal to one.Select a subset of the IRF dispersion data where
irf_nr==main_irf_nr.Select wavelengths to be used in
plot_fit_overviewfrom a result.Shift
plot_data'time' axis by the position of the mainirf.
Classes#
Summary
Dynamically find minor tick positions based on major ticks for a symlog scaling.
Exceptions#
Exception Summary
Warning given when there are more subplots than datapoints.