matplotlib.backends.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.
-
is_open(self)
[source]
-
on_close(self)
[source]
-
on_message(self, message)
[source]
-
send_binary(self, blob)
[source]
-
send_json(self, content)
[source]
-
-
matplotlib.backends.backend_nbagg.FigureCanvas
-
alias of
matplotlib.backends.backend_nbagg.FigureCanvasNbAgg
-
class matplotlib.backends.backend_nbagg.FigureCanvasNbAgg(*args, **kwargs)
[source] -
Bases:
matplotlib.backends.backend_webagg_core.FigureCanvasWebAggCore
-
matplotlib.backends.backend_nbagg.FigureManager
-
alias of
matplotlib.backends.backend_nbagg.FigureManagerNbAgg
-
class matplotlib.backends.backend_nbagg.FigureManagerNbAgg(canvas, num)
[source] -
Bases:
matplotlib.backends.backend_webagg_core.FigureManagerWebAgg
-
ToolbarCls
-
alias of
NavigationIPy
-
clearup_closed(self)
[source] -
Clear up any closed Comms.
-
property connected
-
destroy(self)
[source]
-
display_js(self)
[source]
-
classmethod get_javascript(stream=None)
[source]
-
remove_comm(self, comm_id)
[source]
-
reshow(self)
[source] -
A special method to re-show the figure in the notebook.
-
show(self)
[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:
matplotlib.backends.backend_webagg_core.NavigationToolbar2WebAgg
-
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.
-
matplotlib.backends.backend_nbagg.show(block=None)
-
Show all figures.
show
blocks by callingmainloop
if block isTrue
, or if it isNone
and we are neither in IPython's%pylab
mode, nor ininteractive
mode.
© 2012–2018 Matplotlib Development Team. All rights reserved.
Licensed under the Matplotlib License Agreement.
https://matplotlib.org/3.3.3/api/backend_nbagg_api.html