Skip to content

Commit

Permalink
Merge pull request #60 from cyrraz/add_text_hotfix
Browse files Browse the repository at this point in the history
logic error on add_text
  • Loading branch information
0ctagon authored Oct 24, 2023
2 parents c730822 + 85e37b6 commit 2807eb0
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 2807eb0

Please sign in to comment.