# Support textangle in ds9 text regions in Firefly

XMLWordPrintable

#### Details

• Type: Story
• Status: Done
• Resolution: Done
• Fix Version/s: None
• Component/s:
• Labels:
• Story Points:
3
• Sprint:
SUIT Sprint 2018-09
• Team:
Science User Interface

#### Description

When textangle is provided in a region description, Firefly does not draw the associated region. The afw.display.dot method allows specifying the textangle, but when this argument is provided, the region is not displayed.

Example of region text generated by afw.display.dot that does not display:

 text 1074 110 "Text" # color=yellow textangle=45.0 

The format we need to support for angle is textangle= after the hash symbol.

#### Activity

Hide
Cindy Wang [X] (Inactive) added a comment -

per DS9 documentation, 'textangle' can be set with 'text' property to specify the slanted angle of the text in degree based on current coordinate system axes.

Currently, Firefly allows  'textangle' to be provided in region description of any region type, however, only text from 'region' text is shown to be rotated with some angle in case property 'angletext' is set.

For region 'text', the coordinate in region description means the center of the text as shown in SAOImage ds9. For other region type like box, circle, etc., more clue is needed to know where the text should be placed by the region and where should be the rotation center in case 'textangle' is set. Currently Firefly puts the text in a default location by the region which is not 'region' text'.

Show
Cindy Wang [X] (Inactive) added a comment - per DS9 documentation, 'textangle' can be set with 'text' property to specify the slanted angle of the text in degree based on current coordinate system axes.  Currently, Firefly allows  'textangle' to be provided in region description of any region type, however, only text from 'region' text is shown to be rotated with some angle in case property 'angletext' is set.  For region 'text', the coordinate in region description means the center of the text as shown in SAOImage ds9. For other region type like box, circle, etc., more clue is needed to know where the text should be placed by the region and where should be the rotation center in case 'textangle' is set. Currently Firefly puts the text in a default location by the region which is not 'region' text'.
Hide
David Shupe added a comment -

Reviews have been completed on Github. I have verified that the server-side changes work as expected, including with lsst.afw.display.dot displaying text with textAngle set.

Show
David Shupe added a comment - Reviews have been completed on Github. I have verified that the server-side changes work as expected, including with lsst.afw.display.dot displaying text with textAngle set.

#### People

Assignee:
Cindy Wang [X] (Inactive)
Reporter:
David Shupe
Reviewers:
David Shupe, Trey Roby
Watchers:
Cindy Wang [X] (Inactive), David Shupe, Robert Lupton, Trey Roby, Xiuqin Wu [X] (Inactive)