X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 15 Apr 2015 06:58 PM by  anon
2-vertex polyline drawn on image function graphic cannot be translated or rotated
 1 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:81
New Member


--
15 Apr 2015 06:58 PM
    Problem: After drawing a 2-vertex polyline into the data space (/data) of a image graphic: img = image( dist(400,400) ) p2 =polyline([100,300], [100,300], '-r2', /data, target=img) I'm unable to translate or rotate the polyline without changing its shape or slope. That is, I'm only able to individually move around the ends of the polyline relative to the image graphic.

    Deleted User



    New Member


    Posts:81
    New Member


    --
    15 Apr 2015 07:00 PM
    Workaround: The problem is that a 2-vertex polyline graphic is missing the translate and rotate manipulator handles that you would normally get with a polyline that has 3 or more vertices. With this in mind, a possible workaround to the problem is to add a 3rd vertex that duplicates the 2nd vertex to your polyline. For example: img = image( dist(400,400) ) p2 =polyline([100,300], [200,300], '-r2', /data, target=img) p3 =polyline([100,300,300], [100,200,200], '-b2', /data, target=img) Then when you select the resulting blue line, the rectangular manipulator frame will appear, giving you the ability to move the line without altering the shape or slope. You can also rotate the line without changing its shape. (FYI, bug report "IDL-69358" has been filed for this issue for IDL 8.4.1.)
    You are not authorized to post a reply.