Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to increase number of color categories? #1417

Open
ahuang11 opened this issue Sep 19, 2024 · 0 comments
Open

How to increase number of color categories? #1417

ahuang11 opened this issue Sep 19, 2024 · 0 comments

Comments

@ahuang11
Copy link
Collaborator

import hvplot.pandas
import datashader as ds
import holoviews as hv
import numpy as np

hv.extension("bokeh")

tst = pd.DataFrame({
    "lon": np.random.randn(257),
    "lat": np.random.randn(257),
    "cat": np.random.randn(257).astype(str),
})
tst.hvplot.paths("lon", "lat", datashade=True, aggregator=ds.count_cat("cat"))

Crashes with

WARNING:param.dynamic_operation: Callable raised "ValueError('Insufficient colors provided (256) for the categorical fields available (257)')".
Invoked as dynamic_operation(height=300, scale=1.0, width=700, x_range=None, y_range=None)
@ahuang11 ahuang11 added TRIAGE and removed TRIAGE labels Sep 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant