Changeset e306b96e in sasview
- Timestamp:
- May 14, 2010 6:20:00 PM (15 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:
- c1d2af4
- Parents:
- a378756
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
guiframe/local_perspectives/plotting/masking.py
r9266c66 re306b96e 453 453 454 454 ##use this method 455 #set zmax and zmin to plot: Fix it w/ data. 456 if self.plotpanel.scale == 'log': 457 zmax = math.log(max(self.data.data[self.data.data>0])) 458 if min(self.data.data) == 0: 459 zmin = 0 460 else: 461 zmin = math.log(min(self.data.data[self.data.data>0])) 462 else: 463 zmax = max(self.data.data[self.data.data>0]) 464 zmin = min(self.data.data[self.data.data>0]) 455 465 #plot 456 466 plot = self.plotpanel.image(data= temp_mask, … … 461 471 ymin= self.data.ymin, 462 472 ymax= self.data.ymax, 463 zmin= None,464 zmax= None,473 zmin= zmin, 474 zmax= zmax, 465 475 cmap= self.cmap, 466 476 color=0,symbol=0,label=self.data.name) … … 568 578 self.PopupMenu(slicerpop, pos) 569 579 570 580 class ViewerFrame(wx.Frame): 581 """ 582 Add comment 583 """ 584 def __init__(self, parent, id, title): 585 """ 586 comment 587 @param parent: parent panel/container 588 """ 589 # Initialize the Frame object 590 wx.Frame.__init__(self, parent, id, title, wx.DefaultPosition, wx.Size(950,850)) 591 592 # Panel for 1D plot 593 self.plotpanel = Maskplotpanel(self, -1, style=wx.RAISED_BORDER) 594 595 class ViewApp(wx.App): 596 def OnInit(self): 597 frame = ViewerFrame(None, -1, 'testView') 598 frame.Show(True) 599 self.SetTopWindow(frame) 600 601 return True 602 571 603 if __name__ == "__main__": 572 604 app = ViewApp(0)
Note: See TracChangeset
for help on using the changeset viewer.