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
Plot example broken in 0.6.1 #647
Comments
@fmaussion Can you post the contents of
and everything looks good locally. |
Yes sorry: import xray
import numpy as np
import matplotlib.pyplot as plt
import cartopy.crs as ccrs
nlat = 15
nlon = 5
arr = np.random.randn(nlat, nlon)
arr[0, 0] = np.nan
atlantic = xray.DataArray(arr,
coords = (np.linspace(50, 20, nlat), np.linspace(-60, -20, nlon)),
dims = ('latitude', 'longitude'))
ax = plt.axes(projection=ccrs.Orthographic(-50, 30))
atlantic.plot(ax=ax, origin='upper', aspect='equal',
transform=ccrs.PlateCarree())
ax.set_global()
ax.coastlines() I just tested it on master and I have the same problem... |
Some changes have been made to the plot functions. This one works for me:
The latest version of the docs has a better plot that actually uses real data: http://xray.readthedocs.org/en/latest/plotting.html#maps |
Thanks. I've just tested it with my data which needed the two keywords |
@fmaussion would you mind putting together a quick PR to fix the code in the docs? That way I don't screw up by mis-transcribing it :). |
Be aware too that the |
But the docs on master are good? @shoyer or did you mean something about old vs new behavior? |
No, the last successful build from |
Oops, I was confused. The docs on master do seem to fixed! Unfortunately RTD has been broken for the last month or so which has complicated making a new release. |
I guess I can close this issue? |
Yes, thanks. |
The plotting-with-cartopy example from the docs: http://xray.readthedocs.org/en/stable/plotting.html
is broken with the last conda install (xray 0.6.1, linux, python 3.4, mpl 1.4.3). It used to work fine in 0.6.0:
The text was updated successfully, but these errors were encountered: