Changeset 1c6c1b7 in sasview for fittingview
- Timestamp:
- Jan 18, 2013 12:19:03 PM (12 years ago)
- 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
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fittingview/src/sans/perspectives/fitting/basepage.py
r5eb663a r1c6c1b7 2928 2928 graphs = [] 2929 2929 canvases = [] 2930 res_item = None 2930 2931 # call gui_manager 2931 2932 gui_manager = self.parent.parent … … 2935 2936 # try to get all plots belonging to this control panel 2936 2937 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) 2943 2948 except: 2944 2949 # Not for control panels 2945 2950 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]) 2946 2955 # return the list of graphs 2947 2956 return graphs, canvases
Note: See TracChangeset
for help on using the changeset viewer.