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

Function randrange

galleries/examples/mplot3d/scatter3d.py:16–21  ·  view source on GitHub ↗

Helper function to make an array of random numbers having shape (n, ) with each number distributed Uniform(vmin, vmax).

(n, vmin, vmax)

Source from the content-addressed store, hash-verified

14
15
16def randrange(n, vmin, vmax):
17 """
18 Helper function to make an array of random numbers having shape (n, )
19 with each number distributed Uniform(vmin, vmax).
20 """
21 return (vmax - vmin)*np.random.rand(n) + vmin
22
23fig = plt.figure()
24ax = fig.add_subplot(projection='3d')

Callers 1

scatter3d.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…