vispy.plot.fig.
Fig
Bases: vispy.scene.canvas.SceneCanvas
vispy.scene.canvas.SceneCanvas
Create a figure window
Color to use for the background.
Size of the figure window in pixels.
If True, show the window.
Keywoard arguments to pass to SceneCanvas base class.
See also
PlotWidget
the axis widget for plotting
SceneCanvas
the super class
Notes
You can create a Figure, PlotWidget, and diagonal line plot like this:
>>> from vispy.plot import Fig >>> fig = Fig() >>> ax = fig[0, 0] # this creates a PlotWidget >>> ax.plot([[0, 1], [1, 0]])
See the gallery for many other examples.
plot_widgets
List of the associated PlotWidget instances