plotting#

Plotting of skymaps, test statistic distributions, PDFs, etc.

TODO: This module is a complete mess. Starting point for things to clean up:

  • abandon colormaps.py; everyone should be using modern matplotlib by now.

  • get rid of Plot and SkyPlot

  • make SkyPlotter more flexible and generally tidy its interface

  • probably get rid of plot_energy_pdf and plot_gauss_2d_angres_param

  • add docstrings to everything that remains

Classes:

Plot([fig])

Base class for plots.

SkyPlot([fig, m, rot, coord])

Skymap plotter.

SkyPlotter([coord, projection, pc_kw, cb_kw])

Skymap plotter using matplotlib directly for projections.

class csky.plotting.Plot(fig=None)[source]#

Base class for plots.

Methods:

__init__([fig])

__init__(fig=None)[source]#
class csky.plotting.SkyPlot(fig=None, m=None, rot=None, coord='C', *a, **kw)[source]#

Skymap plotter.

Methods:

__init__([fig, m, rot, coord])

colorbar([unit])

Draw a colorbar.

__init__(fig=None, m=None, rot=None, coord='C', *a, **kw)[source]#
colorbar(unit='')[source]#

Draw a colorbar.

class csky.plotting.SkyPlotter(coord='C', projection='aitoff', pc_kw={}, cb_kw={})[source]#

Skymap plotter using matplotlib directly for projections.

Methods:

__init__([coord, projection, pc_kw, cb_kw])

__init__(coord='C', projection='aitoff', pc_kw={}, cb_kw={})[source]#