MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / show

Method show

lib/matplotlib/backends/backend_nbagg.py:92–107  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

90 display(Javascript(FigureManagerNbAgg.get_javascript()))
91
92 def show(self):
93 if not self._shown:
94 self.display_js()
95 self._create_comm()
96 else:
97 self.canvas.draw_idle()
98 self._shown = True
99 # plt.figure adds an event which makes the figure in focus the active
100 # one. Disable this behaviour, as it results in figures being put as
101 # the active figure after they have been shown, even in non-interactive
102 # mode.
103 if hasattr(self, '_cidgcf'):
104 self.canvas.mpl_disconnect(self._cidgcf)
105 if not is_interactive():
106 from matplotlib._pylab_helpers import Gcf
107 Gcf.figs.pop(self.num, None)
108
109 def reshow(self):
110 """

Callers 2

reshowMethod · 0.95
create_with_canvasMethod · 0.45

Calls 6

display_jsMethod · 0.95
_create_commMethod · 0.95
is_interactiveFunction · 0.90
mpl_disconnectMethod · 0.80
draw_idleMethod · 0.45
popMethod · 0.45

Tested by

no test coverage detected