holoviz / holoviz/hvplot

`holoviews.Arrow` support

Open
#1,388 2 comments 0 reactions 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.

I was looking at adding some annotations to a plot, but I couldn't find the feature in the `hvplot` documentation about it either under `arrow` or `annotation`. I did find about [`holoviews.Arrow`](https://holoviews.org/reference/elements/matplotlib/Arrow.html) though. Using the "primitive" `holoviews.Arrow` is rather cumbersome though.

#### Describe the solution you'd like
Have additional wrappers like:
```python
da.hvplot(kind="arrow", x="x", label="a")
```
The kind could be anything like `arrow`, `annotation`, etc. The behavior could be as follow:
- if `label` is provided, interpret the DataArray value as the equivalent `y` coordinate where to place the annotation
- if `y` is provided, get the `y` coordinate from that coordinate, and if `label` is also provided as a coordinate, select that, otherwise interpret the value of the DataArray as the label to plot

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.