PlotPdistr#
- class jetset.plot_sedfit.PlotPdistr(figsize=(8, 6), dpi=100, injection=False, loglog=True)[source]#
Bases:
BasePlotPlotter for particle/injection energy distributions.
Notes
Supports multiple energy units, optional powers of energy (e.g.
E^2 n), and linear/log views for electrons and protons.Methods Summary
plot_distr(gamma, n_gamma[, y_min, y_max, ...])Plot distr.
plot_distr2p(gamma, n_gamma[, y_min, y_max, ...])Plot distr2p.
plot_distr3p(gamma, n_gamma[, y_min, y_max, ...])Plot distr3p.
Update plot.
Methods Documentation
- plot_distr(gamma, n_gamma, y_min=None, y_max=None, x_min=None, x_max=None, particle='electrons', energy_unit='gamma', label=None)[source]#
Plot distr.
- Parameters:
gamma (object) – Frequency/energy control value for gamma.
n_gamma (object) – Frequency/energy control value for n gamma.
y_min (object, optional) – Minimum value for y.
y_max (object, optional) – Maximum value for y.
x_min (object, optional) – Minimum value for x.
x_max (object, optional) – Maximum value for x.
particle (str, optional) – Parameter controlling particle.
energy_unit (str, optional) – Frequency/energy control value for energy unit.
label (object, optional) – Label used in output or plots.
- plot_distr2p(gamma, n_gamma, y_min=None, y_max=None, x_min=None, x_max=None, particle='electrons', energy_unit='gamma', label=None)[source]#
Plot distr2p.
- Parameters:
gamma (object) – Frequency/energy control value for gamma.
n_gamma (object) – Frequency/energy control value for n gamma.
y_min (object, optional) – Minimum value for y.
y_max (object, optional) – Maximum value for y.
x_min (object, optional) – Minimum value for x.
x_max (object, optional) – Maximum value for x.
particle (str, optional) – Parameter controlling particle.
energy_unit (str, optional) – Frequency/energy control value for energy unit.
label (object, optional) – Label used in output or plots.
- plot_distr3p(gamma, n_gamma, y_min=None, y_max=None, x_min=None, x_max=None, particle='electrons', energy_unit='gamma', label=None)[source]#
Plot distr3p.
- Parameters:
gamma (object) – Frequency/energy control value for gamma.
n_gamma (object) – Frequency/energy control value for n gamma.
y_min (object, optional) – Minimum value for y.
y_max (object, optional) – Maximum value for y.
x_min (object, optional) – Minimum value for x.
x_max (object, optional) – Maximum value for x.
particle (str, optional) – Parameter controlling particle.
energy_unit (str, optional) – Frequency/energy control value for energy unit.
label (object, optional) – Label used in output or plots.