Skip to content

Commit

Permalink
Fix plotting values in datashade plot
Browse files Browse the repository at this point in the history
  • Loading branch information
lmcinnes committed Sep 5, 2019
1 parent d724e30 commit 70a5c99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion umap/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ def _datashade_points(
unique_values = np.unique(values)
if unique_values.shape[0] >= 256:
min_val, max_val = np.min(values), np.max(values)
bin_size = (max_val - min_val) / 256.0
bin_size = (max_val - min_val) / 255.0
data["val_cat"] = pd.Categorical(
np.round((values - min_val) / bin_size).astype(np.int16)
)
Expand Down

0 comments on commit 70a5c99

Please sign in to comment.