Skip to content

Commit

Permalink
fix(chart): fix axis ordering when no y axes on one side
Browse files Browse the repository at this point in the history
  • Loading branch information
slaclau committed Nov 7, 2024
1 parent 369a155 commit 22d471c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/plotly_gtk/chart.py
Original file line number Diff line number Diff line change
Expand Up @@ -644,6 +644,8 @@ def _update_positions_and_domains(self):
left = [axis] + left

for side in [left, right]:
if len(side) == 0:
continue
self.layout[side[0]]["_overlaying"] = ""
for i in range(1, len(side)):
self.layout[side[i]]["_overlaying"] = side[i - 1]
Expand Down

0 comments on commit 22d471c

Please sign in to comment.