Closed maelleF closed 2 years ago
Hi @maelleF!
You are correct, the .build()
method returns a full matplotlib figure. This is required to include colourbars (if specified) in the output. The best workaround I can think of is to save each subject's surfplot figure as an image, and then afterwards, load each image into suplots of a separate figure (i.e. using a function like plt.imread()
)
Sorry for the late answer, I also had different conversations with colleagues and we had the same conclusions to use the surfplot image. Thanks for your input !
Hi ! I wanted to create a figure with multiple subjects renders, and I understood that the result of p.build() is a figure from matplotlib, so I tried using different strategies using subfigures (https://matplotlib.org/stable/gallery/subplots_axes_and_figures/subfigures.html), but it seems that p.build() override as the main figure each time I tried. I didn't find any option in your documentation, so I wanted to know if surfplot figures are compatible with subfigures ?
Thanks in advance for your understanding