Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

NumPy rot90 Example Rotating Three times

# welcome to softhunt.net
# Python Program illustrating
# numpy.rot90() method

import numpy as np

array = np.arange(9).reshape(3, 3)
print("Original array : 
", array)

# # Rotating three times
print("
Array being rotated 3 times : 
", np.rot90(array, 3))
Source by softhunt.net #
 
PREVIOUS NEXT
Tagged: #NumPy #Example #Rotating #Three #times
ADD COMMENT
Topic
Name
1+5 =