summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Muresan <mmuresan@miovision.com>2022-12-29 21:00:10 -0500
committerGitHub <noreply@github.com>2022-12-29 18:00:10 -0800
commit68d7aadd30cb7a4f6f32e76715b38b644df18602 (patch)
treeda0ed04d14cdedad0116d402aa8d4b532f75f2e8
parent18185f1fa77cf7f1ad920547a51590320a8cedc2 (diff)
downloadnumpy-68d7aadd30cb7a4f6f32e76715b38b644df18602.tar.gz
DOC: Add blurb about rotation direction to rot90 docstring (#22880)
* DOC: Add a note to the documentation of the rot90 The note added indicates that rotation is counter clockwise with the default argumemnts. Co-authored-by: Ross Barnowski <rossbar@berkeley.edu>
-rw-r--r--numpy/lib/function_base.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/numpy/lib/function_base.py b/numpy/lib/function_base.py
index 0e9a26228..7a69c3c81 100644
--- a/numpy/lib/function_base.py
+++ b/numpy/lib/function_base.py
@@ -161,6 +161,8 @@ def rot90(m, k=1, axes=(0, 1)):
Rotate an array by 90 degrees in the plane specified by axes.
Rotation direction is from the first towards the second axis.
+ This means for a 2D array with the default `k` and `axes`, the
+ rotation will be counterclockwise.
Parameters
----------