How to display the results?¶
What you will learn
You will learn how to display results using some example scripts written in Python.
Please not that these scripts need the
matplotlib
Python module installed.
The ctools package does not contain any tools or scripts for graphical display of results since results are generally written into standard FITS files that are readily displayed by existing astronomical tools.
Nevertheless, for your convenience several scripts for graphical display are
included in the ctools package that rely on the
matplotlib
Python module. You can find these scripts in the
$CTOOLS/share/examples/python
folder. The following scripts are available:
Script Usage show_butterfly.py
Display butterfly diagram show_irf.py
Display Instrument Response Function show_lightcurve.py
Display light curve show_obs.py
Display observation summary show_pha.py
Display Pulse High Analyser File show_phases.py
Display event phases show_pointings.py
Display pointing directions show_residuals.py
Display spectral residuals show_response.py
Display response components show_rmf.py
Display Redistribution Matrix File show_significance_distribution.py
Display significance distribution show_spectrum.py
Display spectrum
Do not hesitate to copy and adapt these scripts to your needs.
Below some usage examples and the expected output.
show_significance_distribution.py¶
$ $CTOOLS/share/examples/python/show_significance_distribution.py skymap.fits --exclude skymap.fits[EXCLUSION]