API Reference#

madcubapy.visualization Package#

The madcubapy.visualization package provides functions to help the user visualize astronomical data, with a special emphasis on products exported by MADCUBA.

Functions#

add_colorbar([ax, location, size, pad])

Add a colorbar to one side of a Axes or WCSAxes object.

add_manual_wcs_axes([fig, left, bottom, ...])

Add a WCSAxes object with WCS coordinates in a manually set position into an existing figure.

add_wcs_axes([fig, nrows, ncols, number, ...])

Add a WCSAxes object with WCS coordinates into an existing figure.

are_equal(fitsmap_1, fitsmap_2[, show_maps])

Compare two maps to check if they are equal.

copy_zoom_axes(ref_ax, target_ax)

Copy a WCSAxes limits to another WCSAxes.

copy_zoom_fitsmap(ref_fitsmap, ...[, origin])

Copy a map's limits to another map.

get_input(obj, **kwargs)

Get the pixel coordinates of points selected by mouse clicks in a previously plotted figure or a map object.

insert_colorbar([ax, location, size, pad])

Insert a colorbar to one side of a Axes or WCSAxes object, fitting it into the same space.

parse_clabel(fitsmap)

Parse colorbar text from a MadcubaMap or CCDData unit attribute.

quick_show(fitsmap, **kwargs)

Show a map on a separate window.

sync_zoom(*axes)

Synchronize X and Y limits between any number of WCSAxes objects.