Skip to content

Commit

Permalink
Merge pull request #1100 from aksharsarvesh/axisOrientation
Browse files Browse the repository at this point in the history
FIX: Switching Y Axis orientation was not properly updating
  • Loading branch information
nstelter-slac authored Aug 19, 2024
2 parents 5415c41 + a9b1668 commit 8b27429
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pydm/widgets/axis_table_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,9 @@ def set_data(self, column_name, axis, value):
axis.orientation = "left" # The PyQtGraph default is the left axis
else:
axis.orientation = str(value)
self.plot.plotItem.rebuildLayout()
if axis.isVisible():
axis.show()
elif column_name == "Y-Axis Label":
axis.label_text = str(value)
elif column_name == "Min Y Range":
Expand Down

0 comments on commit 8b27429

Please sign in to comment.