Change combobox option to modificate graphic/chart

前端 未结 1 1514
感情败类
感情败类 2021-01-27 15:46

I\'m using PyQt5 to build up a user interface to show up data from "curve_fit" method.

As the data which I\'m working can have discontinuities, my return from t

相关标签:
1条回答
  • 2021-01-27 16:07

    You have to use the draw() method of the canvas to update the painting:

    def changePlot(self):
        # ...
    
        self.static_ax2.plot(x2_test, error_y)
        self.static_ax2.plot(x2_test, zero_y)
    
        self.static_canvas1.draw()
        self.static_canvas2.draw()
    0 讨论(0)
提交回复
热议问题