holoviz / holoviz/hvplot

HLine and VLine with groupby parameter

Open
#728 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
Python
Stars
1.4k
Forks
124
Avg merge
1d 18h
Merged PRs (30d)
1

Description

#### Is your feature request related to a problem? Please describe.
Let's say I have this `xarray` Dataset:
```python
import xarray as xr
import holoviews as hv

t = np.linspace(0,1,20)
r = np.linspace(0,1,20)
temp = np.array([np.exp(-time*r) for time in t])
data = xr.Dataset()
data["t"] = t
data["r"] = r
data["temp"] = (["r", "t"], temp)

data
```
I can easily visualize the field `temp` change over time using
```python
plot = data.temp.hvplot(groupby="t")
plot
```
![image](https://user-images.githubusercontent.com/59559612/161578286-edb54744-25a5-4a3c-9edc-c3bc3790e0f8.png)

Next, I would like to visualize the radius where the field goes below a temp_threshold:
```python
r_threshold = data.r.isel(r=(data.temp

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.