[Numpy-discussion] coordinate bounds

Robert Kern robert.kern at gmail.com
Sat Aug 20 17:14:38 EDT 2016


On Sat, Aug 20, 2016 at 9:16 PM, Alan Isaac <alan.isaac at gmail.com> wrote:
>
> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20160820/fd68f515/attachment.html>


More information about the NumPy-Discussion mailing list