MapPanelPlotter#

class gammapy.visualization.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.

Parameters
figure

Figure instance.

xlimAngle

Angle object specifying the longitude limits.

ylimAngle

Angle object specifying the latitude limits.

npanelsint

Number of panels.

**kwargsdict

Keyword arguments passed to GridSpec.

Methods Summary

plot(map, **kwargs)

Plot sky map on all panels.

plot_panel(map[, panel, panel_fov])

Plot sky map on one panel.

Methods Documentation

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

Plot sky map on all panels.

Parameters
mapWcsNDMap

Map to plot.

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

Plot sky map on one panel.

Parameters
mapWcsNDMap

Map to plot.

panelint

Which panel to plot on (counted from top). Default is 1.

panel_fovint, optional

Field of view of the panel. Default is None.

kwargsdict

Keyword arguments to be passed to plot.