Changeset fce6c55 in sasview for src/sas


Ignore:
Timestamp:
Jul 27, 2018 6:13:43 AM (6 years ago)
Author:
Piotr Rozyczko <rozyczko@…>
Branches:
ESS_GUI, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc
Children:
c0de493
Parents:
3f5b901
git-author:
Piotr Rozyczko <rozyczko@…> (07/27/18 06:12:52)
git-committer:
Piotr Rozyczko <rozyczko@…> (07/27/18 06:13:43)
Message:

Make the plots a bit more persistent and calculate bins properly. SASVIEW-969

Location:
src/sas/qtgui
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/sas/qtgui/MainWindow/DataExplorer.py

    r6ff103a rfce6c55  
    965965            method_name='Plotter2D' 
    966966 
    967         new_plot = globals()[method_name](self, quickplot=True) 
    968         new_plot.data = data 
     967        self.new_plot = globals()[method_name](self, quickplot=True) 
     968        self.new_plot.data = data 
    969969        #new_plot.plot(marker='o') 
    970         new_plot.plot() 
     970        self.new_plot.plot() 
    971971 
    972972        # Update the global plot counter 
    973973        title = "Plot " + data.name 
    974         new_plot.setWindowTitle(title) 
     974        self.new_plot.setWindowTitle(title) 
    975975 
    976976        # Show the plot 
    977         new_plot.show() 
     977        self.new_plot.show() 
    978978 
    979979    def quickData3DPlot(self): 
     
    988988        data = GuiUtils.dataFromItem(model_item) 
    989989 
    990         new_plot = Plotter2D(self, quickplot=True, dimension=3) 
    991         new_plot.data = data 
    992         new_plot.plot() 
     990        self.new_plot = Plotter2D(self, quickplot=True, dimension=3) 
     991        self.new_plot.data = data 
     992        self.new_plot.plot() 
    993993 
    994994        # Update the global plot counter 
    995995        title = "Plot " + data.name 
    996         new_plot.setWindowTitle(title) 
     996        self.new_plot.setWindowTitle(title) 
    997997 
    998998        # Show the plot 
    999         new_plot.show() 
     999        self.new_plot.show() 
    10001000 
    10011001    def showEditDataMask(self, data=None): 
  • src/sas/qtgui/Plotting/Plotter2D.py

    rd9150d8 rfce6c55  
    402402            output = copy.deepcopy(data) 
    403403 
     404        # get the x and y_bin arrays. 
     405        x_bins, y_bins = PlotUtilities.get_bins(self.qx_data, self.qy_data) 
     406        self._data.x_bins = x_bins 
     407        self._data.y_bins = y_bins 
     408 
    404409        zmin_temp = self.zmin 
    405410        # check scale 
Note: See TracChangeset for help on using the changeset viewer.