fitroom.multislab_tool module¶
Created on Fri Apr 14 22:41:43 2017
@author: erwan
Summary¶
a window to decompose the center slab along the different slabs
- class MultiSlabPlot(plotquantity='radiance', unit='mW/cm2/sr/nm', normalizer=None, s_exp=None, nfig=None, N_main_bands=5, keep_highlights=False, show_noslit_slabs=True, show_slabs_with_slit=True, wunit='nm')[source]¶
Bases:
objectPlot the center case in
CaseSelectorby also showing emission and absorption separately, and all slabs- Parameters
…
N_main_bands (int)
show main emission bands in case an overpopulation tool is defined.
N_main_bands is the number of bands to show. Default 5.
keep_highlights (boolean)
if ``True``, delete previous highlights when generating new case. Keeping
them can help remember the last band position. Default ``False``.
show_noslit_slabs (boolean)
if ``True``, overlay slabs with non convoluted radiance / transmittance
show_slabs_with_slit (boolean)
if ``True``, slit is applied to all slabs before display (this does not
change the way the radiative transfer equation is solved)
- Other Parameters
wunit (‘nm’, ‘cm-1’)
Examples
See also
CaseSelector,Grid3x3,SlabsConfigSolver,Overpopulator,FitRoom,SlitTool- plot_all_slabs(s: radis.spectrum.spectrum.Spectrum, slabs)[source]¶
- plot_broken(style=['origin'], xlim=None, lw_multiplier=1, skip_exp_range=[], cutwings=0, verbose=True)[source]¶
Not used in Fitroom, but can be used by user to export / save figure with broken axes
- Parameters
xlim (tuple, or list of tuple) – if None, all range is plot. If tuple, only this range is plot. If list of tuple, broken axes are used. Only works for
fig0though. Not Implemented forfig1.- Other Parameters
lw_multiplier (float) – multiply line widths
skip_exp_range ([(wmin, wmax), (wmin2, wmax2), etc.]) – dont plot these ranges for experimental spectrum. Default []
cutwings – see
plot_stack()
Examples
fig0 = slabsTool.plot_broken() fig0.savefig('...')
- plot_for_export(style=['origin'], lw_multiplier=1, skip_exp_range=[], cutwings=0, figsize=[(20, 4), (20, 6.5)])[source]¶
Not used in Fitroom, but can be used by user to export / save figures
- Other Parameters
lw_multiplier (float) – multiply line widths
skip_exp_range ([(wmin, wmax), (wmin2, wmax2), etc.]) – dont plot these ranges for experimental spectrum. Default []
cutwings – see
plot_stack()
Examples
fig0, fig1 = slabsTool.plot_for_export() fig0.savefig('...')