matplotlib.axes.Axes.get_cursor_data#

Axes.get_cursor_data(event)[source]#

Return the cursor data for a given event.

Note

This method is intended to be overridden by artist subclasses.As an end-user of Matplotlib you will most likely not call thismethod yourself.

Cursor data can be used by Artists to provide additional contextinformation for a given event. The default implementation just returnsNone.

Subclasses can override the method and return arbitrary data. However,when doing so, they must ensure thatformat_cursor_data can convertthe data to a string representation.

The only current use case is displaying the z-value of anAxesImagein the status bar of a plot window, while moving the mouse.

Parameters:
eventMouseEvent