Ignore:
Timestamp:
Oct 13, 2011 12:55:32 PM (13 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:
db0c347
Parents:
665fd06
Message:

theory legend title = M1[ data.name] and will not given as model class name

File:
1 edited

Legend:

Unmodified
Added
Removed
  • fittingview/src/sans/perspectives/fitting/fitting.py

    rec9a635 rb5fe787  
    12241224            #Suucessful fit 
    12251225            theory_data.id = wx.NewId() 
    1226             theory_data.name = model.name + "[%s]" % str(model.__class__.__name__) 
     1226            theory_data.name = model.name + "[%s]" % str(data.name) 
    12271227            try: 
    12281228                # associate residuals plot 
     
    14751475            #the same id 
    14761476            theory_data = self.page_finder[page_id].get_theory_data(fid=data.id) 
    1477             new_plot.name = model.name + " ["+ str(model.__class__.__name__)+"]" 
     1477            new_plot.name = model.name + " ["+ str(data.name)+"]" 
    14781478            new_plot.xaxis(_xaxis, _xunit) 
    14791479            new_plot.yaxis(_yaxis, _yunit) 
     
    15601560        new_plot.is_data = False 
    15611561        new_plot.name = model.name + " [" + \ 
    1562                                     str(model.__class__.__name__) + "-2D]" 
     1562                                    str(data.name) + "-2D]" 
    15631563        theory_data = deepcopy(new_plot) 
    15641564        theory_data.name = "Unknown" 
     
    18141814            residuals.yaxis('\\rm{Residuals} ', 'normalized') 
    18151815        new_plot = residuals 
    1816         new_plot.name = "Residuals for " + str(theory_data.name.split()[0]) 
     1816        new_plot.name = "Residuals for " + str(theory_data.name.split()[0]) +"[" +  str(data.name) +"]" 
    18171817        ## allow to highlight data when plotted 
    18181818        new_plot.interactive = True 
Note: See TracChangeset for help on using the changeset viewer.