Changeset 3a39c2e in sasview for src/examples
- Timestamp:
- Feb 13, 2015 3:53:03 AM (10 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:
- 8c9ffde
- Parents:
- 79492222
- Location:
- src/examples
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
src/examples/test_chisq_panel.py
rf468791 r3a39c2e 27 27 28 28 import wx 29 from sa ns.plottools.PlotPanel import PlotPanel30 from sa ns.plottools.plottables import Plottable, Graph, Data1D, Theory1D29 from sas.plottools.PlotPanel import PlotPanel 30 from sas.plottools.plottables import Plottable, Graph, Data1D, Theory1D 31 31 import sys 32 32 import numpy … … 86 86 dy = numpy.sqrt(100*numpy.abs(y))/100 87 87 88 from sa ns.plottools.plottables import Data1D, Theory1D, Chisq , Graph88 from sas.plottools.plottables import Data1D, Theory1D, Chisq , Graph 89 89 data = Data1D(x,y,dy=dy) 90 90 data.xaxis('distance', 'm') -
src/examples/test_copy_print.py
rf468791 r3a39c2e 26 26 27 27 import wx 28 from sa ns.plottools.PlotPanel import PlotPanel29 from sa ns.plottools.plottables import Graph, Data1D, Theory1D28 from sas.plottools.PlotPanel import PlotPanel 29 from sas.plottools.plottables import Graph, Data1D, Theory1D 30 30 import sys 31 31 sys.platform = 'win95' -
src/examples/test_panel.py
rf468791 r3a39c2e 1 1 """ 2 2 Test application that uses plottools 3 This application uses most of the functionality required by the SA NS group3 This application uses most of the functionality required by the SAS group 4 4 and should be treated as a test-case representative of that use. 5 5 … … 37 37 """ 38 38 import wx 39 from sa ns.plottools.PlotPanel import PlotPanel40 from sa ns.plottools.plottables import Data1D39 from sas.plottools.PlotPanel import PlotPanel 40 from sas.plottools.plottables import Data1D 41 41 import sys 42 42 import numpy … … 44 44 45 45 46 class SA NSplotpanel(PlotPanel):46 class SASplotpanel(PlotPanel): 47 47 48 48 def __init__(self, parent, id = -1, color = None,\ … … 94 94 95 95 # Panel for 1D plot 96 self.plotpanel = SA NSplotpanel(self, -1, style=wx.RAISED_BORDER)96 self.plotpanel = SASplotpanel(self, -1, style=wx.RAISED_BORDER) 97 97 98 98 # Set up the menu -
src/examples/test_panel2D.py
rf468791 r3a39c2e 1 1 """ 2 2 Test application that uses plottools 3 This application uses most of the functionality required by the SA NS group3 This application uses most of the functionality required by the SAS group 4 4 and should be treated as a test-case representative of that use. 5 5 … … 37 37 """ 38 38 import wx 39 from sa ns.plottools.PlotPanel import PlotPanel40 from sa ns.plottools.plottables import Data1D, Theory1D, Data2D39 from sas.plottools.PlotPanel import PlotPanel 40 from sas.plottools.plottables import Data1D, Theory1D, Data2D 41 41 import sys,os 42 42 import numpy … … 44 44 45 45 46 class SA NSplotpanel(PlotPanel):46 class SASplotpanel(PlotPanel): 47 47 48 48 def __init__(self, parent, id = -1, color = None,\ … … 136 136 137 137 # Panel for 1D plot 138 self.plotpanel = SA NSplotpanel(self, -1, style=wx.RAISED_BORDER)138 self.plotpanel = SASplotpanel(self, -1, style=wx.RAISED_BORDER) 139 139 140 140 # Set up the menu … … 200 200 path = dlg.GetPath() 201 201 mypath = os.path.basename(path) 202 from sa ns.dataloader.loader import Loader202 from sas.dataloader.loader import Loader 203 203 204 204 #Instantiate a loader -
src/examples/test_text_panel.py
rf468791 r3a39c2e 27 27 28 28 import wx 29 from sa ns.plottools.PlotPanel import PlotPanel30 from sa ns.plottools.plottables import Text, Graph29 from sas.plottools.PlotPanel import PlotPanel 30 from sas.plottools.plottables import Text, Graph 31 31 32 32 class TestPlotPanel(PlotPanel):
Note: See TracChangeset
for help on using the changeset viewer.