def refreshFigure(self):
x=[]
y=[]
if self.lb_coords.size()==0:
pass
else:
coords_raw = self.lb_coords.get(0,tk.END)
for line in coords_raw:
coords = line.split(',')
x.append(float(coords[0]))
y.append(float(coords[1]))
self.line1.set_data(x,y)
ax = self.canvas.figure.axes[0]
ax.set_xlim(min(x)-0.5, max(x)+0.5)
ax.set_ylim(min(y)-0.5, max(y)+0.5)
self.canvas.draw()
Section_Props_GUI.py 文件源码
python
阅读 21
收藏 0
点赞 0
评论 0
评论列表
文章目录