Changeset 5345 for trunk/GSASIIplot.py


Ignore:
Timestamp:
Oct 7, 2022 9:41:26 AM (14 months ago)
Author:
vondreele
Message:

Add 2D PCA plot option to cluster analysis display

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIplot.py

    r5344 r5345  
    1164011640        Plot.set_xlabel('Data no.',fontsize=12)
    1164111641        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)
    1164211652    elif CLuDict['plots'] == '3D PCA':
    1164311653        if CLuDict['codes'] is not None:
Note: See TracChangeset for help on using the changeset viewer.