CallbackContainer

class eomaps.cb_container.CallbackContainer(m)

Accessor for attaching callbacks and accessing return-objects.

- **click** : Execute functions when clicking on the map
- **pick** : Execute functions when you "pick" a pixel on the  map
  • only available if a dataset has been plotted via m.plot_map()

- **keypress** : Execute functions if you press a key on the keyboard

Methods

__init__(m)

add_picker(name,Β artist,Β picker)

Attach a custom picker to an artist.

execute_callbacks(val)

Activate / deactivate triggering callbacks.

get_execute_callbacks()

Get if callbacks should be executed or not.

Attributes

click

Callbacks that are executed if you click anywhere on the Map.

keypress

Callbacks that are executed if you press a key on the keyboard.

move

Callbacks that are executed if you move the mouse without holding down a button.

pick

Callbacks that select the nearest datapoint if you click on the map.