hvplot icon indicating copy to clipboard operation
hvplot copied to clipboard

`cmap` option ignored in a line plot

Open maximlt opened this issue 3 years ago • 0 comments

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

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

maximlt avatar Oct 27 '22 18:10 maximlt