Dear Nilearn experts,

I have been using nilearn for functional connectivity analysis and it has been a great pleasure so far.

Now I have encountered what I believe to be a bug in the view_connectome function.

When plotting a connectome with solely positive correlation the view_connectome displays some of the connections as negative correlations. In contrast when using exactly the same input for the plot_connectome function the correlations are displayed correctly. So I assume this is a bug?

plotting.plot_connectome(r_honest[4:,4:], coords[4:,:], title=‘correlations for honest trials’,edge_threshold=0, display_mode=‘lyrz’)

nilearn.plotting.view_connectome(r_honest[4:,4:], coords[4:,:], linewidth=5.0, node_size=5.0)