0
rotate yticks
Using below statement, xticks is by default rotated but how to rotate yticks ? dataframe.plot(rot = 45) In the official document only the folloowing is mentioned but not clearly. rot : int, default None Rotation for ticks (xticks for vertical, yticks for horizontal plots)
1 Odpowiedź
+ 1
x=[ s, o, m, e]
y=[ v, a, l, s]
matplotlib.pyplot(x, y)
matplotlib.pyplot.xticks(rotation =45)
matplotlib.pyplot.yticks( rotation=45)
matplotlib.pyplot.show()
now both thicks are rotated by 45 degrees.