Skip to content

Commit bdfca0b

Browse files
committed
It is counter-clockwise [ci skip]
1 parent 93d1b45 commit bdfca0b

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

docs/imviz/plugins.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ Simple Image Rotation
107107

108108
This plugins rotates image(s) by the given angle.
109109
You can select viewer but that option only shows when applicable.
110-
You can enter the desired rotation angle in degrees clockwise.
110+
You can enter the desired rotation angle in degrees counter-clockwise.
111111
Click on the :guilabel:`ROTATE` button to finalize.
112112

113113
.. _line-profile-xy:

jdaviz/configs/imviz/plugins/rotate_image/rotate_image.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class RotateImageSimple(TemplateMixin, ViewerSelectMixin):
1313

1414
def __init__(self, *args, **kwargs):
1515
super().__init__(*args, **kwargs)
16-
self._theta = 0 # degrees, clockwise
16+
self._theta = 0 # degrees, counter-clockwise
1717

1818
def vue_rotate_image(self, *args, **kwargs):
1919
# We only grab the value here to avoid constantly updating as
@@ -25,8 +25,8 @@ def vue_rotate_image(self, *args, **kwargs):
2525

2626
viewer = self.app._viewer_by_id(self.viewer_selected)
2727

28-
# TODO: Is this really clockwise? Does it take negative angle?
29-
# Rotate selected viewer canvas. This changes zoom too.
28+
# Rotate selected viewer canvas.
29+
# TODO: This changes zoom too? astrofrog will fix translation issue?
3030
affine_transform = Affine2D().rotate_deg(self._theta)
3131
viewer.state.affine_matrix = affine_transform
3232

jdaviz/configs/imviz/plugins/rotate_image/rotate_image.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
v-model="angle"
1818
type="number"
1919
label="Angle"
20-
hint="Rotation angle in degrees clockwise"
20+
hint="Rotation angle in degrees counter-clockwise"
2121
></v-text-field>
2222
</v-col>
2323
</v-row>

0 commit comments

Comments
 (0)