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/4322#issuecomment-734488917,https://api.github.com/repos/pydata/xarray/issues/4322,734488917,MDEyOklzc3VlQ29tbWVudDczNDQ4ODkxNw==,14808389,2020-11-26T21:51:03Z,2020-11-26T21:51:03Z,MEMBER,"if I understand correctly, this happens here: https://github.com/pydata/xarray/blob/5883a460b8fa9a72a2f12ee6495665bb7cc304f6/xarray/plot/plot.py#L295-L300
where `xlabel` and `ylabel` are extracted from `xplt` and `yplt` using `label_from_attrs`. In `_resolve_intervals_1dplot` `xlabel` and `ylabel` simply get the `_center` suffix, it is not used for anything else. Wouldn't it be possible to modify the calls of `_infer_line_data` and `_resolve_intervals_1dplot` to something like this:
```python
xplt, yplt, hueplt, hue_label = _infer_line_data(darray, x, y, hue)
# Remove pd.Intervals if contained in xplt.values and/or yplt.values.
xplt_val, yplt_val, x_suffix, y_suffix, kwargs = _resolve_intervals_1dplot(
xplt.values, yplt.values, kwargs
)
xlabel = label_from_attrs(xplt, extra=x_suffix)
ylabel = label_from_attrs(yplt, extra=y_suffix)
```
and then have `_resolve_intervals_1dplot` return either `""_center""` or `""""` as `x_suffix` and `y_suffix`.","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,675288247