Skip to content

Commit

Permalink
update alpha
Browse files Browse the repository at this point in the history
  • Loading branch information
erdogant committed Apr 21, 2023
1 parent 8485480 commit a101bfd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scatterd/scatterd.py
Original file line number Diff line number Diff line change
Expand Up @@ -393,6 +393,7 @@ def set_size(X, s):


def set_alpha(X, alpha):
if alpha is None: alpha=0.8
if isinstance(alpha, (int, float)): alpha = np.repeat(alpha, X.shape[0])
# Minimum size should be 0 (dots will not be showed)
alpha = np.maximum(alpha, 0)
Expand Down

0 comments on commit a101bfd

Please sign in to comment.