home / github / issues

Menu
  • GraphQL API
  • Search all tables

issues: 818944970

This data as json

id node_id number title user state locked assignee milestone comments created_at updated_at closed_at author_association active_lock_reason draft pull_request body reactions performed_via_github_app state_reason repo type
818944970 MDU6SXNzdWU4MTg5NDQ5NzA= 4975 scatter plot with row or col gets hue wrong 5637662 closed 0     3 2021-03-01T14:54:57Z 2023-03-13T19:47:51Z 2023-03-13T19:47:51Z CONTRIBUTOR      

What happened: The colorbar/hue is only for the last subplot, the colorbar for the other figures is ignored.

What you expected to happen: hue/colorbar is correct - the total min/max values are calculated and used instead.

Minimal Complete Verifiable Example:

```python import xarray as xr import numpy as np

ds=xr.Dataset() ds["a"]=("x","y"), np.arange(4).reshape(2,2)

ds.plot.scatter("a","a",row="x", hue="a") import matplotlib.pyplot as plt plt.show() ```

Anything else we need to know?: replacing col for row yields same wrong result

I verified this is in master (5735e163bea43ec9bc3c2e640fbf25a1d4a9d0c0) and 0.16.2

Environment:

Output of <tt>xr.show_versions()</tt> INSTALLED VERSIONS ------------------ commit: None python: 3.9.1 (default, Jan 20 2021, 00:00:00) [GCC 10.2.1 20201125 (Red Hat 10.2.1-9)] python-bits: 64 OS: Linux OS-release: 4.12.14-122.57-default 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.3 xarray: 0.16.2 pandas: 1.0.5 numpy: 1.19.4 scipy: 1.5.2 netCDF4: 1.5.3 pydap: None h5netcdf: None h5py: 3.1.0 Nio: None zarr: None cftime: 1.1.3 nc_time_axis: 1.2.0 PseudoNetCDF: None rasterio: None cfgrib: None iris: None bottleneck: 1.2.1 dask: 2021.01.1 distributed: None matplotlib: 3.3.4 cartopy: None seaborn: None numbagg: None pint: None setuptools: 49.1.3 pip: 20.2.2 conda: None pytest: None IPython: 7.18.1 sphinx: 3.2.1
{
    "url": "https://api.github.com/repos/pydata/xarray/issues/4975/reactions",
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  completed 13221727 issue

Links from other tables

  • 0 rows from issues_id in issues_labels
  • 3 rows from issue in issue_comments
Powered by Datasette · Queries took 2.375ms · About: xarray-datasette