Ignore:
Timestamp:
Dec 14, 2012 2:50:24 PM (12 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:
0203ade
Parents:
aa01d07b
Message:

merging from the release 2.2.0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • calculatorview/src/sans/perspectives/calculator/data_operator.py

    r1d490fd r657e52c  
    645645        self.position = (0.4, 0.5) 
    646646        self.scale = 'linear' 
     647        self.prevXtrans = "x" 
     648        self.prevYtrans = "y" 
     649        self.viewModel = "--" 
    647650        self.subplot.set_xticks([]) 
    648651        self.subplot.set_yticks([]) 
     
    865868                dial.view.Insert("--", 0) 
    866869                dial.view.Insert("Linear y vs x", 1) 
    867                 dial.xvalue.SetValue("x") 
    868                 dial.yvalue.SetValue("y") 
    869                 dial.view.SetValue("--") 
     870                dial.setValues(self.prevXtrans, self.prevYtrans, self.viewModel) 
    870871                dial.Update() 
    871872                if dial.ShowModal() == wx.ID_OK: 
     
    918919                self.graph._yaxis_transformed("%s" % yname, "%s" % yunits) 
    919920            item.transformView() 
     921        self.prevXtrans = self.xLabel 
     922        self.prevYtrans = self.yLabel 
    920923        self.set_xscale(_xscale) 
    921924        self.set_yscale(_yscale) 
Note: See TracChangeset for help on using the changeset viewer.