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

Method draw_if_interactive

lib/matplotlib/backend_bases.py:3664–3673  ·  view source on GitHub ↗
(cls)

Source from the content-addressed store, hash-verified

3662
3663 @classmethod
3664 def draw_if_interactive(cls):
3665 manager_class = cls.FigureCanvas.manager_class
3666 # Interactive backends reimplement start_main_loop or pyplot_show.
3667 backend_is_interactive = (
3668 manager_class.start_main_loop != FigureManagerBase.start_main_loop
3669 or manager_class.pyplot_show != FigureManagerBase.pyplot_show)
3670 if backend_is_interactive and is_interactive():
3671 manager = Gcf.get_active()
3672 if manager:
3673 manager.canvas.draw_idle()
3674
3675 @classmethod
3676 def show(cls, *, block=None):

Callers 3

__setstate__Method · 0.80
draw_if_interactiveFunction · 0.80
test_load_old_apiFunction · 0.80

Calls 3

is_interactiveFunction · 0.90
get_activeMethod · 0.45
draw_idleMethod · 0.45

Tested by 1

test_load_old_apiFunction · 0.64