You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fill_alpha is ignored in the datashader render path — shapes always render at full opacity #617
fill_alpha is ignored in the datashader render path — shapes always render at full opacity
Description
When render_shapes uses the datashader path (automatically triggered for >10,000 shapes), fill_alpha has no effect. Shapes always render at full opacity (alpha=255) regardless of the fill_alpha value — including fill_alpha=0.0. The matplotlib path correctly applies fill_alpha. Because the method switch from matplotlib to datashader is automatic and silent, large datasets render differently from small ones with no warning to the user.
Root cause: _ds_shade_categorical passes min_alpha=_convert_alpha_to_datashader_range(alpha) to ds.tf.shade(). min_alpha is a floor on alpha for non-empty pixels, not a scaling factor. Setting min_alpha=0 still allows datashader to render shapes at alpha=255.
This makes the datashader path consistent with the matplotlib path for all fill_alpha values. The fix is applied after datashader compositing, so it does not interfere with datashader's internal alpha handling.
Activity
Apply outline_alpha scaling on datashader path (closes #617 follow-up)