0todd0000 / spm1d

One-Dimensional Statistical Parametric Mapping in Python
GNU General Public License v3.0
61 stars 21 forks source link

Plot Individual Spmi P Values on Graph #127

Closed SHughes93 closed 3 years ago

SHughes93 commented 4 years ago

http://spm1d.org/doc/API/plot.html

spm1d.plot.plot_spmi_p_values(spmi, ax=None, size=8, offsets=None, offset_all_clusters=None, autoset_ylim=True)

This code provides the ability to plot all P values next to all clusters on the graph. Is it possible to plot only specific P values next to specific clusters instead of all?

m-a-robinson commented 4 years ago

Hello, I don't think this is possible using the default plotting function you describe unless there is a way to specify the specific cluster of interest from the spmi object I don't know of. You can of course not use this function and manually add the desired p-values yourself using the text or annotate commands should you wish. Regards Mark

SHughes93 commented 4 years ago

Good point about adding the desired p-values manually. I may have to go this route and hopefully can replicate the automatic P-values on the adjacent subplots so it doesn't look out of place.