hyperspy.drawing._widgets.horizontal_line module

class hyperspy.drawing._widgets.horizontal_line.HorizontalLineWidget(axes_manager, **kwargs)

Bases: Widget1DBase

A draggable, horizontal line widget.

_add_patch_to(ax)

Create and add the matplotlib patches to ‘ax’

_onmousemove(event)

on mouse motion draw the cursor if picked

_set_patch()

Create the matplotlib patch(es), and store it in self.patch

_update_patch_position()

Updates the position of the patch on the plot.