GalacticPlaneSurveyPanelPlot

class gammapy.image.GalacticPlaneSurveyPanelPlot(npanels=4, center=(0, 0), fov=(10, 1), xsize=10, ysize=None, xborder=0.5, yborder=0.5, yspacing=0.5, xoverlap=0)[source]

Bases: object

Plot Galactic plane survey images in multiple panels.

This is useful for very wide, but not so high survey images (~100 deg in Galactic longitude and ~10 deg in Galactic latitude).

TODO: describe how the callbacks work

References: http://aplpy.readthedocs.io/en/latest/howto_subplot.html

Attributes:

  • panel_parameters – dict of panel parameters
  • figure — Main matplotlib figure (cantains all panels)
  • fits_figure — Current aplpy.FITSFigure
Parameters:

fits_figure : aplpy.FITSFigure

FITSFigure to plot on all panels

npanels : int

Number of panels

Examples

TODO

TODO: Link to tutorial example

Compute panel parameters and make a matplotlib Figure.

Methods Summary

bottom([colorbar_pars, colorbar_label]) TODO: needed?
draw_panel([panel, format]) Draw panel.
draw_panels([panels, format]) Draw panels.
format_fits_figure([theme]) TODO: describe
top() TODO: needed?

Methods Documentation

bottom(colorbar_pars={}, colorbar_label='')[source]

TODO: needed?

draw_panel(panel=0, format=True)[source]

Draw panel.

Parameters:

panel : int

Panel index

draw_panels(panels='all', format=True)[source]

Draw panels.

Parameters:

panels : list of ints or ‘all’

List of panels to draw.

static format_fits_figure(theme=None)[source]

TODO: describe

Parameters:TODO
top()[source]

TODO: needed?