Changeset f468791 in sasview for src/examples
- Timestamp:
- Oct 24, 2013 10:40:22 AM (11 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:
- 1f8eecb
- Parents:
- a9d5684
- Location:
- src/examples
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
src/examples/test_chisq_panel.py
r5777106 rf468791 27 27 28 28 import wx 29 from danse.common.plottools.PlotPanel import PlotPanel30 from danse.common.plottools.plottables import Plottable, Graph, Data1D, Theory1D29 from sans.plottools.PlotPanel import PlotPanel 30 from sans.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 danse.common.plottools.plottables import Data1D, Theory1D, Chisq , Graph88 from sans.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
r5777106 rf468791 26 26 27 27 import wx 28 from danse.common.plottools.PlotPanel import PlotPanel29 from danse.common.plottools.plottables import Plottable,Graph, Data1D, Theory1D28 from sans.plottools.PlotPanel import PlotPanel 29 from sans.plottools.plottables import Graph, Data1D, Theory1D 30 30 import sys 31 31 sys.platform = 'win95' … … 85 85 dy = numpy.sqrt(100*numpy.abs(y))/100 86 86 87 from danse.common.plottools.plottables import Data1D, Theory1D, Graph88 89 87 data = Data1D(x,y,dy=dy) 90 88 data.xaxis('distance', 'm') -
src/examples/test_panel.py
r5777106 rf468791 37 37 """ 38 38 import wx 39 from danse.common.plottools.PlotPanel import PlotPanel40 from danse.common.plottools.plottables import Plottable, Graph, Data1D, Theory1D39 from sans.plottools.PlotPanel import PlotPanel 40 from sans.plottools.plottables import Data1D 41 41 import sys 42 42 import numpy -
src/examples/test_panel2D.py
r5777106 rf468791 37 37 """ 38 38 import wx 39 from danse.common.plottools.PlotPanel import PlotPanel40 from danse.common.plottools.plottables import Plottable, Graph, Data1D, Theory1D,Data2D39 from sans.plottools.PlotPanel import PlotPanel 40 from sans.plottools.plottables import Data1D, Theory1D, Data2D 41 41 import sys,os 42 42 import numpy … … 200 200 path = dlg.GetPath() 201 201 mypath = os.path.basename(path) 202 #from danse.common.plottools.plottables import Data2D 203 from DataLoader.loader import Loader 202 from sans.dataloader.loader import Loader 204 203 205 204 #Instantiate a loader -
src/examples/test_text_panel.py
r5777106 rf468791 27 27 28 28 import wx 29 from danse.common.plottools.PlotPanel import PlotPanel 30 from danse.common.plottools.plottables import Plottable, Graph, Data1D, Theory1D 31 import sys 32 import numpy 33 29 from sans.plottools.PlotPanel import PlotPanel 30 from sans.plottools.plottables import Text, Graph 34 31 35 32 class TestPlotPanel(PlotPanel): … … 77 74 def sample_graph(): 78 75 # Construct a simple graph 79 80 from danse.common.plottools.plottables import Text, Graph81 76 82 77 T1 = Text(text='text example 1', xpos=0.2, ypos=0.2) … … 106 101 107 102 if __name__ == "__main__": 108 pass109 103 demo_plotter(sample_graph()) 110 104
Note: See TracChangeset
for help on using the changeset viewer.