[Thread Prev][Thread Next][Index]

vertical alignment of labels



Hello,

For a future version of Ferret, I'd like to put in a request for a
"vertical alignment" option for the LABEL command, with options (-1,0,1)
as for horizontal alignment.

I looked at the FAQ and found an unanswered question regarding this:

http://ferret.wrc.noaa.gov/Ferret/Mail_Archives/fu_99/tmp/msg00316.html

Although it's possible to calculate an appropriate vertical shift using
the dimensions of the plot and the viewport, this is tricky.  The shift
depends not only on the label size and angle, but also on the relation
between the plot coordinates and the physical (page) coordinates.

Have any of you All-Star Ferreteers come up with a kludge to do this?  
Suppose one wanted to put a label inside a little box, which is rotated at
some angle.  What's the general solution to this problem?  (With a
vertical aligment option it would be easy.)

Thank you!

Andrew

----------------------------------------------------------------------
Andrew Wittenberg          Program in Atmospheric and Oceanic Sciences
andyw@splash.princeton.edu                        Princeton University
----------------------------------------------------------------------



[Thread Prev][Thread Next][Index]

Dept of Commerce / NOAA / OAR / PMEL / TMAP

Contact Us | Privacy Policy | Disclaimer | Accessibility Statement