Selecting specific xyz coordinates with nilearn's plot stat map "mosaic" display mode and reducing white space

I enjoy using nilearn’s plotting.plot_stat_map with display_mode="mosaic" set; however, I’d like to select specific xyz coordinates and reduce the amount of white space between slices. I couldn’t find anything on the documentation page that seems to do these two things, so I was wondering whether or not this is possible? My current code is:

nilearn.plotting.plot_stat_map(z_stats_img,
                               display_mode="mosaic",
                               draw_cross=False,
                               annotate=True, 
                               colorbar=True,
                               cmap="autumn",
                               cut_coords = (8,8,8),
                               threshold=3,
                               title="threshold z-stats,
                               output_file=output_file
                               )

This is set here:

But I do not see any simple way to get control on these parameters.
Bertrand

1 Like