axis
: utilities for plots¶
SyncAxes¶
-
class
SyncAxes
(axes, syncLimits=True, syncScale=True, syncDirection=True, syncCenter=False, syncZoom=False, filterHiddenPlots=False)[source]¶ Synchronize a set of plot axes together.
It is created with the expected axes and starts to synchronize them.
It can be customized to synchronize limits, scale, and direction of axes together. By default everything is synchronized.
The API
start()
andstop()
can be used to enable/disable the synchronization while this object is still alive.If this object is destroyed the synchronization stop.
New in version 0.6.
-
addAxis
(axis)[source]¶ Add a new axes to synchronize.
Parameters: axis (Axis) – The axis to synchronize
-
isSynchronizing
()[source]¶ Returns true if events are connected to the axes to synchronize them all together
Return type: bool
-
removeAxis
(axis)[source]¶ Remove an axis from the synchronized axes.
Parameters: axis (Axis) – The axis to remove
-