holoviz / holoviz/hvplot

Docs for hvplot error bars yerr1

Open
#421 0 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

```
yerr1 : string, optional
Field name to draw symmetric / negative errors from
```

Maybe better to say
```
yerr1 : string, optional
Field name to draw symmetric / negative errors from (but the values should be positive)
```
(and the holoviews error bar page too seems unclear http://holoviews.org/reference/elements/matplotlib/ErrorBars.html)

This will yield an incorrect plot:
```
tst = pd.DataFrame({'x': [0, 1, 2], 'y': [0, 0, 0], 'yerr1': [-1, -2, -3], 'yerr2': [1, 1, 1]})
tst.hvplot.errorbars('x', 'y', 'yerr1', 'yerr2')
```
![image](https://user-images.githubusercontent.com/15331990/75618506-e6fd2c00-5b34-11ea-96de-debc2754a07a.png)

This is correct
```
import pandas as pd
import hvplot.pandas
tst = pd.DataFrame({'x': [0, 1, 2], 'y': [0, 0, 0], 'yerr1': [1, 2, 3], 'yerr2': [1, 1, 1]})
tst.hvplot.errorbars('x', 'y', 'yerr1', 'yerr2')
```
![image](https://user-images.githubusercontent.com/15331990/75618509-f54b4800-5b34-11ea-95b1-b87601f8b231.png)

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.