Be careful when using things like imshow for heatmaps when your figsize is this small. You need to set interpolation="nearest" or some other methods, otherwise the vector version you export doesn't have a good quality heatmap.
Comments
Log in with your Bluesky account to leave a comment
We were so annoyed with `imshow` for creating density plots that we wrote a whole `densityplot` module to produce density plots conveniently (including log-scaled axes!). Our package is available on pypi (as part of the `utilitiez` package) and on GitHub: https://github.com/zwicker-group/utilitiez
Comments
You can actually make your custom color gradient like this:
https://dendwrite.substack.com/p/a-complete-ish-guide-to-making-scientific