Changeset 978967c in sasview


Ignore:
Timestamp:
Oct 22, 2008 9:35:04 AM (16 years ago)
Author:
Gervaise Alina <gervyh@…>
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:
44bbf6a
Parents:
7691125
Message:

changing the loaddata name to filename

File:
1 edited

Legend:

Unmodified
Added
Removed
  • guiframe/data_loader.py

    r48c7477 r978967c  
    8585        new_plot.x_bins=output.x_bins 
    8686        new_plot.y_bins=output.y_bins 
     87        #print "data_loader",output 
    8788    else: 
    8889        if output.dy==None: 
     
    9091        else: 
    9192            new_plot = Data1D(x=output.x,y=output.y,dy=output.dy) 
    92          
     93     
    9394    filename = os.path.basename(path) 
    9495    new_plot.source=output    
    95     new_plot.name = name 
     96    new_plot.name = filename 
    9697    new_plot.interactive = True 
    9798    # If the data file does not tell us what the axes are, just assume... 
    98     new_plot.xaxis("\\rm{Q}",'A^{-1}') 
    99     new_plot.yaxis("\\rm{Intensity} ","cm^{-1}") 
     99    new_plot.xaxis(output._xaxis,output._xunit) 
     100    new_plot.yaxis(output._yaxis,output._yunit) 
     101    #new_plot.xaxis("\\rm{Q}",'A^{-1}') 
     102    #new_plot.yaxis("\\rm{Intensity} ","cm^{-1}") 
     103     
    100104    new_plot.group_id = filename 
    101105        
Note: See TracChangeset for help on using the changeset viewer.