Section_Props_GUI.py 文件源码

python
阅读 21 收藏 0 点赞 0 评论 0

项目:Structural-Engineering 作者: buddyd16 项目源码 文件源码
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()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号