danjgale / surfplot

A package for publication-ready brain surface figures
https://surfplot.readthedocs.io/en/latest/
Other
53 stars 14 forks source link

Issues using custom colormaps #22

Closed elvisha closed 1 year ago

elvisha commented 1 year ago

I'm having some issues visualising ROIs using custom colormaps. I've tried following this example (https://surfplot.readthedocs.io/en/latest/auto_examples/plot_tutorial_06.html) but I keep getting the following issue when I use a custom colormap - any idea what I might be doing wrong? Thanks!

Screenshot 2022-12-22 at 10 56 49
elvisha commented 1 year ago

Sorry, just found the relevant documentation to address this. Will give it a shot!

danjgale commented 1 year ago

Hey @elvisha let me know if you still run into issues! Updating surfplot to the latest version should fix this issue

elvisha commented 1 year ago

Thanks! Ended up having to update to the latest version of surfplot and downgrading to matplotlib version 3.4.2 but got it to work now!