holoviz / holoviz/hvplot

Modify kde alpha channel on plot.

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

Description

I don't think it's possible to modify the alpha channel on kde plots. The alpha parameter only modifies the borders. It would be nice to be able to modify the alpha of the distributions.

Example code:
```
import numpy as np
import pandas as pd
import hvplot.pandas

size=400

y_target = np.random.normal(0,1.5,size)
y_predictions = np.random.normal(1,1,size)
performance = pd.DataFrame(list(zip(y_target,y_predictions)),columns=['y_target','y_predictions'])

performance.hvplot.kde(alpha=1) + performance.hvplot.kde(alpha=0.1)
```

![image](https://user-images.githubusercontent.com/31582215/113649901-22293300-9644-11eb-9754-9e6419d46720.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.