df.hvplot.area(stacked=True, colors=[...]) gives different results for bokeh and matplotlib
- Dominant language
- Python
- Stars
- 1.4k
- Forks
- 124
- Avg merge
- 1d 18h
- Merged PRs (30d)
- 1
Description
#### ALL software version info
Software Version Info
```plaintext
hv.__version__
1.20.2
```
#### Description of expected behavior and the observed behavior
With bokeh:
With matplotlib:
#### Complete, minimal, self-contained example code that reproduces the issue
```python
import holoviews as hv
hv.extension("matplotlib")
# hv.extension("bokeh")
df = pd.DataFrame(
{
"Datetime": pd.to_datetime(
[
"2023-01-01 00:00:00",
"2023-01-01 01:00:00",
"2023-01-01 02:00:00",
"2023-01-01 03:00:00",
"2023-01-01 04:00:00",
]
),
"Value": [1, 2, 3, 4, 5],
"Value2": [5, 4, 3, 2, 1],
"Value3": [2, 3, 4, 5, 6],
"Value4": [6, 5, 4, 3, 2],
"Value5": [3, 4, 5, 6, 7],
}
)
area_plot = df.hvplot.area(
stacked=True,
alpha=0.7,
color=["pink", "pink", "pink", "#d62728", "#9467bd"],
xlabel="Datetime",
ylabel="Value",
legend=False,
)
area_plot
```
#### Stack traceback and/or browser JavaScript console output
#### Screenshots or screencasts of the bug in action
- [ ] I may be interested in making a pull request to address this
Contributor guide
Assessment
This issue has not been assessed yet.