Changeset 818589a in sasview
- Timestamp:
- Apr 18, 2011 2:42:55 PM (14 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:
- e58c280
- Parents:
- 0c68c27
- Location:
- sansview/perspectives/fitting
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
sansview/perspectives/fitting/basepage.py
r1a74523 r818589a 2479 2479 # try to get all plots belonging to this control panel 2480 2480 try: 2481 title = '' 2481 2482 # check titles (main plot) 2483 if hasattr(item2,"data2D"): 2484 title = item2.data2D.title 2482 2485 # and data_names (model plot[2D], and residuals) 2483 2486 if item2.group_id == data_title or \ 2484 item2.window_name.count(data_name) or\ 2487 title.count(data_name) or \ 2488 item2.window_name.count(data_name) or \ 2485 2489 item2.window_caption.count(data_name): 2486 2490 #panel = gui_manager._mgr.GetPane(item2.window_name) -
sansview/perspectives/fitting/fitting.py
rba1f0b2 r818589a 1297 1297 new_plot= Data2D(image=image, err_image=err_image) 1298 1298 new_plot.name = model.name 1299 1299 new_plot.title = "Analytical model 2D " 1300 1300 if data is None: 1301 1301 self._fill_default_model2D(theory=new_plot, … … 1324 1324 new_plot.xmin = data.xmin 1325 1325 new_plot.xmax = data.xmax 1326 title = data.title 1327 if len(title) > 1: 1328 new_plot.title = "Model2D for " + data.name 1326 1329 new_plot.is_data = False 1327 1330 new_plot.name = model.name + " ["+ str(model.__class__.__name__)+ "]" 1328 new_plot.title = "Analytical model 2D " 1331 1329 1332 theory_data = deepcopy(new_plot) 1330 1333 theory_data.name = "Unknown" … … 1345 1348 current_pg = self.fit_panel.get_page_by_id(page_id) 1346 1349 title = new_plot.title 1350 1347 1351 wx.PostEvent(self.parent, NewPlotEvent(plot=new_plot, 1348 1352 title=title))
Note: See TracChangeset
for help on using the changeset viewer.