Version 2.2.3
matplotlib

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()[source]
on_close()[source]
on_message(message)[source]
send_binary(blob)[source]
send_json(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

new_timer(*args, **kwargs)[source]
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()[source]

Clear up any closed Comms.

connected
destroy()[source]
display_js()[source]
classmethod get_javascript(stream=None)[source]
remove_comm(comm_id)[source]
reshow()[source]

A special method to re-show the figure in the notebook.

show()[source]
class matplotlib.backends.backend_nbagg.NavigationIPy(canvas)[source]

Bases: matplotlib.backends.backend_webagg_core.NavigationToolbar2WebAgg

image_file = 'download'
name_of_method = 'download'
text = 'Download'
toolitems = [(u'Home', u'Reset original view', 'fa fa-home icon-home', u'home'), (u'Back', u'Back to previous view', 'fa fa-arrow-left icon-arrow-left', u'back'), (u'Forward', u'Forward to next view', 'fa fa-arrow-right icon-arrow-right', u'forward'), (None, None, None, None), (u'Pan', u'Pan axes with left mouse, zoom with right', 'fa fa-arrows icon-move', u'pan'), (u'Zoom', u'Zoom to rectangle', 'fa fa-square-o icon-check-empty', u'zoom'), (None, None, None, None), ('Download', 'Download plot', 'fa fa-floppy-o icon-save', 'download')]
tooltip_text = 'Download plot'
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)
matplotlib.backends.backend_nbagg.show(*args, **kwargs)