I’m exporting brain plots for figures following this tutorial and I’m running into a resolution problem. The screenshot-based export produces raster images, so when I assemble the final figure in a vector format (e.g. PDF) the brain plots come out blurry.
My figure creation pipeline is : (1) run analyses & save figure as .pdf with python (2) arrange figures in Inkscape or Illustrator (3) export final figures as .pdf.
Until step 2, the brain plots are fine but they become blurry after the final export. I tried the same logic with Powerpoint and got the same result.
What do you use to get high-quality, publication-ready brain renderings? Ideally something that either exports vector graphics or lets me render at a much higher resolution.
AFAIK you cannot export a brain plot as a vector image, but you should be able to bump the resolution of the rasterized PNG. Can you try setting the size argument in stc.plot() to something higher like (2400, 1200)? In addition, if you want a transparent background, you can then try to take the screenshot with brain.screenshot(mode="rgba"). I haven’t tried any of this, so let me know how it goes.