Changeset 0145a25 in sasview for sansview/perspectives
- Timestamp:
- Jun 29, 2011 5:10:42 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:
- 6694604
- Parents:
- d5c2f4d
- Location:
- sansview/perspectives/fitting
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
sansview/perspectives/fitting/fitpage.py
r2c6b224 r0145a25 1114 1114 self.state.model.name = self.model.name 1115 1115 1116 self._draw_model()1116 1117 1117 if event != None: 1118 1118 ## post state to fit panel … … 1130 1130 self.formfactorbox.SetValue(current_val) 1131 1131 self._onDraw(event=None) 1132 else: 1133 self._draw_model() 1132 1134 self.SetupScrolling() 1133 1135 -
sansview/perspectives/fitting/fitting.py
r2c6b224 r0145a25 1305 1305 new_plot.symbol = GUIFRAME_ID.CURVE_SYMBOL_NUM 1306 1306 if data != None: 1307 #if model.output_name.lower().count("reflectivity") > 0: 1308 # _yaxis, _yunit = "\\rm{%s}"% model.output_name, \ 1309 # "%s"% model.output_unit 1310 #else: 1311 _yaxis, _yunit = data.get_yaxis() 1307 1312 _xaxis, _xunit = data.get_xaxis() 1308 _yaxis, _yunit = data.get_yaxis()1309 1313 new_plot.title = data.name 1310 1314 #if the theory is already plotted use the same group id … … 1319 1323 1320 1324 else: 1321 _xaxis, _xunit = "\\rm{Q}", 'A^{-1}' 1322 _yaxis, _yunit = "\\rm{Intensity} ", "cm^{-1}" 1325 _xaxis, _xunit = "\\rm{%s}"% model.input_name, \ 1326 "%s"% model.input_unit 1327 _yaxis, _yunit = "\\rm{%s}"% model.output_name, \ 1328 "%s"% model.output_unit 1323 1329 new_plot.title = "Analytical model 1D " 1324 1330 #find a group id to plot theory without data … … 1354 1360 current_pg = self.fit_panel.get_page_by_id(page_id) 1355 1361 title = new_plot.title 1356 1362 1357 1363 wx.PostEvent(self.parent, NewPlotEvent(plot=new_plot, 1358 1364 title= str(title)))
Note: See TracChangeset
for help on using the changeset viewer.