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

Antialiasing categorical aggregates #1079

Closed
jbednar opened this issue Apr 30, 2022 · 1 comment
Closed

Antialiasing categorical aggregates #1079

jbednar opened this issue Apr 30, 2022 · 1 comment
Labels

Comments

@jbednar
Copy link
Member

jbednar commented Apr 30, 2022

It doesn't look like antialiasing is supported for categorical aggregates:

import datashader as ds, numpy as np, holoviews as hv
from holoviews.operation.datashader import datashade, dynspread
hv.extension('bokeh')

def time_series(T = 1, N = 100, mu = 0.1, sigma = 0.1, S0 = 20):  
    """Parameterized noisy time series"""
    dt = float(T)/N
    t = np.linspace(0, T, N)
    W = np.random.standard_normal(size = N) 
    W = np.cumsum(W)*np.sqrt(dt)
    X = (mu-0.5*sigma**2)*t + sigma*W 
    S = S0*np.exp(X)
    return S

lines = {i: hv.Curve(time_series(N=10000, S0=200+np.random.rand())) for i in range(6)}
dynspread(datashade(hv.NdOverlay(lines, kdims='k'), line_width=0, aggregator=ds.by('k', ds.count())))

image

image

image

@ianthomas23
Copy link
Member

Closed by #1081 and #1083.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants