Friday, March 21, 2014

Rotate axis text in python matplotlib

Here is na example of how to rotate the xaxis using step function in Pyploy library:

import matplotlib.pyplot as plt
x = range(len(time))
plt.xticks(x,  time)
locs, labels = plt.xticks()
plt.setp(labels, rotation=90)
plt.plot(x, delay)

No comments:

Post a Comment