RotateCanvas#
- class jdaviz.configs.imviz.plugins.rotate_canvas.rotate_canvas.RotateCanvas(*args, **kwargs)[source]#
Bases:
PluginTemplateMixin
,ViewerSelectMixin
See the Canvas Rotation Plugin Documentation for more details.
Only the following attributes and methods are available through the public plugin API:
viewer
(ViewerSelect
): Viewer to show orientation/compass information.angle
: Angle to rotate the axes canvas, clockwise.flip_horizontal
: Whether to flip the canvas horizontally, after applying rotation.
Public constructor
Attributes Summary
Mixin to handle empty floating point field.
A boolean (True, False) trait.
A boolean (True, False) trait.
A trait for unicode strings.
A trait for unicode strings.
Methods Summary
reset
()Reset the rotation to an angle of 0 and no flip
Set the rotation angle and flip to achieve North up and East left according to the reference image WCS.
Set the rotation angle and flip to achieve North up and East right according to the reference image WCS.
vue_reset
(*args, **kwargs)vue_set_north_up_east_left
(*args, **kwargs)vue_set_north_up_east_right
(*args, **kwargs)Attributes Documentation
- angle#
Mixin to handle empty floating point field.
- flip_horizontal#
A boolean (True, False) trait.
- has_wcs#
A boolean (True, False) trait.
- icon_nuel#
A trait for unicode strings.
- icon_nuer#
A trait for unicode strings.
- ref_data#
- template_file = ('/home/docs/checkouts/readthedocs.org/user_builds/jdaviz/envs/latest/lib/python3.11/site-packages/jdaviz/configs/imviz/plugins/rotate_canvas/rotate_canvas.py', 'rotate_canvas.vue')#
- user_api#
Methods Documentation
- set_north_up_east_left()[source]#
Set the rotation angle and flip to achieve North up and East left according to the reference image WCS.