matplotlib.backends.backend_nbagg¶Interactive figures in the IPython notebook
matplotlib.backends.backend_nbagg.CommSocket(manager)[source]¶Bases: object
Manages the Comm connection between IPython and the browser (client).
Comms are 2 way, with the CommSocket being able to publish a message via the send_json method, and handle a message with on_message. On the JS side figure.send_message and figure.ws.onmessage do the sending and receiving respectively.
matplotlib.backends.backend_nbagg.FigureCanvas¶alias of matplotlib.backends.backend_nbagg.FigureCanvasNbAgg
matplotlib.backends.backend_nbagg.FigureCanvasNbAgg(*args, **kwargs)[source]¶Bases: matplotlib.backends.backend_webagg_core.FigureCanvasWebAggCore
new_timer(*args, **kwargs)[source]¶Creates a new backend-specific subclass of
backend_bases.Timer. This is useful for getting periodic
events through the backend's native event loop. Implemented only for
backends with GUIs.
| Other Parameters: |
|
|---|
Examples
>>> timer = fig.canvas.new_timer(callbacks=[(f1, (1, ), {'a': 3}),])
matplotlib.backends.backend_nbagg.FigureManager¶alias of matplotlib.backends.backend_nbagg.FigureManagerNbAgg
matplotlib.backends.backend_nbagg.FigureManagerNbAgg(canvas, num)[source]¶Bases: matplotlib.backends.backend_webagg_core.FigureManagerWebAgg
ToolbarCls¶alias of NavigationIPy
connected¶matplotlib.backends.backend_nbagg.connection_info()[source]¶Return a string showing the figure and connection status for the backend. This is intended as a diagnostic tool, and not for general use.
matplotlib.backends.backend_nbagg.new_figure_manager_given_figure(num, figure)¶Create a new figure manager instance for the given figure.