包括设置刻度等
import matplotlib.pyplot as plt
data = [310,31,30,30,31,36,31,30,30,29,30,31,36,3]
fig,ax = plt.subplots()
plt.xlabel('request sequence')
plt.ylabel('request delay (millisecond)')
"""set interval for y label"""
yticks = range(0,525,50)
ax.set_yticks(yticks)
"""set min and max value for axes"""
ax.set_ylim([0,500])
plt.title("register user request delay")
plt.plot(data)
plt.show()