Changeset 808da5e in sasview


Ignore:
Timestamp:
Aug 3, 2012 1:22:50 PM (12 years ago)
Author:
Jae Cho <jhjcho@…>
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:
285c3bb
Parents:
1d3a2e7
Message:

mac: fixed sld plot problem

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sansguiframe/src/sans/guiframe/local_perspectives/plotting/profile_dialog.py

    rd56fc67 r808da5e  
    6666            # layout 
    6767            self._setup_layout() 
     68             
    6869            # plot 
    6970            data_plot = deepcopy(self.data) 
     
    7677            self.newplot.dy = None 
    7778            self.newplot.name = 'SLD' 
     79            self.newplot.is_data = False 
     80             
    7881            self.newplot.id = self.newplot.name 
    7982            self.plotpanel.add_image(self.newplot)  
     83             
     84            self.plotpanel.resizing = False 
     85            self.plotpanel.canvas.set_resizing(self.plotpanel.resizing) 
     86             
    8087            self.plotpanel.subplot.set_ylim(min(data_plot.y) - _Y_OFF ,  
    8188                                                max(data_plot.y) + _Y_OFF) 
    8289            self.plotpanel.subplot.set_xlim(min(data_plot.x) - _X_OFF,  
    8390                                                max(data_plot.x) + _X_OFF) 
    84             self.plotpanel.resizing = False 
    85             self.plotpanel.canvas.set_resizing(self.plotpanel.resizing) 
    8691            self.plotpanel.graph.render(self.plotpanel) 
     92            self.plotpanel.canvas.draw() 
    8793 
    8894    def _set_dy_data(self):  
     
    219225        self.yaxis_unit = '' 
    220226        self.resizing = True 
     227        self.xcolor = 'black' 
     228        self.ycolor = 'black' 
    221229         
    222230    def add_image(self, plot): 
Note: See TracChangeset for help on using the changeset viewer.