Discussion:
[Numpy-discussion] coordinate bounds
Alan Isaac
2016-08-20 20:16:14 UTC
Permalink
Is there a numpy equivalent to Mma's CoordinateBounds command?
http://reference.wolfram.com/language/ref/CoordinateBounds.html

Thanks,
Alan Isaac
Robert Kern
2016-08-20 21:14:38 UTC
Permalink
Post by Alan Isaac
Is there a numpy equivalent to Mma's CoordinateBounds command?
http://reference.wolfram.com/language/ref/CoordinateBounds.html
The first signature can be computed like so:

np.transpose([coords.min(axis=0), coords.max(axis=0)])

--
Robert Kern

Loading...