Once the best model is computed, you can plot it with the function plotBestModel.
If there’s only one moltag:
bestModel = userInputs.plotBestModel()
If there are more than one moltag, you must specify the one you want to use for the plot:
bestModel = userInputs.plotBestModel(moltag=moltag)
bestModel = userInputs.plotBestModel(moltag, overSampling, telescope, lines)
Example with an over sampling of 5:
bestModel = userInputs.plotBestModel(29510, overSampling=5)
Specify a telescope
This option is useful when you provided data observed with more than one telescope.
Example with the telescope IRAM (if for example the telescopes provided were hifi and iram)
bestModel = userInputs.plotBestModel(29501, telescope="iram")
Example: Plot only the spectrum 1:
bestModel = userInputs.plotBestModel(29501, lines="1")
Example: Plot the spectra 1 and 3:
bestModel = userInputs.plotBestModel(29501, lines="1,3")
Example: Plot the spectra 1 to 3:
bestModel = userInputs.plotBestModel(29501, lines="1-3")
Note
The variable returned by plotBestModel is used to display the best model in a Line Spectrum window but can be omitted if you don’t plan to use it.