Changeset 5345
- Timestamp:
- Oct 7, 2022 9:41:26 AM (12 months ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIplot.py
r5344 r5345 11640 11640 Plot.set_xlabel('Data no.',fontsize=12) 11641 11641 Plot.set_ylabel('dist to next',fontsize=12) 11642 elif CLuDict['plots'] == '2D PCA': 11643 if CLuDict['codes'] is not None: 11644 for ixyz,xyz in enumerate(XYZ.T): 11645 Plot.scatter(xyz[0],xyz[1],color=Colors[CLuDict['codes'][ixyz]],picker=True) 11646 else: 11647 for ixyz,xyz in enumerate(XYZ.T): 11648 Plot.scatter(xyz[0],xyz[1],color=Colors[0],picker=True) 11649 Plot.set_title('PCA display for %s distance method'%PlotName) 11650 Plot.set_xlabel('PCA axis-1',fontsize=12) 11651 Plot.set_ylabel('PCA axis-2',fontsize=12) 11642 11652 elif CLuDict['plots'] == '3D PCA': 11643 11653 if CLuDict['codes'] is not None: -
trunk/GSASIIseqGUI.py
r5344 r5345 1956 1956 def OnCompute(event): 1957 1957 if ClusData['OutMethod'] == 'One-Class SVM': 1958 ClusData['codes'] = SKVM.OneClassSVM().fit_predict(ClusData['DataMatrix']) 1958 ClusData['codes'] = SKVM.OneClassSVM().fit_predict(ClusData['DataMatrix']) #codes = 1 or -1 1959 1959 elif ClusData['OutMethod'] == 'Isolation Forest': 1960 1960 ClusData['codes'] = SKE.IsolationForest().fit_predict(ClusData['DataMatrix']) 1961 1961 elif ClusData['OutMethod'] == 'Local Outlier Factor': 1962 1962 ClusData['codes'] = SKN.LocalOutlierFactor().fit_predict(ClusData['DataMatrix']) 1963 ClusData['codes'] = np.where(ClusData['codes']>0,1,5) #red(in) or black(out) 1963 1964 wx.CallAfter(UpdateClusterAnalysis,G2frame,ClusData,shoNum) 1964 1965 … … 2047 2048 plotSizer.Add(wx.StaticText(G2frame.dataWindow,label='Plot selection: '),0,WACV) 2048 2049 if ClusData['CLuZ'] is None: 2049 choice = ['All','Distances','3D PCA',' Diffs']2050 choice = ['All','Distances','3D PCA','2D PCA','Diffs'] 2050 2051 else: 2051 choice = ['All','Distances','Dendrogram',' 3D PCA','Diffs']2052 choice = ['All','Distances','Dendrogram','2D PCA','3D PCA','Diffs'] 2052 2053 plotsel = wx.ComboBox(G2frame.dataWindow,choices=choice,style=wx.CB_READONLY|wx.CB_DROPDOWN) 2053 2054 plotsel.SetValue(str(ClusData['plots']))
Note: See TracChangeset
for help on using the changeset viewer.