Changeset a4964b8e in sasview for sansguiframe/src


Ignore:
Timestamp:
Oct 6, 2011 12:07:44 PM (13 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:
4904062
Parents:
1c86a37
Message:

removed print comment and added error msg in plot error

Location:
sansguiframe/src/sans/guiframe/local_perspectives/plotting
Files:
2 edited

Legend:

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

    re2160ab ra4964b8e  
    248248            self.plots[data.id] = data 
    249249            ## Set the view scale for all plots 
    250             self._onEVT_FUNC_PROPERTY() 
     250            try: 
     251                self._onEVT_FUNC_PROPERTY() 
     252            except: 
     253                msg=" Encountered sigular points..." 
     254                wx.PostEvent(self, StatusEvent(status=\ 
     255                            "Plotting Erorr: %s"%msg)) 
    251256            # Check if zoomed 
    252257            toolbar_zoomed = self.toolbar.GetToolEnabled(self.toolbar._NTB2_BACK) 
     
    265270            self.graph.add(self.plots[data.id])  
    266271            ## Set the view scale for all plots 
    267             self._onEVT_FUNC_PROPERTY() 
     272            try: 
     273                self._onEVT_FUNC_PROPERTY() 
     274            except: 
     275                msg=" Encountered sigular points..." 
     276                wx.PostEvent(self, StatusEvent(status=\ 
     277                            "Plotting Erorr: %s"%msg)) 
    268278            self.toolbar.update() 
    269279            if self.is_zoomed: 
     
    532542         
    533543        ## render the graph 
    534         self._onEVT_FUNC_PROPERTY()  
    535          
     544        try: 
     545            self._onEVT_FUNC_PROPERTY() 
     546        except: 
     547            msg=" Encountered sigular points..." 
     548            wx.PostEvent(self, StatusEvent(status=\ 
     549                        "Plotting Erorr: %s"%msg))  
     550     
    536551    def onChangeColor(self, event): 
    537552        """ 
  • sansguiframe/src/sans/guiframe/local_perspectives/plotting/Plotter2D.py

    re2160ab ra4964b8e  
    259259        helpString += (' ' + str(data.label) +';') 
    260260        self.parent._window_menu.SetHelpString(pos, helpString) 
    261         print "str(data.label)", str(data.label) 
     261 
    262262    def _set_axis_labels(self): 
    263263        """ 
Note: See TracChangeset for help on using the changeset viewer.