Changeset da594d0 in sasview for sansview


Ignore:
Timestamp:
Apr 17, 2009 5:12:22 PM (15 years ago)
Author:
Jae Cho <jhjcho@…>
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:
5812a55
Parents:
fc6ea43
Message:

save as cansas xml from theory data

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sansview/perspectives/fitting/fitting.py

    rfc6ea43 rda594d0  
    959959            # Pass the reset flag to let the plotting event handler 
    960960            # know that we are replacing the whole plot 
     961            from DataLoader.data_info import Data1D 
     962            info= Data1D(x= new_plot.x, y=new_plot.y) 
     963            info.title= new_plot.name 
    961964            title= my_info.title 
     965            info.xaxis(new_plot._xaxis,  new_plot._xunit) 
     966            info.yaxis( new_plot._yaxis, new_plot._yunit) 
     967            new_plot.info = info 
    962968            if title== None: 
    963969                title = "Analytical model 1D " 
     
    10091015            theory.detector= data.detector 
    10101016            theory.source= data.source 
    1011         
     1017             
    10121018            ## plot boundaries 
    10131019            theory.ymin= data.ymin 
Note: See TracChangeset for help on using the changeset viewer.