holoviz / holoviz/hvplot

`cmap` option ignored in a line plot

Open
#954 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

Extracted from https://github.com/holoviz/hvplot/issues/652 where the `cmap` option neither has the expected effect nor raises a warning/error:

```python
import holoviews as hv
import hvplot.pandas
import numpy as np
import pandas as pd

df = pd.DataFrame({
'x': list(np.arange(10)) * 6,
'y': np.concatenate([np.arange(10) + x for x in range(6)]),
'z': [l for l in range(0, 60, 10) for _ in range(10)],
})

df.hvplot.line('x', 'y', by='z', cmap='Reds')
```

image

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.