Issue combining multiple stat images

Summary of what happened:

I’m trying to plot multiple datasets into one plot_stat_map output, but when I try using the figure command, I get an error that says “TypeError: int() argument must be a string, a bytes-like object or a real number, not ‘OrthoSlicer’”.

It’s odd this isn’t working, because elsewhere I am successfully able to combine a plot_surf and a plot_surf_contours into one image.

Command used (and if a helper script was used, a link to the helper script or the command generated):

figure = plotting.plot_stat_map(nib.Nifti2Image(parc_file_plotf, parc_file_plot.affine), 
                       cmap = 'cyan_copper')
plotting.plot_stat_map(nib.Nifti2Image(parc_file_plotf2, parc_file_plot.affine), 
                       display_mode = 'mosaic',cmap = 'cold_hot', draw_cross = False,
                      figure = figure)

Relevant log outputs (up to 20 lines):

TypeError: int() argument must be a string, a bytes-like object or a real number, not 'OrthoSlicer'

Screenshots / relevant information:


Would add_contours do the trick for you ?
E.g.

Let me know if this does not address your problem.
Best,
Bertrand

This is exactly the sort of thing I was looking for, and it seems to work well - thanks so much!