Plot the results

Plot of the best model

Once the best model is computed, you can plot it with the function plotBestModel.

Basic usage

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)

Advanced usage

bestModel = userInputs.plotBestModel(moltag, overSampling, telescope, lines)
  • Use a given over sampling for the plot

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")
  • Select the spectra to plot

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.

Plot of the \(\chi^{2}\) contour

In the regular grid method, in order to plot the resulting \(\chi^{2}\) contour, you can use the method plotChi2Contour

Usage

chi2Contour = userInputs.plotChi2Contour()