Changeset 8a687cfd in sasview for sansguiframe/src/sans/guiframe/local_perspectives/plotting/Plotter1D.py
- Timestamp:
- Jul 5, 2012 4:26:59 AM (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:
- 7c755888
- Parents:
- 8f59e95
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sansguiframe/src/sans/guiframe/local_perspectives/plotting/Plotter1D.py
r8f59e95 r8a687cfd 687 687 688 688 def on_graphApp_close(self,e): 689 # returns toggleGrid? toggleLegend? xlab, ylab, xunit, yunit, xfont, yfont, xcolor, ycolor, legendloc 690 691 #to do - make this passback mechanism much nicer 692 data = self.graphApp.getAppInfo() 693 self.onGridOnOff(data[0]) 694 self.onLegend(data[1]) 695 self.ChangeLegendLoc(data[10]) 696 697 self.xaxis_label = data[2] 698 self.yaxis_label = data[3] 699 self.xaxis_unit = data[4] 700 self.yaxis_unit = data[5] 701 702 self.xaxis(data[2],data[4],data[6],data[8]) 703 self.yaxis(data[3],data[5],data[7],data[9]) 704 705 xfont = data[6] 706 yfont = data[7] 707 708 # and a little sanity checking along the way 689 # gets values from graph appearance dialog and sends them off 690 # to modify the plot 691 692 self.onGridOnOff(self.graphApp.get_togglegrid()) 693 self.onLegend(self.graphApp.get_togglelegend()) 694 self.ChangeLegendLoc(self.graphApp.get_legend_loc()) 695 696 self.xaxis_label = self.graphApp.get_xlab() 697 self.yaxis_label = self.graphApp.get_ylab() 698 self.xaxis_unit = self.graphApp.get_xunit() 699 self.yaxis_unit = self.graphApp.get_yunit() 700 701 self.xaxis(self.xaxis_label,self.xaxis_unit, 702 self.graphApp.get_xfont(),self.graphApp.get_xcolor()) 703 self.yaxis(self.yaxis_label,self.yaxis_unit, 704 self.graphApp.get_yfont(),self.graphApp.get_ycolor()) 709 705 710 706 self.graphApp.Destroy()
Note: See TracChangeset
for help on using the changeset viewer.