hyperspyui._tools.figuretool module

Created on Sun Dec 07 01:48:00 2014

@author: Vidar Tonaas Fauske

class hyperspyui._tools.figuretool.FigureTool(windows=None)

Bases: hyperspyui._tools.tool.Tool

static _iter_windows(windows)
_wire(canvas, local_key, mpl_key)

Connect an MPL event to an instance method, if the method is defined on the current instance. The local method is defined by ‘local_key’.

connect_windows(windows)

Connects the tool to the windows that are passed. This means that it connects to the appropriate MPL events of each window.

disconnect_windows(windows)
get_cursor(widget=None)

Get the cursor for the supplied widget. Is applied when a widget is connected to the Tool.

get_pixel_size(event)

Get the point size in data units

get_window(event)

Get the window for the event

make_cursor()

Initialize the cursor for this instance. Is called in constructor.