schlichtanders.mymatplotlib module

plotting helpers

class schlichtanders.mymatplotlib.Centre(midpoint=0, vmin=None, vmax=None, clip=False)[source]

Bases: sphinx.ext.autodoc.Normalize

a Normalizer which centers a colorbar, etc., around a midpoint

inverse(value)[source]
schlichtanders.mymatplotlib.add_point(hl, x, y, update_fig=True)[source]

adds a value to a given line handle in a dynamic way

schlichtanders.mymatplotlib.add_val(hl, val, iteration_nr=None, update_fig=True)[source]

adds a value to a given line handle with x=#iteartion in a dynamic way

default iteration nr is extracted from hl

schlichtanders.mymatplotlib.gca()[source]

this version of gca won’t create a new axis if none exists, however return None instead

schlichtanders.mymatplotlib.plt_sync(plt_object, margin_size=0.1)[source]

updates a plot dynamically given a certain axes object (e.g. a line)

schlichtanders.mymatplotlib.to_colors(cluster, ignore_cnt=5)[source]
schlichtanders.mymatplotlib.useax(*args, **kwds)[source]

sets current axes within scope and restores old axes on exits (can be nested)