如题
import numpy as np
import matplotlib.pyplot as plt
plt.plot(inTime, inData, 'ro');
plt.show()
~~~~~~~~~~~~~~~~~~~~~~~
inTime是 inTime=[datetime.datetime(2015,5,4,0,0,0,5000),datetime.datetime(2015,5,4,0,1,0,5000),datetime.datetime(2015,5,4,0,2,0,5000)...]
这样plt.plot出的图,横轴无法看,怎样让横轴的点只显示小时+分钟?
认证高级PHP讲师