Changeset 2d88fc4 in sasview for src/sas/guiframe/local_perspectives/plotting/Plotter2D.py
- Timestamp:
- Oct 20, 2015 8:55:16 AM (9 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:
- 6f16e25
- Parents:
- 6f3fea2
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/guiframe/local_perspectives/plotting/Plotter2D.py
r098f3d2 r2d88fc4 287 287 288 288 """ 289 self._menu_ids.reset() 289 290 slicerpop = PanelMenu() 290 291 slicerpop.set_plots(self.plots) 291 292 slicerpop.set_graph(self.graph) 292 293 293 wx_id = wx.NewId()294 wx_id = self._menu_ids.next() 294 295 slicerpop.Append(wx_id, '&Save Image') 295 296 wx.EVT_MENU(self, wx_id, self.onSaveImage) 296 297 297 wx_id = wx.NewId()298 wx_id = self._menu_ids.next() 298 299 slicerpop.Append(wx_id, '&Print Image', 'Print image') 299 300 wx.EVT_MENU(self, wx_id, self.onPrint) 300 301 301 wx_id = wx.NewId()302 wx_id = self._menu_ids.next() 302 303 slicerpop.Append(wx_id, '&Copy to Clipboard', 'Copy to the clipboard') 303 304 wx.EVT_MENU(self, wx_id, self.OnCopyFigureMenu) … … 305 306 # saving data 306 307 plot = self.data2D 307 wx_id = wx.NewId()308 wx_id = self._menu_ids.next() 308 309 slicerpop.Append(wx_id, "&Data Info") 309 310 wx.EVT_MENU(self, wx_id, self._onDataShow) 310 311 311 wx_id = wx.NewId()312 wx_id = self._menu_ids.next() 312 313 slicerpop.Append(wx_id, "&Save as a File (DAT)") 313 314 self.action_ids[str(wx_id)] = plot … … 322 323 for item in item_list: 323 324 try: 324 wx_id = wx.NewId()325 wx_id = self._menu_ids.next() 325 326 slicerpop.Append(wx_id, item[0], item[1]) 326 327 wx.EVT_MENU(self, wx_id, item[2]) … … 331 332 slicerpop.AppendSeparator() 332 333 333 wx_id = wx.NewId()334 wx_id = self._menu_ids.next() 334 335 slicerpop.Append(wx_id, '&Perform Circular Average') 335 336 wx.EVT_MENU(self, wx_id, self.onCircular) \ 336 337 # For Masked Data 337 338 if not plot.mask.all(): 338 wx_id = wx.NewId()339 wx_id = self._menu_ids.next() 339 340 slicerpop.Append(wx_id, '&Masked Circular Average') 340 341 wx.EVT_MENU(self, wx_id, self.onMaskedCircular) 341 wx_id = wx.NewId()342 wx_id = self._menu_ids.next() 342 343 slicerpop.Append(wx_id, '&Sector [Q View]') 343 344 wx.EVT_MENU(self, wx_id, self.onSectorQ) 344 wx_id = wx.NewId()345 wx_id = self._menu_ids.next() 345 346 slicerpop.Append(wx_id, '&Annulus [Phi View ]') 346 347 wx.EVT_MENU(self, wx_id, self.onSectorPhi) 347 wx_id = wx.NewId()348 wx_id = self._menu_ids.next() 348 349 slicerpop.Append(wx_id, '&Box Sum') 349 350 wx.EVT_MENU(self, wx_id, self.onBoxSum) 350 wx_id = wx.NewId()351 wx_id = self._menu_ids.next() 351 352 slicerpop.Append(wx_id, '&Box Averaging in Qx') 352 353 wx.EVT_MENU(self, wx_id, self.onBoxavgX) 353 wx_id = wx.NewId()354 wx_id = self._menu_ids.next() 354 355 slicerpop.Append(wx_id, '&Box Averaging in Qy') 355 356 wx.EVT_MENU(self, wx_id, self.onBoxavgY) 356 357 if self.slicer != None: 357 wx_id = wx.NewId()358 wx_id = self._menu_ids.next() 358 359 slicerpop.Append(wx_id, '&Clear Slicer') 359 360 wx.EVT_MENU(self, wx_id, self.onClearSlicer) 360 361 if self.slicer.__class__.__name__ != "BoxSum": 361 wx_id = wx.NewId()362 wx_id = self._menu_ids.next() 362 363 slicerpop.Append(wx_id, '&Edit Slicer Parameters') 363 364 wx.EVT_MENU(self, wx_id, self._onEditSlicer) 364 365 slicerpop.AppendSeparator() 365 366 366 wx_id = wx.NewId()367 wx_id = self._menu_ids.next() 367 368 slicerpop.Append(wx_id, '&Edit Graph Label', 'Edit Graph Label') 368 369 wx.EVT_MENU(self, wx_id, self.onEditLabels) … … 371 372 # ILL mod here 372 373 373 wx_id = wx.NewId()374 wx_id = self._menu_ids.next() 374 375 slicerpop.Append(wx_id, '&Modify graph appearance', 'Modify graph appearance') 375 376 wx.EVT_MENU(self, wx_id, self.modifyGraphAppearance) 376 377 slicerpop.AppendSeparator() 377 378 378 wx_id = wx.NewId()379 wx_id = self._menu_ids.next() 379 380 slicerpop.Append(wx_id, '&2D Color Map') 380 381 wx.EVT_MENU(self, wx_id, self._onEditDetector) 381 382 slicerpop.AppendSeparator() 382 383 383 wx_id = wx.NewId()384 wx_id = self._menu_ids.next() 384 385 slicerpop.Append(wx_id, '&Toggle Linear/Log Scale') 385 386 wx.EVT_MENU(self, wx_id, self._onToggleScale) 386 387 387 388 slicerpop.AppendSeparator() 388 wx_id = wx.NewId()389 wx_id = self._menu_ids.next() 389 390 slicerpop.Append(wx_id, '&Window Title') 390 391 wx.EVT_MENU(self, wx_id, self.onChangeCaption)
Note: See TracChangeset
for help on using the changeset viewer.