Plotting routines for slab models
Collections of plotting routines for ProDiMo slab model output. All the routines use matplotlib.
Also check the example notebook.
Usage example
# the prodimopy modules for reading and plotting
import prodimopy.read_slab as preads
import prodimopy.plot_slab as pplots
# read the model from the current directory
model=pread.read_slab()
# plot boltzmann diagram for the slab model
fig_1,ax_1 = pplots.plotBoltzmannDiagram(model)
# plot level diagram for the slab model
fig_2,ax_2 = pplots.plotLevelDiagram(model)
# plot the total line fluxes for the slab model
fig_3,ax_3 = pplots.plot_lines(model)
# convolve the line fluxes at a spectral resolution of R=3000 between 5 and 30 microns
model.convolve(R=3000,lambda_0=5,lambda_n=30)
# plot the convolved spectra for the slab model
fig_4,ax_4 = pplots.plot_spectra(model)
Source documentation
- prodimopy.plot_slab.plotBoltzmannDiagram(dat, ax=None, fig=None, figsize=None, NLTE=False, label=None, s=0.1, c='k', set_axis_limits=True)[source]
This function plots the Boltzmann diagram (reduced flux vs upper energy level)
- prodimopy.plot_slab.plotLevelDiagram(data, ax=None, figsize=(10, 18), seed=None, lambda_0=None, lambda_n=None, width_nlines=False)[source]
This function plots level diagram for a single slab model
- prodimopy.plot_slab.plot_lines(dat, normalise=False, fig=None, ax=None, overplot=False, c=None, cmap=None, colors=None, figsize=None, NLTE=False, label='', lw=1, scaling=1, offset=0)[source]
This function plots total line fluxes (erg/s/cm2/sr)
- prodimopy.plot_slab.plot_spectra(dat, normalise=False, fig=None, ax=None, overplot=False, add=False, cmap=None, colors=None, style='step', figsize=None, NLTE=False, label='', lw=1, c=None, scaling=1, sampling=None, offset=0, overlap=False, custom_wave=None)[source]
This function plots convolved spectra (erg/s/cm2/sr)