Changeset f468791 in sasview for src/examples


Ignore:
Timestamp:
Oct 24, 2013 10:40:22 AM (11 years ago)
Author:
Mathieu Doucet <doucetm@…>
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
Message:

Move plottools under sans

Location:
src/examples
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • src/examples/test_chisq_panel.py

    r5777106 rf468791  
    2727 
    2828import wx 
    29 from danse.common.plottools.PlotPanel import PlotPanel 
    30 from danse.common.plottools.plottables import Plottable, Graph, Data1D, Theory1D 
     29from sans.plottools.PlotPanel import PlotPanel 
     30from sans.plottools.plottables import Plottable, Graph, Data1D, Theory1D 
    3131import  sys 
    3232import numpy 
     
    8686        dy = numpy.sqrt(100*numpy.abs(y))/100 
    8787 
    88     from danse.common.plottools.plottables import Data1D, Theory1D, Chisq , Graph 
     88    from sans.plottools.plottables import Data1D, Theory1D, Chisq , Graph 
    8989    data = Data1D(x,y,dy=dy) 
    9090    data.xaxis('distance', 'm') 
  • src/examples/test_copy_print.py

    r5777106 rf468791  
    2626 
    2727import wx 
    28 from danse.common.plottools.PlotPanel import PlotPanel 
    29 from danse.common.plottools.plottables import Plottable, Graph, Data1D, Theory1D 
     28from sans.plottools.PlotPanel import PlotPanel 
     29from sans.plottools.plottables import Graph, Data1D, Theory1D 
    3030import  sys 
    3131sys.platform = 'win95' 
     
    8585    dy = numpy.sqrt(100*numpy.abs(y))/100 
    8686     
    87     from danse.common.plottools.plottables import Data1D, Theory1D,  Graph 
    88      
    8987    data = Data1D(x,y,dy=dy) 
    9088    data.xaxis('distance', 'm') 
  • src/examples/test_panel.py

    r5777106 rf468791  
    3737""" 
    3838import wx 
    39 from danse.common.plottools.PlotPanel import PlotPanel 
    40 from danse.common.plottools.plottables import Plottable, Graph, Data1D, Theory1D 
     39from sans.plottools.PlotPanel import PlotPanel 
     40from sans.plottools.plottables import Data1D 
    4141import  sys 
    4242import numpy 
  • src/examples/test_panel2D.py

    r5777106 rf468791  
    3737""" 
    3838import wx 
    39 from danse.common.plottools.PlotPanel import PlotPanel 
    40 from danse.common.plottools.plottables import Plottable, Graph, Data1D, Theory1D,Data2D 
     39from sans.plottools.PlotPanel import PlotPanel 
     40from sans.plottools.plottables import Data1D, Theory1D, Data2D 
    4141import  sys,os 
    4242import numpy 
     
    200200            path = dlg.GetPath() 
    201201            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 
    204203            
    205204            #Instantiate a loader  
  • src/examples/test_text_panel.py

    r5777106 rf468791  
    2727 
    2828import 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  
     29from sans.plottools.PlotPanel import PlotPanel 
     30from sans.plottools.plottables import Text, Graph 
    3431 
    3532class TestPlotPanel(PlotPanel): 
     
    7774def sample_graph(): 
    7875    # Construct a simple graph 
    79  
    80     from danse.common.plottools.plottables import Text, Graph 
    8176     
    8277    T1 = Text(text='text example 1', xpos=0.2, ypos=0.2) 
     
    106101     
    107102if __name__ == "__main__": 
    108     pass 
    109103    demo_plotter(sample_graph()) 
    110104 
Note: See TracChangeset for help on using the changeset viewer.