Changeset 5fe52594 in sasview


Ignore:
Timestamp:
Oct 26, 2017 5:59:18 AM (21 months ago)
Author:
Adam Washington <adam.washington@…>
Branches:
ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc
Children:
73a24fa
Parents:
e742b63c
Message:

Actually replace plots

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/qtgui/Perspectives/PrInversion/dmax.py

    re742b63c r5fe52594  
    5656 
    5757        self.plot = PlotterWidget(self, self) 
     58        self.hasPlot = None 
    5859        self.verticalLayout.insertWidget(0, self.plot) 
    5960 
     
    153154            ys = pos_err 
    154155 
    155         self.plot.plot(data=Data1D(xs, ys), marker="-") 
     156        data = Data1D(xs, ys) 
     157        if self.hasPlot: 
     158            self.plot.removePlot(None) 
     159        self.hasPlot = True 
     160        self.plot.plot(data=data, marker="-") 
    156161 
    157162 
Note: See TracChangeset for help on using the changeset viewer.