setdrawenv and textbox
kangaroo
I want to add text to a graph. So far I am using textbox for that.
The disadvantage is, that the textbox is anchored to the relative coordinates of the plot area.
Modifying the axes ranges thus does does not move the textboxes but then they
are in the wrong possition relative to the wave symbols.
I have tried using setdrawenv and drawtext in order to have my text
fixed to the waves that I am plotting, so that it stays in the same position
relativ to the wavesymbols when I am changing the axis range.
The disadvantage here is that I don't have the opaque background of a textbox
(i could certainly put a filled square behind using drawbox but that seems a little cumbersome).
the second more relevant disadvantage that I can't finetune the position by dragging the text with the mouse.
Is there a possibility to define the position of a textbox relative to the axis
(analogous to what's done with setdrawenv ycoord=left, xcoord=bottom)?
You can change a textbox into a tag using the Modify Annotation dialog (double-click the textbox) and choosing Tag from the Annotation popup menu in the top/left corner of the dialog.
To change the point to which the tag is attached, in the graph, press Option (Macintosh) or Alt (Windows) and drag the tag body to the point to which you want it attached.
January 22, 2009 at 11:37 am - Permalink
January 23, 2009 at 01:23 am - Permalink
July 25, 2012 at 04:49 am - Permalink
Simple drag changes the X and Y offset between the tag and its attachment point on the trace. The data point to which it is attached is not changed.
John Weeks
WaveMetrics, Inc.
support@wavemetrics.com
July 25, 2012 at 10:09 am - Permalink
http://imageshack.us/photo/my-images/99/bhsjdtieqyzfnozwaknnla.mp4/
In the beginning of the video I tried to "Option + mouse drag" the tag from its initial default position, but I was not able to move it at all until several attempts had been made. Is it normal?
September 17, 2012 at 06:24 pm - Permalink
--Jim Prouty
Software Engineer, WaveMetrics, Inc.
September 17, 2012 at 11:44 pm - Permalink
September 18, 2012 at 08:25 pm - Permalink