Skip to content

Instantly share code, notes, and snippets.

@cvr
Created October 21, 2011 14:33
Show Gist options
  • Save cvr/1303994 to your computer and use it in GitHub Desktop.
Save cvr/1303994 to your computer and use it in GitHub Desktop.
Set a title on top of a colorbar with set_xlabel
...
## COLORBAR
cb=plt.colorbar(cf, cax=cx)
cx.set_xlabel(r"Variable Z", labelpad=10)
cx.xaxis.set_label_position('top')
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment