Changeset 657e52c in sasview for sansguiframe/src/sans/guiframe/local_perspectives
- Timestamp:
- Dec 14, 2012 12:50:24 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:
- 0203ade
- Parents:
- aa01d07b
- Location:
- sansguiframe/src/sans/guiframe/local_perspectives/plotting
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
sansguiframe/src/sans/guiframe/local_perspectives/plotting/Plotter1D.py
rf866fb5 r657e52c 84 84 self.currColorIndex = "" 85 85 self._is_changed_legend_label = False 86 self.is_xtick = False 87 self.is_ytick = False 86 88 87 89 self.hide_menu = None … … 684 686 find_key(self.get_loc_label(), 685 687 self.legendLoc), 686 self.xcolor,self.ycolor) 688 self.xcolor, self.ycolor, 689 self.is_xtick, self.is_ytick) 687 690 self.graphApp.Bind(wx.EVT_CLOSE, self.on_graphApp_close) 688 691 … … 706 709 self.xaxis_unit = graph_app.get_xunit() 707 710 self.yaxis_unit = graph_app.get_yunit() 711 self.xaxis_font = graph_app.get_xfont() 712 self.yaxis_font = graph_app.get_yfont() 713 self.is_xtick = graph_app.get_xtick_check() 714 self.is_ytick = graph_app.get_ytick_check() 715 if self.is_xtick: 716 self.xaxis_tick = self.xaxis_font 717 if self.is_ytick: 718 self.yaxis_tick = self.yaxis_font 708 719 709 720 self.xaxis(self.xaxis_label, self.xaxis_unit, 710 graph_app.get_xfont(), graph_app.get_xcolor()) 721 graph_app.get_xfont(), graph_app.get_xcolor(), 722 self.xaxis_tick) 711 723 self.yaxis(self.yaxis_label, self.yaxis_unit, 712 graph_app.get_yfont(), graph_app.get_ycolor()) 724 graph_app.get_yfont(), graph_app.get_ycolor(), 725 self.yaxis_tick) 713 726 714 727 graph_app.Destroy() -
sansguiframe/src/sans/guiframe/local_perspectives/plotting/Plotter2D.py
r294a7bc r657e52c 418 418 Edit legend label 419 419 """ 420 selected_plot = self.plots[self.graph.selected_plottable] 420 try: 421 selected_plot = self.plots[self.graph.selected_plottable] 422 except: 423 selected_plot = self.plots[self.data2D.id] 421 424 label = selected_plot.label 422 425 dial = TextDialog(None, -1, 'Change Label', label) … … 638 641 new_plot.id = "Circ avg " + self.data2D.name 639 642 new_plot.is_data = True 640 self.parent.update_theory(data_id=self.data2D , \643 self.parent.update_theory(data_id=self.data2D.id, \ 641 644 theory=new_plot) 642 645 wx.PostEvent(self.parent, … … 792 795 self.xaxis_font,self.yaxis_font, 793 796 find_key(self.get_loc_label(),self.legendLoc), 794 self.xcolor,self.ycolor) 797 self.xcolor,self.ycolor, 798 self.is_xtick, self.is_ytick) 795 799 self.graphApp.Bind(wx.EVT_CLOSE, self.on_graphApp_close) 796 800 … … 807 811 self.xaxis_unit = self.graphApp.get_xunit() 808 812 self.yaxis_unit = self.graphApp.get_yunit() 809 810 self.xaxis(self.xaxis_label,self.xaxis_unit, 811 self.graphApp.get_xfont(),self.graphApp.get_xcolor()) 812 self.yaxis(self.yaxis_label,self.yaxis_unit, 813 self.graphApp.get_yfont(),self.graphApp.get_ycolor()) 813 self.xaxis_font = self.graphApp.get_xfont() 814 self.yaxis_font = self.graphApp.get_yfont() 815 self.is_xtick = self.graphApp.get_xtick_check() 816 self.is_ytick = self.graphApp.get_ytick_check() 817 if self.is_xtick: 818 self.xaxis_tick = self.xaxis_font 819 if self.is_ytick: 820 self.yaxis_tick = self.yaxis_font 821 822 self.xaxis(self.xaxis_label, self.xaxis_unit, 823 self.graphApp.get_xfont(), self.graphApp.get_xcolor(), 824 self.xaxis_tick) 825 self.yaxis(self.yaxis_label, self.yaxis_unit, 826 self.graphApp.get_yfont(), self.graphApp.get_ycolor(), 827 self.yaxis_tick) 814 828 815 829 self.graphApp.Destroy() -
sansguiframe/src/sans/guiframe/local_perspectives/plotting/SectorSlicer.py
r4752c31 r657e52c 186 186 new_plot.id = "SectorQ" + self.base.data2D.name 187 187 new_plot.is_data = True 188 self.base.parent.update_theory(data_id=data , \188 self.base.parent.update_theory(data_id=data.id, \ 189 189 theory=new_plot) 190 190 wx.PostEvent(self.base.parent, NewPlotEvent(plot=new_plot, -
sansguiframe/src/sans/guiframe/local_perspectives/plotting/graphAppearance.py
r9f51c2c r657e52c 36 36 self.xfont = None 37 37 self.yfont = None 38 self.is_xtick = False 39 self.is_ytick = False 38 40 39 41 … … 172 174 fonty = SimpleFont(self, wx.NewId(), title) 173 175 fonty.set_default_font(self.xfont) 176 fonty.set_ticklabel_check(self.is_xtick) 174 177 if(fonty.ShowModal() == wx.ID_OK): 175 178 self.xfont = fonty.get_font() 179 self.is_xtick = fonty.get_ticklabel_check() 176 180 177 181 def onyFont(self, e): … … 179 183 fonty = SimpleFont(self, wx.NewId(), title) 180 184 fonty.set_default_font(self.yfont) 185 fonty.set_ticklabel_check(self.is_ytick) 181 186 if(fonty.ShowModal() == wx.ID_OK): 182 187 self.yfont = fonty.get_font() 188 self.is_ytick = fonty.get_ticklabel_check() 183 189 184 190 def on_ok(self, e): … … 233 239 def setDefaults(self,grid,legend,xlab,ylab,xunit,yunit, 234 240 xaxis_font,yaxis_font,legend_loc, 235 xcolor,ycolor ):241 xcolor,ycolor, is_xtick, is_ytick): 236 242 self.toggle_grid.SetValue(grid) 237 243 if self.legend: … … 243 249 self.xfont = xaxis_font 244 250 self.yfont = yaxis_font 251 self.is_xtick = is_xtick 252 self.is_ytick = is_ytick 245 253 246 254 if not xcolor: … … 303 311 return self.yfont 304 312 313 def get_xtick_check(self): 314 return self.is_xtick 315 316 def get_ytick_check(self): 317 return self.is_ytick 318 305 319 306 320 if __name__ == '__main__': -
sansguiframe/src/sans/guiframe/local_perspectives/plotting/masking.py
r3f68e93 r657e52c 558 558 style=wx.TRANSPARENT_WINDOW) 559 559 self.plotpanel._SetInitialSize() 560 self.plotpanel.prevXtrans = "x" 561 self.plotpanel.prevYtrans = "y" 560 562 561 563 self.cmap = DEFAULT_CMAP -
sansguiframe/src/sans/guiframe/local_perspectives/plotting/profile_dialog.py
r808da5e r657e52c 213 213 self.window_name = "Scattering Length Density Profile" 214 214 self.window_caption = self.window_name 215 self.prevXtrans = "x" 216 self.prevYtrans = "y" 217 self.viewModel = "--" 215 218 # Internal list of plottable names (because graph 216 219 # doesn't have a dictionary of handles for the plottables)
Note: See TracChangeset
for help on using the changeset viewer.