home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 737190620

This data as json

html_url issue_url id node_id user created_at updated_at author_association body reactions performed_via_github_app issue
https://github.com/pydata/xarray/issues/4641#issuecomment-737190620 https://api.github.com/repos/pydata/xarray/issues/4641 737190620 MDEyOklzc3VlQ29tbWVudDczNzE5MDYyMA== 42246615 2020-12-02T12:09:48Z 2020-12-02T12:09:48Z NONE

As my original plot still was wrong after updating I investigated a bit further: The problem persists when also faceting. Here is my new example where, again, data of category "A" get colored as "B" and vice versa. ```python import xarray as xr import numpy as np

u = np.random.rand(50, 2, 2) * np.array([1, 2]) v = np.random.rand(50, 2) * np.array([1, 0.5])

ds = xr.Dataset( { "u": (("x", "foo", "category"), u), "v": (("x", "category"), v), }, coords={"category": ["B", "A"], "foo": [1, 2]} )

g = ds.plot.scatter( y="u", x="v", hue="category", col="foo" ); ``` I am sorry for the confusion.

Output of `xr.show_versions()` INSTALLED VERSIONS ------------------ commit: None python: 3.7.8 | packaged by conda-forge | (default, Nov 27 2020, 19:24:58) [GCC 9.3.0] python-bits: 64 OS: Linux OS-release: 4.15.0-122-generic machine: x86_64 processor: x86_64 byteorder: little LC_ALL: None LANG: en_US.UTF-8 LOCALE: en_US.UTF-8 libhdf5: 1.10.6 libnetcdf: 4.7.4 xarray: 0.16.2 pandas: 1.1.2 numpy: 1.17.5 scipy: 1.5.3 netCDF4: 1.5.4 pydap: None h5netcdf: None h5py: 2.10.0 Nio: None zarr: 2.4.0 cftime: 1.3.0 nc_time_axis: None PseudoNetCDF: None rasterio: None cfgrib: None iris: None bottleneck: None dask: 2.26.0 distributed: 2.30.1 matplotlib: 3.3.2 cartopy: None seaborn: 0.11.0 numbagg: None pint: None setuptools: 49.6.0.post20201009 pip: 20.3 conda: 4.8.3 pytest: 6.0.1 IPython: 7.19.0 sphinx: None
{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  755105132
Powered by Datasette · Queries took 0.471ms · About: xarray-datasette