2808 explained code solutions for 75 technologies


python-matplotlibHow to rotate Y label horizontally


import matplotlib.pyplot as plt

plt.plot([2,1,3])
plt.ylabel("Y", rotation=0)

plt.show()ctrl + c
import matplotlib.pyplot as plt

loads Matplotlib module to use plotting capabilities

.plot(

plot specified data

ylabel

set label for y-axis

rotation=

set label rotation

.show()

render chart in a separate window