Ignore:
Timestamp:
Apr 2, 2014 4:04:01 PM (11 years ago)
Author:
pkienzle
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:
1829835
Parents:
6771d94
Message:

support old and new versions of matplotlib

File:
1 edited

Legend:

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

    rb9f6d83 rcafa75f  
    249249        self.default_zmin_ctl = self.zmin_2D 
    250250        self.default_zmax_ctl = self.zmax_2D 
    251         # Check if zoomed 
    252         try: tb = self.toolbar.wx_ids['Back'] 
    253         except AttributeError: tb = self.toolbar._NTB2_BACK # Cruft 
    254         toolbar_zoomed = self.toolbar.GetToolEnabled(tb) 
    255         if not self.is_zoomed and not toolbar_zoomed: 
     251        if not self.is_zoomed: 
    256252            return 
    257253        # Recover the x,y limits 
     
    263259            else:  
    264260                self.toolbar.update() 
    265                 self._is_zoomed = False 
     261                self.is_zoomed = False 
    266262 
    267263    def _set_axis_labels(self): 
Note: See TracChangeset for help on using the changeset viewer.