scistag.plotstag.matplot_lock.MPLock¶
- class MPLock(backend='Agg')[source]¶
Bases:
objectHelper class to make matplotlib usable in a multi-threaded environment.
Usage:
with MPLock() as plt: plt.imshow(..)
- Parameters
backend – The backend to be used. Background rendering by default
Methods
Attributes
__dict____doc____module____weakref__list of weak references to the object (if defined)
Shared access lock to prevent multiple thread using Matplotlib at the same time
The backend to be used
Link to the module once valid
- access_lock = <scistag.common.mt.stag_lock.StagLock object>¶
Shared access lock to prevent multiple thread using Matplotlib at the same time
- pl¶
Link to the module once valid