Changeset 061775ff in sasview for guitools


Ignore:
Timestamp:
Apr 3, 2008 10:52:26 AM (17 years ago)
Author:
Gervaise Alina <gervyh@…>
Branches:
master, 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, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
89a436a
Parents:
4965ea1
Message:

update theory and fitdialog .i have put none as error for the fit line so far

Location:
guitools
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • guitools/PlotPanel.py

    r1d40f44 r061775ff  
    481481            @param plottable: the plottable to plot 
    482482        """ 
     483        plottable.reset_view() 
    483484        self.graph.add(plottable) 
    484485        self.graph.render(self) 
  • guitools/fitDialog.py

    re40b651 r061775ff  
    9393        print "we are on fit" 
    9494        temp =[] 
    95         tempdx =[] 
     95        #tempdx =[] 
    9696        tempdy =[] 
    9797        xmin = self._checkVal(self.tcXmin.GetValue()) 
     
    103103                    if x[j]>xmin and x[j]<xmax: 
    104104                        temp.append(self.model.run(x[j])) 
    105                         tempdx.append(math.sqrt(x[j])) 
     105                        #tempdx.append(math.sqrt(x[j])) 
    106106                        for y_i in temp: 
    107107                            tempdy.append(math.sqrt(y_i))  
     
    120120            self.file_data1.x =x 
    121121            self.file_data1.y =temp 
    122             self.file_data1.dx=tempdx 
    123             self.file_data1.dy=tempdy 
     122            #self.file_data1.dx=tempdx 
     123            self.file_data1.dx=None 
     124            #self.file_data1.dy=tempdy 
     125            self.file_data1.dy=None 
    124126             
    125127         
  • guitools/plottables.py

    r1d40f44 r061775ff  
    492492        self.x = x 
    493493        self.y = y 
    494   
    495494        self.dy = dy 
    496  
     495        #Alina:added 
     496        self.view = self.View(self.x, self.y, None, self.dy) 
    497497    def render(self,plot,**kw): 
    498         plot.curve(self.x,self.y,dy=self.dy,**kw) 
     498        #plot.curve(self.x,self.y,dy=self.dy,**kw) 
     499        plot.curve(self.view.x,self.view.y,dy=self.view.dy,**kw) 
    499500 
    500501    def changed(self): 
Note: See TracChangeset for help on using the changeset viewer.