-
Notifications
You must be signed in to change notification settings - Fork 41
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
add Dataset plot accessor. #36
Comments
@dcherian Where does cf-xarray/cf_xarray/accessor.py Line 482 in 19d80cf
Are these upstream in Xarray? |
I may have changed design since this was written. I think now we just need to modify We want the following to work: import cf_xarray
import xarray as xr
ds = xr.tutorial.load_dataset("air_temperature").isel(time=slice(2))
ds.air.attrs["standard_name"] = "air_temperature"
ds.plot.scatter(x="air", y="lat") # works
ds.cf.plot.scatter(x="air_temperature", y="latitude") # doesn't work cf-xarray/cf_xarray/accessor.py Line 624 in 19d80cf
We should add the _get_standard_name mapper to the above dictionary. I think that might be all that's needed to get scatter to work.
|
I'm a little iffy on using the
|
Yes |
to wrap
_DatasetPlotMethods
.This should be easy → follow what is done with
_CFPlotMethods
The text was updated successfully, but these errors were encountered: