Skip to content

Commit

Permalink
fix key error in hideAxis
Browse files Browse the repository at this point in the history
  • Loading branch information
mhuebert committed Nov 13, 2024
1 parent c4ad4b9 commit 71958e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/genstudio/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -603,7 +603,7 @@ def grid(x=None, y=None):

def hideAxis(x=None, y=None):
"""Sets `{"axis": None}` for specified axes."""
if not x and not y:
if x is None and y is None:
return {"axis": None}
return {k: {"axis": None} for k in ["x", "y"] if locals()[k]}

Expand Down

0 comments on commit 71958e7

Please sign in to comment.