nab_histogram#

class nab_histogram(days=None, edges=None, **kwargs)[source]#

Bases: Analyzer

Store histogram of log_{10}(NAb) distribution

Parameters:
  • days (list) – days on which calculate the NAb histogram (if None, assume last day)

  • edges (list) – log10 bin edges for histogram

Example:

sim = cv.Sim(analyzers=cv.nab_histogram())
sim.run()
sim.get_analyzer().plot()

New in version 3.1.0.

Methods

plot(fig_args=None, axis_args=None, plot_args=None, do_show=None, **kwargs)[source]#

Plot the results

Parameters:
  • fig_args (dict) – passed to pl.figure()

  • axis_args (dict) – passed to pl.subplots_adjust()

  • plot_args (dict) – passed to pl.plot()

  • do_show (bool) – whether to show the plot

  • kwargs (dict) – passed to cv.options.with_style()