Changeset 36288ca in sasview for sansguiframe/src
- Timestamp:
- Sep 8, 2011 4:34:35 PM (13 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:
- 10675c3
- Parents:
- f7ef313
- Location:
- sansguiframe/src/sans/guiframe/local_perspectives/plotting
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
sansguiframe/src/sans/guiframe/local_perspectives/plotting/Plotter1D.py
r5637362 r36288ca 73 73 self._color_labels = self.get_color_label() 74 74 self.currColorIndex = "" 75 self._is_changed_legend_label = False 75 76 76 77 self.hide_menu = None … … 234 235 ylo, yhi = self.subplot.get_ylim() 235 236 old_data = self.plots[data.id] 236 data.label = old_data.label 237 if self._is_changed_legend_label: 238 data.label = old_data.label 237 239 data.custom_color = old_data.custom_color 238 240 # Replace data … … 508 510 helpString += (' ' + plot.label +';') 509 511 self.parent._window_menu.SetHelpString(pos, helpString) 512 self._is_changed_legend_label = True 510 513 #break 511 514 dial.Destroy() -
sansguiframe/src/sans/guiframe/local_perspectives/plotting/Plotter2D.py
r5637362 r36288ca 215 215 self.graph.xaxis(data._xaxis, data._xunit) 216 216 self.graph.yaxis(data._yaxis, data._yunit) 217 218 data.label = self.title_label217 if self._is_changed_legend_label: 218 data.label = self.title_label 219 219 220 220 if data.label == None: … … 438 438 fontproperties=self.title_font, 439 439 color=self.title_color) 440 self._is_changed_legend_label = True 440 441 self.subplot.figure.canvas.draw_idle() 441 442 except:
Note: See TracChangeset
for help on using the changeset viewer.