Skip to content

Remove colorbar from pcolormesh plot #6219

Answered by andersy005
haritha1022 asked this question in Q&A
Discussion options

You must be logged in to vote

@haritha1022, thank you for the report!

i am unable to remove the color bar. i want to remove the color bar

The issue lies in this line:

z.plot.pcolormesh(cmap="turbo",vmin=7500,vmax=8500, ax = ax1,cbar=False)

The right argument name is add_colorbar instead of cbar:

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@haritha1022
Comment options

Answer selected by andersy005
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants
Converted from issue

This discussion was converted from issue #6218 on January 31, 2022 16:16.