issues: 340069538
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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 340069538 | MDExOlB1bGxSZXF1ZXN0MjAwNTcxMjI1 | 2277 | ENH: Scatter plots of one variable vs another | 6164157 | closed | 0 | 45 | 2018-07-11T02:31:01Z | 2019-08-08T18:05:00Z | 2019-08-08T15:57:17Z | CONTRIBUTOR | 0 | pydata/xarray/pulls/2277 |
Say you have two variables in a First, set up dataset with two variables: ```python import xarray as xr import numpy as np import matplotlib from matplotlib import pyplot as plt A = xr.DataArray(np.zeros([3, 11, 4, 4]), dims=[ 'x', 'y', 'z', 'w'],
coords=[np.arange(3), np.linspace(0,1,11), np.arange(4), 0.1np.random.randn(4)])
B = 0.1A.x2+A.y2.5+0.1A.zA.w
A = -0.1*A.x+A.y/(5+A.z)+A.w
ds = xr.Dataset({'A':A, 'B':B})
ds['w'] = ['one', 'two', 'three', 'five']
What a mess. Wouldn't it be nice if you could color each point according to the value of some coordinate, say The logic is that dimensions that are not faceted/hue are just stacked using Regarding implementation -- I am certainly not sure about the API and I probably haven't thought about edge cases with missing data or nans or whatnot, so any input would be welcome. Also, there might be a simpler implementation by first using |
{
"url": "https://api.github.com/repos/pydata/xarray/issues/2277/reactions",
"total_count": 3,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 3,
"rocket": 0,
"eyes": 0
} |
13221727 | pull |

Huh! There seems to be some underlying structure there. Can we also facet over a different coordinate?
or two coordinates?
