Uploaded image for project: 'Data Management'
  1. Data Management
  2. DM-3468

drawing text to ds9 fails if size or the font family is set

    Details

    • Type: Story
    • Status: Done
    • Resolution: Done
    • Fix Version/s: None
    • Component/s: afw
    • Labels:
      None

      Description

      Commands like

      ds9.dot('xxxx', 100, 100, size=3)
      ds9.dot('xxxx', 100, 120, fontFamily="times")
      

      silently fail. The problem is that commands like

      xpaset -p ds9 regions command '{text 100 100 # text=xxxx color=red font="times 12"}'
      

      fail; you need to say font=times 12 normal

        Attachments

          Activity

          Hide
          rhl Robert Lupton added a comment -

          Simple workaround for a ds9 bug

          git diff --stat master
           python/lsst/afw/display/ds9Regions.py |  5 +++--
           tests/testDs9.py                      | 14 ++++++++++++++
           2 files changed, 17 insertions(+), 2 deletions(-)
          

          Show
          rhl Robert Lupton added a comment - Simple workaround for a ds9 bug git diff --stat master python/lsst/afw/display/ds9Regions.py | 5 +++-- tests/testDs9.py | 14 ++++++++++++++ 2 files changed, 17 insertions(+), 2 deletions(-)
          Hide
          price Paul Price added a comment -

          Fine, thanks.

          Show
          price Paul Price added a comment - Fine, thanks.
          Hide
          rhl Robert Lupton added a comment -

          Merged to master

          Show
          rhl Robert Lupton added a comment - Merged to master

            People

            • Assignee:
              rhl Robert Lupton
              Reporter:
              rhl Robert Lupton
              Reviewers:
              Paul Price
              Watchers:
              Paul Price, Robert Lupton
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Summary Panel