Skip to content

Commit

Permalink
Invert y axis in vertical mode
Browse files Browse the repository at this point in the history
  • Loading branch information
gselzer committed Nov 15, 2024
1 parent 71edf3c commit d5b4b6a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ndv/histogram/views/_vispy.py
Original file line number Diff line number Diff line change
Expand Up @@ -513,6 +513,8 @@ def set_vertical(self, vertical: bool) -> None:
self._vertical = vertical
self._update_histogram()
self.plot.lock_axis("x" if vertical else "y")
# When vertical, smaller values should appear at the top of the canvas
self.plot.camera.flip = [False, vertical, False]
self._update_lut_lines()
self._resize()

Expand Down

0 comments on commit d5b4b6a

Please sign in to comment.