Changeset 1c6c1b7 in sasview


Ignore:
Timestamp:
Jan 18, 2013 12:19:03 PM (12 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:
afd45674
Parents:
fad6056
Message:

In report, put the residual plot last

File:
1 edited

Legend:

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

    r5eb663a r1c6c1b7  
    29282928        graphs = [] 
    29292929        canvases = [] 
     2930        res_item = None 
    29302931        # call gui_manager 
    29312932        gui_manager = self.parent.parent 
     
    29352936            # try to get all plots belonging to this control panel 
    29362937            try: 
    2937                 if item2.group_id == data_title or \ 
    2938                         item2.group_id.count("res" + str(self.graph_id)) or \ 
    2939                         item2.group_id.count(str(self.uid)) > 0: 
    2940                     # append to the list 
    2941                     graphs.append(item2.figure) 
    2942                     canvases.append(item2.canvas) 
     2938                g_id = item2.group_id 
     2939                if g_id == data_title or \ 
     2940                        str(g_id).count("res" + str(self.graph_id)) or \ 
     2941                        str(g_id).count(str(self.uid)) > 0: 
     2942                    if str(g_id).count("res" + str(self.graph_id)) > 0: 
     2943                        res_item = [item2.figure, item2.canvas] 
     2944                    else: 
     2945                        # append to the list 
     2946                        graphs.append(item2.figure) 
     2947                        canvases.append(item2.canvas)   
    29432948            except: 
    29442949                # Not for control panels 
    29452950                pass 
     2951        # Make sure the resduals plot goes to the last 
     2952        if res_item != None: 
     2953            graphs.append(res_item[0]) 
     2954            canvases.append(res_item[1]) 
    29462955        # return the list of graphs 
    29472956        return graphs, canvases 
Note: See TracChangeset for help on using the changeset viewer.