CoordinatesMap

class wcsaxes.CoordinatesMap(axes, wcs=None, transform=None, coord_meta=None, slice=None, frame_class=<class 'wcsaxes.frame.RectangularFrame'>, previous_frame_path=None)[source]

Bases: object

Methods Summary

disable_offset_mode()
enable_offset_mode(reference_coordinates)
get_coord_range()
grid([draw_grid, grid_type]) Plot gridlines for both coordinates.
set_visible(visibility)

Methods Documentation

disable_offset_mode()[source]
enable_offset_mode(reference_coordinates)[source]
get_coord_range()[source]
grid(draw_grid=True, grid_type='lines', **kwargs)[source]

Plot gridlines for both coordinates.

Standard matplotlib appearance options (color, alpha, etc.) can be passed as keyword arguments.

Parameters:

draw_grid : bool

Whether to show the gridlines

grid_type : { ‘lines’ | ‘contours’ }

Whether to plot the contours by determining the grid lines in world coordinates and then plotting them in world coordinates ('lines') or by determining the world coordinates at many positions in the image and then drawing contours ('contours'). The first is recommended for 2-d images, while for 3-d (or higher dimensional) cubes, the 'contours' option is recommended.

set_visible(visibility)[source]