utils
Module containing plotting utility functionality.
Functions
Summary
Calculate the absolute maximum values of
data
along all dims exceptresult_dims
.Add cycler to and axis if it is not None.
Add labels to all subplots in
axes
in a consistent manner.Add a legend with unique elements sorted by label to a figure.
Calculate tick values and labels in units of Pi.
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_number
into an upper case letter, that can be used as label.Shift traces by the position of the main
irf
.Get subplot label function from
BuiltinSubPlotLabelFormatFunctions
if it is a key.Calculate the minimal and maximal values of a coordinate across datasets.
Names of dimensions in
data
which 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_overview
from 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.