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

Method resize

lib/matplotlib/backends/backend_macosx.py:100–107  ·  view source on GitHub ↗
(self, width, height)

Source from the content-addressed store, hash-verified

98 self.update()
99
100 def resize(self, width, height):
101 # Size from macOS is logical pixels, dpi is physical.
102 scale = self.figure.dpi / self.device_pixel_ratio
103 width /= scale
104 height /= scale
105 self.figure.set_size_inches(width, height, forward=False)
106 ResizeEvent("resize_event", self)._process()
107 self.draw_idle()
108
109 def start_event_loop(self, timeout=0):
110 # docstring inherited

Callers

nothing calls this directly

Calls 4

draw_idleMethod · 0.95
ResizeEventClass · 0.90
set_size_inchesMethod · 0.80
_processMethod · 0.80

Tested by

no test coverage detected