backend_nbagg
#
Interactive figures in the IPython notebook.
- class 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[source]#
alias of
FigureCanvasNbAgg
- class matplotlib.backends.backend_nbagg.FigureCanvasNbAgg(*args, **kwargs)[source]#
Bases:
FigureCanvasWebAggCore
- manager_class[source]#
alias of
FigureManagerNbAgg
- matplotlib.backends.backend_nbagg.FigureManager[source]#
alias of
FigureManagerNbAgg
- class matplotlib.backends.backend_nbagg.FigureManagerNbAgg(canvas, num)[source]#
Bases:
FigureManagerWebAgg
- ToolbarCls[source]#
alias of
NavigationIPy
- property connected#
- classmethod create_with_canvas(canvas_class, figure, num)[source]#
Create a manager for a given figure using a specific canvas_class.
Backends should override this method if they have specific needs for setting up the canvas or the manager.
- show()[source]#
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:
NavigationToolbar2WebAgg