FormatCoord

class mpdaf.obj.FormatCoord(image, data)[source]

Bases: object

Alter mouse-over coordinates displayed by plt.show()

Methods Summary

__call__(x, y)

Tell the interactive plotting window how to display the sky coordinates and pixel values of an image.

Methods Documentation

__call__(x, y)[source]

Tell the interactive plotting window how to display the sky coordinates and pixel values of an image.

Parameters:
xfloat

The X-axis pixel index of the mouse pointer.

yfloat

The Y-axis pixel index of the mouse pointer.

Returns:
outstr

The string to be displayed when the mouse pointer is over pixel x,y.