matplotlibのAPIを使う1
plt.figure(figsize=(12, 4)) plt.plot(df['DATE TIME'], df['D0']) plt.ylabel('P') plt.xlabel('Time')
matplotlibのAPIを使う2
fig = plt.figure(figsize=(12, 4)) ax1 = fig.add_subplot(111) ax1.plot(df['DATE TIME'], df['D0']) ax1.set_ylabel('P') ax1.set_xlabel('Time')
DataFrameのAPIをを使う
ax = df.plot(x='DATE TIME', y='D0',figsize=(4, 4)) ax.set_ylabel('P') ax.set_xlabel('Time')
matplotlibを使う場合、plot() には列データを渡しますが、 DataFrame.plot() の場合は Label名を渡すことに注意してください
pylab.yticks(range(0,110,10), range(0,110,10)) # Y軸の目盛りを10刻みにする pylab.ylim(0,100) # Yの範囲を指定