pydiodon.plot_components_scatter¶
- pydiodon.plot_components_scatter(Y, axis_1=1, axis_2=2, dot_size=20, color='red', cmap=None, names=[], title=None, x11=True, plotdir=None, plotfile=None, fmt='png')[source]¶
Scatter plot of the result of a Principal Component Analysis
- Parameters
- Ya \(n \times k\) 2D numpy array,
the matrix of columnwise principal components
- axis_1an integer, the first axis
axis are labelled from 1 to k
- axis_2an integer, the second axis
second axis is labelled from axis_1 + 1 to k
- dot_sizean integer
the size of dots in the plot, one dot per item
- colora string
color of doats in the plot
- namesa list of n strings
labels of dots in ythe plot
- titlestring
title of the plot
- x11boolean
the plot is displayed on the scvreen if x11=True
- plotdirstring
relative directory where to save the plot
- plotfilestring
name of the file to save the plot
the plot is not saved if plotfile=None
- fmtstring
format of the file to save the plot.
accepted values are png, eps, pdf.
- Returns
- a scatter plot
Notes
None
af, 21/02/2018, revised 22.10.14, 23.01.13