嗨,我发现了同样的问题,但没有答案: 在这里输入链接说明
我的问题是我尝试使用matplotlib绘制数据,并连接第一个和最后一个数据点.我正在使用python27和Windows 7.我的问题只是要显示完整,所以我只显示源代码的一些部分.绘图功能如下:
def plot(x, aw,temperature):
plt.clf()
temperatureplot = plt.subplot(211)
awplot = plt.subplot(212)
temperatureplot.grid()
awplot.grid()
#set subplots
awplot.set_ylabel('water activity aw')
awplot.plot(x,aw)
awplot.margins(y=0.05) #adds a gap between maximum value and edge of diagram
temperatureplot.set_ylabel('Temperature in degree C')
temperatureplot.plot(x,temperature)
temperatureplot.margins(y=0.05)
awplot.set_xlabel('Time in [hm]')
plt.gcf().canvas.draw()
Run Code Online (Sandbox Code Playgroud)
我正在使用它,因为我在Tkinter Gui中绘制这个并且想要有时刷新它.情节如下:

我的价值观是:
t = [161000, 161015...., 191115]
aw = [0.618,......, 0.532]
temperature = [23.7,....,24.4]
Run Code Online (Sandbox Code Playgroud)
这是一个问题,我不是从t数组中的零开始?
如果有人提示或知道问题,请帮助我.
干杯最大