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

Method __init__

lib/matplotlib/backends/backend_qt.py:231–245  ·  view source on GitHub ↗
(self, figure=None)

Source from the content-addressed store, hash-verified

229 }
230
231 def __init__(self, figure=None):
232 _create_qApp()
233 super().__init__(figure=figure)
234
235 self._draw_pending = False
236 self._is_drawing = False
237 self._draw_rect_callback = lambda painter: None
238 self._in_resize_event = False
239
240 self.setAttribute(QtCore.Qt.WidgetAttribute.WA_OpaquePaintEvent)
241 self.setMouseTracking(True)
242 self.resize(*self.get_width_height())
243
244 palette = QtGui.QPalette(QtGui.QColor("white"))
245 self.setPalette(palette)
246
247 @QtCore.Slot()
248 def _update_pixel_ratio(self):

Callers

nothing calls this directly

Calls 4

_create_qAppFunction · 0.85
get_width_heightMethod · 0.80
__init__Method · 0.45
resizeMethod · 0.45

Tested by

no test coverage detected