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

Method get_shape

lib/matplotlib/image.py:307–314  ·  view source on GitHub ↗

Return the shape of the image as tuple (numrows, numcols, channels).

(self)

Source from the content-addressed store, hash-verified

305 return self.get_shape()[:2]
306
307 def get_shape(self):
308 """
309 Return the shape of the image as tuple (numrows, numcols, channels).
310 """
311 if self._A is None:
312 raise RuntimeError('You must first set the image array')
313
314 return self._A.shape
315
316 def set_alpha(self, alpha):
317 """

Callers 3

__str__Method · 0.95
get_sizeMethod · 0.95
test_axesimage_get_shapeFunction · 0.80

Calls

no outgoing calls

Tested by 1

test_axesimage_get_shapeFunction · 0.64