Repository navigation
Colorbar handle #827
Unanswered
TheresaChuMM
asked this question in
Q&A
Replies: 1 comment 1 reply
|
I don't think it is possible to get a handle of the colorbar currently. We could consider adding an option to return the colorbar (code), in addition to the axes, like this? Would that be a good solution? @ryan-kipawa, @daniel-caichac-DHI as matplotlib gurus, any other suggestion? |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
Is there a way to grab the handle of the colorbar of the contour plots created with MIKEIO?
The goal is to control the fontsize of the colorbar or change the labels to text.
I'm using the below line, where da is my DataArray.
cax = da.plot.contourf(ax = ax, cmap='seismic', levels=[-2, -1, -0.5, 0.5, 1, 2], label = 'Difference')
Thanks!
All reactions