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

Method count

lib/matplotlib/tests/test_cbook.py:208–212  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

206 return self.callbacks.disconnect(cid)
207
208 def count(self):
209 count1 = sum(s == self.signal for s, p in self.callbacks._func_cid_map)
210 count2 = len(self.callbacks.callbacks.get(self.signal))
211 assert count1 == count2
212 return count1
213
214 def is_empty(self):
215 np.testing.break_cycles()

Callers 15

_get_data_scaleFunction · 0.80
__init__Method · 0.80
_layoutgrid.pyFile · 0.80
__init__Method · 0.80
__init__Method · 0.80
__init__Method · 0.80
__init__Method · 0.80
__init__Method · 0.80
__init__Method · 0.80
__init__Method · 0.80
__init__Method · 0.80

Calls 1

getMethod · 0.45

Tested by

no test coverage detected