Changeset 5346


Ignore:
Timestamp:
Oct 9, 2022 9:08:07 AM (6 months ago)
Author:
vondreele
Message:

change cluster analysis plots so 2D PCA plot is shown in the 4 panel plot - faster & usually sufficient

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIplot.py

    r5345 r5346  
    1166411664        gs = mpl.gridspec.GridSpec(2,2,figure=Page.figure)
    1166511665        ax1 = Page.figure.add_subplot(gs[0,0])
    11666         ax2 = Page.figure.add_subplot(gs[1,1],projection='3d')
     11666        ax2 = Page.figure.add_subplot(gs[1,1])
    1166711667        ax3 = Page.figure.add_subplot(gs[0,1])
    1166811668        ax4 = Page.figure.add_subplot(gs[1,0])
     
    1167611676        if CLuDict['codes'] is not None:
    1167711677            for ixyz,xyz in enumerate(XYZ.T):
    11678                 ax2.scatter(xyz[0],xyz[1],xyz[2],color=Colors[CLuDict['codes'][ixyz]],picker=True)
     11678                ax2.scatter(xyz[0],xyz[1],color=Colors[CLuDict['codes'][ixyz]],picker=True)
    1167911679        else:
    1168011680            for ixyz,xyz in enumerate(XYZ.T):
    11681                 ax2.scatter(xyz[0],xyz[1],xyz[2],color=Colors[0],picker=True)
     11681                ax2.scatter(xyz[0],xyz[1],color=Colors[0],picker=True)
    1168211682        ax2.set_xlabel('PCA axis-1',fontsize=12)
    1168311683        ax2.set_ylabel('PCA axis-2',fontsize=12)
    11684         ax2.set_zlabel('PCA axis-3',fontsize=12)
    1168511684        ax4.plot(neighD)
    1168611685        ax4.set_xlabel('Data no.',fontsize=12)
Note: See TracChangeset for help on using the changeset viewer.