anim.plot.canva¶
- class anim.plot.canva(window: window, width=1, height=1, style=None, nrows=1, ncols=1, **kwargs)¶
- __init__(window: window, width=1, height=1, style=None, nrows=1, ncols=1, **kwargs)¶
Create a Matplotlib canvas embedded in an animation window.
- Parameters:
window (anim.window) – Parent animation window.
width (int, default: 1) – Positive relative weights used by the window grid. A canvas with a width of 2 receives twice as much horizontal space as one with a width of 1 in another column. The same rule applies vertically to height.
height (int, default: 1) – Positive relative weights used by the window grid. A canvas with a width of 2 receives twice as much horizontal space as one with a width of 1 in another column. The same rule applies vertically to height.
style ({'dark', 'light', 'white'}, optional) – Plot style. By default, inherit the parent window style.
nrows (int, default: 1) – Number of subplot rows and columns.
ncols (int, default: 1) – Number of subplot rows and columns.
**kwargs – Additional options passed directly to
matplotlib.figure.Figure.subplots(), such assharex,sharey,squeeze,subplot_kworgridspec_kw.
- figure¶
Embedded Matplotlib figure.
- Type:
matplotlib.figure.Figure
- axes¶
Single default axes, or an array of axes for multiple subplots (also controlled by Matplotlib’s
squeezeoption).- Type:
matplotlib.axes.Axes or numpy.ndarray
- canvas¶
Matplotlib rendering canvas.
- Type:
matplotlib.backends.backend_qtagg.FigureCanvasQTAgg
- view¶
Qt widget embedded by the animation window.
- Type:
anim.core.viewplot
Methods
__init__(window[, width, height, style, ...])Create a Matplotlib canvas embedded in an animation window.
blockSignals(self, b)childEvent(self, a0)children(self)connectNotify(self, signal)customEvent(self, a0)deleteLater(self)disconnect(-> bool)disconnectNotify(self, signal)dumpObjectInfo(self)dumpObjectTree(self)dynamicPropertyNames(self)event(self, a0)eventFilter(self, a0, a1)findChild(-> QObjectT)findChildren(...)inherits(self, classname)installEventFilter(self, a0)isQmlExposed(self)isQuickItemType(self)isSignalConnected(self, signal)isWidgetType(self)isWindowType(self)killTimer(self, id)metaObject(self)moveToThread(self, thread)objectName(self)parent(self)property(self, name)pyqtConfigure(...)Each keyword argument is either the name of a Qt property or a Qt signal.
receive(event)Event reception
receivers(self, signal)removeEventFilter(self, a0)sender(self)senderSignalIndex(self)setObjectName(self, name)setParent(self, a0)setProperty(self, name, value)signalsBlocked(self)startTimer(self, interval[, timerType])stop()Stop notification
thread(self)timerEvent(self, a0)tr(sourceText[, disambiguation, n])update([t])Update animation state
Attributes
destroyedint = ..., arguments: Sequence = ...) -> PYQT_SIGNAL
objectNameChangedint = ..., arguments: Sequence = ...) -> PYQT_SIGNAL
signalint = ..., arguments: Sequence = ...) -> PYQT_SIGNAL
staticMetaObject