Changeset c48a26a in sasview for sansview/perspectives


Ignore:
Timestamp:
Jan 17, 2009 9:16:17 PM (15 years ago)
Author:
Mathieu Doucet <doucetm@…>
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:
cfc68540
Parents:
ea20505
Message:

Fixed problem with the selection of the number of points for 2D plot. Also fixed the related problem of the 1D plot being replotted with the wrong number of points after the 2D plot is first displayed.

Location:
sansview/perspectives/fitting
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • sansview/perspectives/fitting/fitting.py

    r568e1a5 rc48a26a  
    657657                           qmin=qmin, 
    658658                           qmax=qmax, 
    659                            qstep=None) 
     659                           qstep=qstep) 
    660660        self._draw_model1D(model,name,model.description, enable1D,qmin,qmax, qstep) 
    661661        
  • sansview/perspectives/fitting/modelpage.py

    rea20505 rc48a26a  
    187187         call manager to plot model in 2D 
    188188        """ 
    189         if self.enable2D== True: 
    190             print "modelpage already plot", 
    191189        # If the 2D display is not currently enabled, plot the model in 2D  
    192190        # and set the enable2D flag. 
     
    196194                                    name=self.model.name, 
    197195                                    description=None, 
    198                                      enable2D=self.enable2D, 
    199                                      qmin=float(self.qmin), 
    200                                     qmax=float(self.qmax)) 
     196                                    enable2D=self.enable2D, 
     197                                    qmin=float(self.qmin), 
     198                                    qmax=float(self.qmax), 
     199                                    qstep= self.num_points) 
    201200        
    202201             
     
    407406                is_modified = True 
    408407           
    409              
    410408            if is_modified: 
    411409                self.manager.draw_model(self.model, self.model.name,  
     
    413411                                        qstep= self.num_points, 
    414412                                        enable2D=self.enable2D) 
    415             #self.manager.draw_model(self,model,description=None, 
    416             # enable1D=True,qmin=None,qmax=None, qstep=None) 
    417413             
    418414             
Note: See TracChangeset for help on using the changeset viewer.