MapPanelPlotter

class gammapy.image.MapPanelPlotter(figure, xlim, ylim, npanels=4, **kwargs)[source]

Bases: object

Map panel plotter class.

Given a Figure object this class creates axes objects using GridSpec and plots a given sky map onto these.

An example of how this class is used can be found in the hgps.html notebook at the end.

Parameters:
figure :

Figure instance.

xlim : Angle

Angle object specifying the longitude limits.

ylim : Angle

Angle object specifying the latitude limits.

npanels : int

Number of panels.

**kwargs : dict

Keyword arguments passed to GridSpec.

Methods Summary

plot(self, map, \*\*kwargs) Plot sky map on all panels.
plot_panel(self, map[, panel, panel_fov]) Plot sky map on one panel.

Methods Documentation

plot(self, map, **kwargs)[source]

Plot sky map on all panels.

Parameters:
map : WcsNDMap

Map to plot.

plot_panel(self, map, panel=1, panel_fov=None, **kwargs)[source]

Plot sky map on one panel.

Parameters:
map : WcsNDMap

Map to plot.

panel : int

Which panel to plot on (counted from top).