- Timestamp:
- Mar 9, 2021 12:43:26 PM (2 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIplot.py
r4841 r4848 362 362 sizer.Add(self.canvas,1,wx.EXPAND) 363 363 self.SetSizer(sizer) 364 365 def SetToolTipString(self,text): 366 if 'phoenix' in wx.version(): 367 self.canvas.SetToolTip(wx.ToolTip(text)) 368 else: 369 self.canvas.SetToolTipString(text) 370 364 371 365 372 class G2Plot3D(_tabPlotWin): … … 1099 1106 def PlotSngl(G2frame,newPlot=False,Data=None,hklRef=None,Title=''): 1100 1107 '''Structure factor plotting package - displays zone of reflections as rings proportional 1101 to F, F**2, etc. as requested 1108 to F, F**2, etc. as requested via matpltlib; plots are not geometrically correct 1102 1109 ''' 1103 1110 from matplotlib.patches import Circle … … 1446 1453 ##### Plot3DSngl ################################################################################ 1447 1454 def Plot3DSngl(G2frame,newPlot=False,Data=None,hklRef=None,Title=False): 1448 '''3D Structure factor plotting package - displays reflections as rings proportional1449 to F, F**2, etc. as requested as 3D array 1455 '''3D Structure factor plotting package - displays reflections as spots proportional 1456 to F, F**2, etc. as requested as 3D array via pyOpenGl 1450 1457 ''' 1451 1458 global ifBox … … 1538 1545 elif key == 'P': 1539 1546 vec = viewChoice[Data['viewKey']][0] 1547 drawingData['viewPoint'][0] += vec 1548 elif key == 'M': 1549 vec = viewChoice[Data['viewKey']][0] 1540 1550 drawingData['viewPoint'][0] -= vec 1541 elif key == 'N':1542 vec = viewChoice[Data['viewKey']][0]1543 drawingData['viewPoint'][0] += vec1544 1551 elif key == '0': 1545 1552 drawingData['viewPoint'][0] = np.array([0,0,0]) … … 1848 1855 Zclip = drawingData['Zclip']*cPos/20. 1849 1856 if Data['Zone']: 1850 Zclip = 0.0 11857 Zclip = 0.002 1851 1858 Q = drawingData['Quaternion'] 1852 1859 Tx,Ty,Tz = drawingData['viewPoint'][0][:3] … … 1858 1865 1859 1866 HKL,RC,RF,RF2 = FillHKLRC() 1860 G2frame.G2plotNB.status.SetStatusText \ 1861 ('Plot type = %s for %s; RF = %6.2f%%, RF%s = %6.2f%%'%(Data['Type'],Name,RF,super2,RF2),1) 1867 if Data['Zone']: 1868 G2frame.G2plotNB.status.SetStatusText \ 1869 ('Plot type = %s for %s; RF = %6.2f%%, RF%s = %6.2f%% layer %s'% \ 1870 (Data['Type'],Name,RF,super2,RF2,str(list(drawingData['viewPoint'][0]))),1) 1871 else: 1872 G2frame.G2plotNB.status.SetStatusText \ 1873 ('Plot type = %s for %s; RF = %6.2f%%, RF%s = %6.2f%%'%(Data['Type'],Name,RF,super2,RF2),1) 1862 1874 1863 1875 SetBackground() … … 1899 1911 Page.Choice = None 1900 1912 choice = [' save as/key:','jpeg','tiff','bmp','h: view down h','k: view down k','l: view down l', 1901 'z: zero zone toggle',' c: reset to default','o: set view point = 0,0,0','b: toggle box ','+: increase scale','-: decrease scale',1913 'z: zero zone toggle','p: increment layer','m: decrement layer','c: reset to default','o: set view point = 0,0,0','b: toggle box ','+: increase scale','-: decrease scale', 1902 1914 'f: Fobs','s: Fobs**2','u: unit','d: Fo-Fc','w: DF/sig','i: toggle intensity scaling'] 1903 1915 cb = wx.ComboBox(G2frame.G2plotNB.status,style=wx.CB_DROPDOWN|wx.CB_READONLY,choices=choice, -
trunk/GSASIIpwdGUI.py
r4847 r4848 4745 4745 Controls = G2frame.GPXtree.GetItemPyData(G2gd.GetGPXtreeItemId(G2frame,G2frame.root, 'Controls')) 4746 4746 dMin = 0.05 4747 if not isinstance(G2frame.Hide, bool): 4748 G2frame.Hide = False 4747 4749 if 'UsrReject' in Controls: 4748 4750 dMin = Controls['UsrReject'].get('MinD',0.05) … … 4853 4855 rowLabels = [] 4854 4856 if HKLF: 4855 refList = data[1]['RefList'] 4857 if G2frame.Hide: 4858 refList = np.array([refl for refl in data[1]['RefList'] if refl[3]]) 4859 else: 4860 refList = data[1]['RefList'] 4856 4861 refs = refList 4857 4862 else: … … 4955 4960 setBackgroundColors(im,itof) 4956 4961 if HKLF: 4957 refList = np.array([refl[:6+im] for refl in data[1]['RefList']]) 4962 if G2frame.Hide: 4963 refList = np.array([refl[:6+im] for refl in data[1]['RefList'] if refl[3]]) 4964 else: 4965 refList = np.array([refl[:6+im] for refl in data[1]['RefList']]) 4958 4966 else: 4959 4967 refList = np.array([refl[:6+im] for refl in data[phaseName]['RefList']]) … … 4970 4978 4971 4979 def OnToggleExt(event): 4972 print('TBD') 4980 G2frame.Hide = not G2frame.Hide 4981 UpdateReflectionGrid(G2frame,data,HKLF=True,Name=Name) 4973 4982 4974 4983 def OnPageChanged(event):
Note: See TracChangeset
for help on using the changeset viewer.