Skip to content

Editing colormap label after plotting a 2D dataset #9895

Answered by scottyhq
paniash asked this question in Q&A
Discussion options

You must be logged in to vote

@paniash there are various ways to do this, for example as shown in the docs here https://docs.xarray.dev/en/stable/user-guide/plotting.html#other-features

y.plot(cbar_kwargs={"label": "my custom label"},

If you looked other places in the docs and expected to find this information, it'd be helpful to know.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by scottyhq
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants