redback.analysis.plot_spectrum

redback.analysis.plot_spectrum(model, parameters, time_to_plot, axes=None, **kwargs)[source]

Plot a spectrum for a given model and parameters

Parameters:
  • model – Model string for a redback model

  • parameters – dictionary of parameters/alongside model specific keyword arguments. Must be one set of parameters. If you want to plot a posterior prediction of the spectrum, call this function in a loop.

  • time_to_plot – Times to plot (in days) the spectrum at. The spectrum plotted will be at the nearest neighbour to this value

  • axes – None or matplotlib axes object if you want to plot on an existing set of axes

  • kwargs – Additional keyword arguments used by this function.

  • colors_list – List of colors to use for each time to plot. Set randomly unless specified.

Returns:

matplotlib axes