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

Function explode

galleries/examples/mplot3d/voxels_numpy_logo.py:13–17  ·  view source on GitHub ↗
(data)

Source from the content-addressed store, hash-verified

11
12
13def explode(data):
14 size = np.array(data.shape)*2
15 data_e = np.zeros(size - 1, dtype=data.dtype)
16 data_e[::2, ::2, ::2] = data
17 return data_e
18
19# build up the numpy logo
20n_voxels = np.zeros((4, 3, 4), dtype=bool)

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…