helpers

a collection of useful helper-functions.

Functions

cmap_alpha(cmap, alpha[, interpolate, name])

add transparency to an existing colormap

pairwise(iterable[, pairs])

a generator to return n consecutive values from an iterable.

progressbar(it[, prefix, size, file])

A (very) simple progressbar generator.

register_modules(*names[, raise_exception])

Lazy-loading for optional dependencies.

Classes

BlitManager(m)

Manager used to schedule draw events, cache backgrounds, etc.

LayoutEditor(m[, modifier, cb_modifier])

Class to handle interactive re-positioning of figure-objects.

SearchTree(m)

Class to perform fast nearest-neighbour queries.