Skip to content

Commit

Permalink
hide axis when creating viewer 2D (#408)
Browse files Browse the repository at this point in the history
- edit the axes when the 2d viewer is firstly created
  • Loading branch information
DanicaSTFC authored May 17, 2024
1 parent af9efed commit 894fc7b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
## v24.0.0

New functionality:
- Add method to edit axes label text & tests, hide one label on 2D viewer #389
- Add method to edit axes label text & tests, hide one label on 2D viewer #389 #408
- Add slider widget #365 and option to not install it #386

Bugfixes:
Expand Down
2 changes: 2 additions & 0 deletions Wrappers/Python/ccpi/viewer/QCILViewerWidget.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ def __init__(self,
iren=self.iren,
debug=debug,
enableSliderWidget=enableSliderWidget)
al = self.viewer.axisLabelsText
self.viewer.setAxisLabels([al[0], al[1], ''], False)
elif viewer is viewer3D:
self.viewer = viewer(dimx=dimx,
dimy=dimy,
Expand Down

0 comments on commit 894fc7b

Please sign in to comment.