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

Rescale discrete levels for how='eq_hist' #1055

Merged
merged 7 commits into from
Apr 5, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Revert to default of rescale_discrete_levels=True
  • Loading branch information
ianthomas23 committed Apr 5, 2022
commit fa9cb776643c3194489c91431d675509d32d297f
2 changes: 1 addition & 1 deletion datashader/transfer_functions/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,7 @@ def _apply_discrete_colorkey(agg, color_key, alpha, name, color_baseline):

def shade(agg, cmap=["lightblue", "darkblue"], color_key=Sets1to3,
how='eq_hist', alpha=255, min_alpha=40, span=None, name=None,
color_baseline=None, rescale_discrete_levels=True):
color_baseline=None, rescale_discrete_levels=False):
"""Convert a DataArray to an image by choosing an RGBA pixel color for each value.

Requires a DataArray with a single data dimension, here called the
Expand Down