Elements added to the PCA factors (EDX data)

51 views
Skip to first unread message

m.cal...@hotmail.it

unread,
Apr 27, 2018, 5:48:44 AM4/27/18
to hyperspy-users
Hi all,

I was wondering whether there is a way of plotting/exporting the results of a PCA decomposition where the individual EDX spectra contain all the X-ray lines previously specified. It's like including the function "add_elements" somewhere in the "decomposition" or "plot_decomposition_results".

Thanks

Thomas Aarholt

unread,
Apr 27, 2018, 9:28:50 AM4/27/18
to hyperspy-users
Hi there!

Very briefly, what you should do is use "factors = s.get_decomposition_factors()", to produce a spectrum image, "factors.set_signal_type('EDSTEM')" to pretend that this is an EDS spectrum image, and "factors.add_elements()" to add the elements. Then use "factors.plot(True)" to plot with the lines.

You'll lose the ability to sync the factor and loading plots, but you can get and plot the loadings alongside this with "s.get_decomposition_loadings().plot()".

If you have any trouble with this, come join the gitter chat or email back here. The former is faster :)

Best,
Thomas

--
You received this message because you are subscribed to the Google Groups "hyperspy-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hyperspy-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
Message has been deleted
0 new messages