Changeset 3562fbc in sasview
- Timestamp:
- Feb 23, 2010 2:11:28 PM (15 years ago)
- 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
- Location:
- guiframe
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
guiframe/dataFitting.py
r09fe12d r3562fbc 11 11 import copy 12 12 13 class Data1D(PlotData1D, LoadData1D):13 class Data1D(PlotData1D, LoadData1D): 14 14 15 15 def __init__(self,x=[],y=[],dx=None,dy=None): … … 33 33 self.xaxis(data1d._xaxis,data1d._xunit) 34 34 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 36 43 class Theory1D(PlotTheory1D,LoadData1D): 37 44 … … 53 60 self.xaxis(data1d._xaxis,data1d._xunit) 54 61 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 55 69 56 70 class Data2D(PlotData2D,LoadData2D): … … 79 93 self.yaxis(data2d._yaxis,data2d._yunit) 80 94 95 def __str__(self): 96 """ 97 print data 98 """ 99 _str = "%s\n" % LoadData2D.__str__(self) 100 101 return _str 81 102 82 -
guiframe/local_perspectives/plotting/Plotter2D.py
r0f3fefe r3562fbc 516 516 event = self._getEmptySlicerEvent() 517 517 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.