Skip to content

Commit

Permalink
actually pass alpha
Browse files Browse the repository at this point in the history
  • Loading branch information
knaaptime committed Jul 24, 2024
1 parent c88b345 commit 3f53485
Show file tree
Hide file tree
Showing 2 changed files with 1,128 additions and 1,131 deletions.
2 changes: 1 addition & 1 deletion mapclassify/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def get_color_array(
normalized_vals = norm(bins)

# generate RBGA array and convert to series
rgbas = colormaps[cmap](normalized_vals, bytes=True)
rgbas = colormaps[cmap](normalized_vals, bytes=True, alpha=alpha)
colors = pd.Series(list(rgbas), index=legit_indices).apply(np.array)

# put colors in their correct places and fill empty with designated color
Expand Down
2,257 changes: 1,127 additions & 1,130 deletions notebooks/08_manual_coloring.ipynb

Large diffs are not rendered by default.

0 comments on commit 3f53485

Please sign in to comment.