Ignore:
Timestamp:
Aug 3, 2009 6:28:42 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:
2cc633b
Parents:
e6fa43e
Message:

guiframe: fix 2D scale change

File:
1 edited

Legend:

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

    r4ac8556 r0f3fefe  
    518518           
    519519     
    520     def old_onToggleScale(self, event): 
    521         """ 
    522             toggle pixel scale and replot image 
     520    def _onToggleScale(self, event): 
     521        """ 
     522            toggle scale and replot image 
    523523        """ 
    524524        if self.scale == 'log': 
     
    528528        self.image(self.data2D.data,self.xmin_2D,self.xmax_2D,self.ymin_2D, 
    529529                   self.ymax_2D,self.zmin_2D ,self.zmax_2D ) 
    530         wx.PostEvent(self.parent, StatusEvent(status="Image is in %s scale"%self.scale)) 
    531          
    532         """      
    533             #TODO: this name should be changed to something more appropriate 
    534             # Don't forget that changing this name will mean changing code 
    535             # in plotting.py 
    536               
    537             # Update the plottable with the new data 
    538              
    539             #TODO: we should have a method to do this,  
    540             #      something along the lines of: 
    541             #      plottable1.update_data_from_plottable(plottable2) 
    542              
    543             self.plots[event.plot.name].xmin = event.plot.xmin 
    544             self.plots[event.plot.name].xmax = event.plot.xmax 
    545             self.plots[event.plot.name].ymin = event.plot.ymin 
    546             self.plots[event.plot.name].ymax = event.plot.ymax 
    547             self.plots[event.plot.name].data = event.plot.data 
    548             self.plots[event.plot.name].err_data = event.plot.err_data 
    549         """ 
     530         
     531        self.subplot.figure.canvas.draw_idle() 
Note: See TracChangeset for help on using the changeset viewer.