Displays Agg images in the browser, with interactivity.
alias of FigureCanvasWebAggCore
Bases: FigureCanvasAgg
Blit the canvas in bbox (default entire canvas).
Render the Figure.
This method must walk the artist tree, even if no output is produced, because it triggers deferred work that users may want to access before saving output to disk. For example computing limits, auto-limits, and tick values.
Request a widget redraw once control returns to the GUI event loop.
Even if multiple calls to draw_idle occur before control returns to the GUI event loop, the figure will only be rendered once.
Backends may choose to override the method and implement their own strategy to prevent multiple renderings.
alias of FigureManagerWebAgg
Set the current cursor.
This may have no effect if the backend does not display anything.
If required by the backend, this method should trigger an update in the backend event loop after the cursor is set, as this method may be called e.g. before a long-running task during which the GUI is not updated.
Cursors
The cursor to display over the canvas. Note: some backends may change the cursor for the entire window.
Set the image mode for any subsequent images which will be sent to the clients. The modes may currently be either 'full' or 'diff'.
Note: diff images may not contain transparency, therefore upon draw this mode may be changed if the resulting image has any transparent component.
alias of FigureManagerWebAgg
Bases: FigureManagerBase
alias of NavigationToolbar2WebAgg
Return the title text of the window containing the figure, or None if there is no window (e.g., a PS backend).
For GUI backends, resize the window (in physical pixels).
Set the title text of the window containing the figure.
This has no effect for non-GUI (e.g., PS) backends.
>>> fig = plt.figure()
>>> fig.canvas.manager.set_window_title('My figure')
For GUI backends, show the figure window and redraw. For non-GUI backends, raise an exception, unless running headless (i.e. on Linux with an unset DISPLAY); this exception is converted to a warning in Figure.show.
Bases: NavigationToolbar2
Draw a rectangle rubberband to indicate zoom limits.
Note that it is not guaranteed that x0 <= x1 and y0 <= y1.
Toggle the pan/zoom tool.
Pan with left button, zoom with right.
Remove the rubberband.
Save the current figure
Enable or disable the back/forward button.
Display a message on toolbar or in status bar.
Bases: TimerBase
The time between timer events in milliseconds. Will be stored as timer.interval.
List of (func, args, kwargs) tuples that will be called upon timer events. This list is accessible as timer.callbacks and can be manipulated directly, or the functions add_callback and remove_callback can be used.
Bases: TimerBase
The time between timer events in milliseconds. Will be stored as timer.interval.
List of (func, args, kwargs) tuples that will be called upon timer events. This list is accessible as timer.callbacks and can be manipulated directly, or the functions add_callback and remove_callback can be used.
© 2012–2023 Matplotlib Development Team. All rights reserved.
Licensed under the Matplotlib License Agreement.
https://matplotlib.org/stable/api/backend_webagg_core_api.html