Changeset 3562fbc in sasview


Ignore:
Timestamp:
Feb 23, 2010 2:11:28 PM (15 years ago)
Author:
Gervaise Alina <gervyh@…>
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:
b324aa9
Parents:
4cf7443
Message:

remove togglescale method to use the one of plotpanel

Location:
guiframe
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • guiframe/dataFitting.py

    r09fe12d r3562fbc  
    1111import copy 
    1212 
    13 class Data1D(PlotData1D,LoadData1D): 
     13class Data1D(PlotData1D, LoadData1D): 
    1414     
    1515    def __init__(self,x=[],y=[],dx=None,dy=None): 
     
    3333        self.xaxis(data1d._xaxis,data1d._xunit) 
    3434        self.yaxis(data1d._yaxis,data1d._yunit) 
    35      
     35         
     36    def __str__(self): 
     37        """ 
     38            print data 
     39        """ 
     40        _str = "%s\n" % LoadData1D.__str__(self) 
     41       
     42        return _str  
    3643class Theory1D(PlotTheory1D,LoadData1D): 
    3744     
     
    5360        self.xaxis(data1d._xaxis,data1d._xunit) 
    5461        self.yaxis(data1d._yaxis,data1d._yunit) 
     62    def __str__(self): 
     63        """ 
     64            print data 
     65        """ 
     66        _str = "%s\n" % LoadData1D.__str__(self) 
     67       
     68        return _str  
    5569       
    5670class Data2D(PlotData2D,LoadData2D): 
     
    7993        self.yaxis(data2d._yaxis,data2d._yunit) 
    8094         
     95    def __str__(self): 
     96        """ 
     97            print data 
     98        """ 
     99        _str = "%s\n" % LoadData2D.__str__(self) 
     100       
     101        return _str  
    81102         
    82          
  • guiframe/local_perspectives/plotting/Plotter2D.py

    r0f3fefe r3562fbc  
    516516            event = self._getEmptySlicerEvent() 
    517517            wx.PostEvent(self, event) 
    518            
    519      
    520     def _onToggleScale(self, event): 
    521         """ 
    522             toggle scale and replot image 
    523         """ 
    524         if self.scale == 'log': 
    525             self.scale = 'linear' 
    526         else: 
    527             self.scale = 'log' 
    528         self.image(self.data2D.data,self.xmin_2D,self.xmax_2D,self.ymin_2D, 
    529                    self.ymax_2D,self.zmin_2D ,self.zmax_2D ) 
    530          
    531         self.subplot.figure.canvas.draw_idle() 
     518    
Note: See TracChangeset for help on using the changeset viewer.