Changeset ebf422a in sasview for sansguiframe/src/sans


Ignore:
Timestamp:
Sep 26, 2011 11:09:09 AM (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:
0d019c6
Parents:
71fa9028
Message:

not reset on hide/add errors

File:
1 edited

Legend:

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

    re6c6b67 rebf422a  
    303303        Toggle error display to hide or show 
    304304        """ 
    305          
     305        # Check zoom 
     306        xlo, xhi = self.subplot.get_xlim() 
     307        ylo, yhi = self.subplot.get_ylim() 
     308 
    306309        selected_plot = self.plots[self.graph.selected_plottable] 
    307310        if self.hide_menu.GetText() == "Hide Error Bar": 
     
    312315        self.graph.render(self) 
    313316        self.subplot.figure.canvas.draw_idle()   
     317        # Check if zoomed 
     318        toolbar_zoomed = self.toolbar.GetToolEnabled(self.toolbar._NTB2_BACK) 
     319        if self.is_zoomed or toolbar_zoomed: 
     320            # Recover the x,y limits 
     321            self.subplot.set_xlim((xlo, xhi))      
     322            self.subplot.set_ylim((ylo, yhi))  
     323 
    314324           
    315325    def _onRemove(self, event): 
Note: See TracChangeset for help on using the changeset viewer.