【发布时间】:2014-03-11 13:01:37
【问题描述】:
我目前正在 TKinter 框架中的 matplotlib (mpl) 中创建振荡图的动画。我目前使用的代码:
self.f = plt.Figure()
self.canv = FigureCanvasTkAgg(self.f, master=master)
self.canv.get_tk_widget().grid(master,column=2,row=2)
self.axes = self.f.add_subplot(222)
self.line, = self.axes.plot(x,y)
self.ani = animation.FuncAnimation(self.f, animate, interval=0, blit=True)
例如,动画从 +10 到 -4 摆动,我如何将轴范围设置为 +10 和 -10?使轴的正负部分的绝对值相同。
谢谢
【问题讨论】:
标签: python matplotlib tkinter