layered.plot module

class Interface(title='', xlabel='', ylabel='', style=None)[source]

Bases: object

style
title
xlabel
ylabel
class State[source]

Bases: object

class Window(refresh=0.5)[source]

Bases: object

register(position, interface)[source]
start(work)[source]

Hand the main thread to the window and continue work in the provided function. A state is passed as the first argument that contains a running flag. The function is expected to exit if the flag becomes false. The flag can also be set to false to stop the window event loop and continue in the main thread after the start() call.

stop()[source]

Close the window and stops the worker thread. The main thread will resume with the next command after the start() call.

update()[source]

Redraw the figure to show changed data. This is automatically called after start() was run.

class Plot(title, xlabel, ylabel, style=None, fixed=None)[source]

Bases: layered.plot.Interface

style
title
xlabel
ylabel
__call__(values)[source]