Skip to content

Commit

Permalink
logic error on add_text
Browse files Browse the repository at this point in the history
  • Loading branch information
0ctagon committed Oct 23, 2023
1 parent c730822 commit 85e37b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plothist/plothist_style.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,14 +248,14 @@ def add_text(
x = 0.0
elif x=="right":
x = 1.0
elif type(x)!=float or type(x)!=int:
elif type(x)!=float and type(x)!=int:
raise ValueError(f"x should be a float or 'left'/'right' ({x} given))")

if y=="top":
y = 1.01
elif y=="bottom":
y = 0.0
elif type(y)!=float or type(y)!=int:
elif type(y)!=float and type(y)!=int:
raise ValueError(f"y should be a float or 'top'/'bottom' ({y} given)")

t = ax.text(
Expand Down

0 comments on commit 85e37b6

Please sign in to comment.