Skip to content

Commit

Permalink
feat: update range of opacity
Browse files Browse the repository at this point in the history
  • Loading branch information
iamMoid committed Jan 21, 2022
1 parent b3f96e5 commit 61fa9dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/magmaviz/scatterplot.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ def scatterplot(df, x, y, c="", t="", o=0.5, s=50, xtitle="", ytitle="", ctitle=
), "The column specified for 'color' does not exist in the dataframe."

# check if opacity value is in the range 0.1 to 1.0
if o <= 0.1 or o > 1.0:
if o < 0.1 or o > 1.0:
raise TypeError("Opacity value must be in the range [0.1, 1.0]")

# check if size value is in the range 1 to 100
Expand Down

0 comments on commit 61fa9dd

Please sign in to comment.