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'