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

Function draw_if_interactive

lib/matplotlib/pyplot.py:485–489  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

483 return new_figure_manager_given_figure(num, fig)
484
485 def draw_if_interactive() -> None:
486 if matplotlib.is_interactive():
487 manager = _pylab_helpers.Gcf.get_active()
488 if manager:
489 manager.canvas.draw_idle()
490
491 backend_mod.new_figure_manager_given_figure = ( # type: ignore[method-assign]
492 new_figure_manager_given_figure)

Callers 1

figureFunction · 0.85

Calls 4

_get_backend_modFunction · 0.85
draw_if_interactiveMethod · 0.80
get_activeMethod · 0.45
draw_idleMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…