.. _sec_plot_slab: 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 ------------- .. code-block:: python # 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 -------------------- .. automodule:: prodimopy.plot_slab