You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Oo, those warnings definitely aren't nice to have, and yes, the example could definitely look a bit nicer, I got carried away with the different positioning methods at #373
calling colorbar with very few arguments, using the default location and default size
From memory, I don't think there's a default position and/or box (unlike legend which does). Will probably need to wrap in a few more long aliases to fig.colorbar to make this easier.
the easiest way (using J) to plot colorbars outside the basemap.
From memory, I don't think there's a default position and/or box (unlike legend which does). Will probably need to wrap in a few more long aliases to fig.colorbar to make this easier.
However, I still don't like this one, because usually, what we do is calling makecpt to create a "current" cpt, plot some thing, and then calling colorbar without using cmap.
From memory, I don't think there's a default position and/or box (unlike legend which does). Will probably need to wrap in a few more long aliases to fig.colorbar to make this easier.
However, I still don't like this one, because usually, what we do is calling makecpt to create a "current" cpt, plot some thing, and then calling colorbar without using cmap.
Ah ok, then we should definitely show that this default position/style exists. I've opened a PR at #596, feel free to experiment on that branch or offer suggestions.
Activity
weiji14 commentedon Sep 10, 2020
Oo, those warnings definitely aren't nice to have, and yes, the example could definitely look a bit nicer, I got carried away with the different positioning methods at #373
From memory, I don't think there's a default position and/or box (unlike
legendwhich does). Will probably need to wrap in a few more long aliases tofig.colorbarto make this easier.Yes, this would be good to show.
Maybe we could reproduce (a subset) of the colorbars plotted at https://docs.generic-mapping-tools.org/latest/cookbook/cpts.html?
seisman commentedon Sep 10, 2020
There are defaults. Try this example:
However, I still don't like this one, because usually, what we do is calling
makecptto create a "current" cpt, plot some thing, and then callingcolorbarwithout usingcmap.weiji14 commentedon Sep 10, 2020
Ah ok, then we should definitely show that this default position/style exists. I've opened a PR at #596, feel free to experiment on that branch or offer suggestions.