plot_simulation

specsim.simulator.plot_simulation(simulated, camera_output, fiber=0, wavelength_min=None, wavelength_max=None, title=None, min_electrons=2.5, figsize=(11, 8.5), label_size='medium')[source] [edit on github]

Plot simulation output tables for a single fiber.

This function is normally called via Simulator.plot() but is provided separately so that plots can be generated from results saved to a file.

Use show <matplotlib.pyplot.show() and savefig to show or save the resulting plot.

See Command-Line Program for a sample plot.

Requires that the matplotlib package is installed.

Parameters:
simulatedastropy.table.Table

Simulation results on the high-resolution simulation wavelength grid.

camera_outputlist

Lists of tables of per-camera simulation results tabulated on each camera’s output pixel grid.

fiberint

Fiber index to plot.

wavelength_minquantity or None

Clip the plot below this wavelength, or show the full extent.

wavelength_maxquantity or None

Clip the plot above this wavelength, or show the full extent.

titlestr or None

Descriptive title to use for the plot.

min_electronsfloat

Minimum y-axis value for displaying numbers of detected electrons.

figsizetuple

Tuple (width, height) specifying the figure size to use in inches. See matplotlib.pyplot.subplots() for details.