-
Notifications
You must be signed in to change notification settings - Fork 100
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compability with DataArray.plot() #314
Comments
BTW, |
The orientation issue was very simple -- looks like matplotlib/xarray manually manually select an appropriate "side" if the The extend issue was very subtle. Here's the rundown (mainly for future me):
I've fixed this by permitting overwriting those "hidden" parameters by passing arguments to Here's an example (before this fix, there were no triangle extensions). Note there's a caveat: because xarray internally strips import xarray as xr
import proplot as pplt
airtemps = xr.tutorial.open_dataset('air_temperature')
air = airtemps.air - 273.15
air2d = air.isel(time=500)
fig, axs = pplt.subplots()
air2d.plot(ax=axs, extend='both', cbar_kwargs=dict(orientation='horizontal', label='Temperature ($^{\circ}$C)')) |
Description
The colorbar location can be changed in
DataArray.plot()
.Steps to reproduce
Error:
If I set the loc in
.plot()
:It doesn't work.
Expected behavior: [What you expected to happen]
Control the colorbar using
orientation
or 'loc'Equivalent steps in matplotlib
Proplot version
Paste the results of
import matplotlib; print(matplotlib.__version__); import proplot; print(proplot.version)
here.The text was updated successfully, but these errors were encountered: