plotter
- class Frame(var, x_range=None, nbins=None, name=None, display=None, trans=None, **extra)[source]
Bases:
object
- class PlotData(dataset, weight=None, partial_weight=None, use_weighted=False)[source]
Bases:
object
- class Plotter(config, legend_file=None, res=None, datasets=None, use_weighted=False)[source]
Bases:
object
- get_all_hist(frame, idx=None, bin_scale=3)[source]
create all partial wave histogram for observation frame.
- old_style(extra_config=None, color_first=True)[source]
context for base style, see matplotlib.rcParams for more configuration
- Parameters:
extra_config (ditc, optional) – new configs, defaults to None
color_first (bool, optional) – order of color and linestyle, defaults to True
- plot_frame(name, idx=None, ax=<module 'matplotlib.pyplot' from '/home/docs/checkouts/readthedocs.org/user_builds/tf-pwa/envs/latest/lib/python3.10/site-packages/matplotlib/pyplot.py'>, bin_scale=3)[source]
plot frame for all partial wave
- plot_frame_with_pull(name, idx=None, bin_scale=3, pull_config=None)[source]
plot frame with pull for all partial wave
- plot_var(frame, idx=None, ax=<module 'matplotlib.pyplot' from '/home/docs/checkouts/readthedocs.org/user_builds/tf-pwa/envs/latest/lib/python3.10/site-packages/matplotlib/pyplot.py'>, bin_scale=3)[source]
plot data observation for all partial wave
- save_all_frame(prefix='figure/', format='png', idx=None, plot_pull=False, pull_config=None)[source]
Save all frame in with prefix. like ConfigLoader.plot_partial_waves
- Parameters:
prefix (str, optional) – prefix for file name, defaults to “figure/”
format (str, optional) – figure format, defaults to “png”
idx (int, optional) – dataset index, defaults to None
plot_pull (bool, optional) – if plot pulls, defaults to False
pull_config (dict, optional) – configuration for plot pulls, defaults to None