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

Method new_gc

lib/matplotlib/backends/backend_wx.py:254–260  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

252 gc.unselect()
253
254 def new_gc(self):
255 # docstring inherited
256 _log.debug("%s - new_gc()", type(self))
257 self.gc = GraphicsContextWx(self.bitmap, self)
258 self.gc.select()
259 self.gc.unselect()
260 return self.gc
261
262 def get_wx_font(self, s, prop):
263 """Return a wx font. Cache font instances for efficiency."""

Callers 6

stop_rasterizingMethod · 0.45
stop_filterMethod · 0.45
test_chunksize_failsFunction · 0.45

Calls 3

GraphicsContextWxClass · 0.85
selectMethod · 0.80
unselectMethod · 0.80

Tested by 2

test_chunksize_failsFunction · 0.36