-
Notifications
You must be signed in to change notification settings - Fork 96
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
proplot having issues with xarray
objects
#22
Comments
This is related to the "auto-formatting" feature; for some reason I forgot to account for 1d DataArrays. This patch (9a3d14e) seems to fix it. |
That fixed that issue, thanks @lukelbd . Although a new one I noticed as well (still related to A = np.random.rand(100,)
A = xr.DataArray(A, dims='time')
A.name = 'SST'
f, ax = plot.subplots(width='12cm', aspect=4)
ax.plot(A) Adding |
Yep that's right, it's intended behavior in case the DataArray does not have e.g. You can disable autoformatting behavior by (1) obviously passing |
...and now I understand the issue with not being able to reset the title specifically. This commit (c7cd02b) repairs this. |
Currently, when plotting values from an
xarray.DataArray
,proplot
throws an error. Note that this didn't used to be an issue.The following works (note
A.values
has to be called, butA.time.values
does not. So this is only an issue with the actual data being plotted and not coordinates)This does not work:
The text was updated successfully, but these errors were encountered: