Re: newbie graph question
- To: mathgroup at smc.vnet.net
- Subject: [mg39807] Re: newbie graph question
- From: Bill Rowe <listuser at earthlink.net>
- Date: Fri, 7 Mar 2003 03:42:29 -0500 (EST)
- Sender: owner-wri-mathgroup at wolfram.com
On 3/6/03 at 2:36 AM, stewart at rentec.com (Stewart Mandell) wrote: >Is it possible to have horizontal tick axes labels "really" rotated 90 >degrees. i.e. "Hello" rotated 90 degrees counter-clockwise about its >right-center anchor point. Yes, it is possible. One way to do this would be to use the Text primitive to specify the tick lables That primitive has the form Text["string",{x,y},{dx,dy},{mx.my}] string is the label you want displayed {x,y} are the x,y coordinates of the anchor point (graphics coordinates) {dx,dy} are offsets in text coordinates {mx,my} are the direction vector So Text["string",{.5,.5},{0,0},{0,1}] would cause the label "string" to be displayed with the center at graphics coordinates {.5,.5} with the s at the bottom and the g at the top. Note, this is somewhat broke on Mathematica 4.2.1 running on MacOS X. With Mac OS X, the string direction is rotated as expected but the individual characters are not rotated as they should be. The only work around I have heard of for this issue on Mac OS X is using the Hershey fonts which essentially plot the characters in any orientation specified. Using the Hershey fonts to achieve the desired effect is considerably more complicated that using the built in Text primitive.