[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: ePix: rotated text labels?
On Tue, 18 Mar 2003, Kostas Pagiamtzis wrote:
> ...
> need except that I can't figure out how to rotate text labels. Is this
> possible?
>
Dear Kostas,
You can put pstricks code into a label command, which provides text
rotated by quarter-turns, as in:
label(P(0,0), P(-4,0), "\\rotateleft{Vertical axis}", l);
^ ^
Notes: (1) (2)
(1) Shift label left 4 points
(2) (Lowercase ell) Put label to the left of (0,0)
You must \usepackage{pstcol} in LaTeX to compile the resulting figure.
(The "elaps" script uses pstcol automatically.)
The upper right sample at
http://mathcs.holycross.edu/~ahwang/software/images/index.html
illustrates the result.
Probably there are robust ways of rotating text by an arbitrary amount,
though I don't know offhand how to; pstricks allows text to be typeset
along a path, but ePiX and pstricks don't use the same coordinate system
so specifying a "path" in a way meaningful to pstricks is likely to be
inconvenient. ePiX is undergoing a substantial redesign, and features like
rotated text will be easier in the fairly near future.
Hope that's helpful.
Best regards,
Andy
P.S. It's funny you should ask this: it occurred to me only two days ago
that rotating labels is possible. :)
Andrew D. Hwang ahwang at mathcs dot holycross dot edu
Department of Math and CS http://mathcs.holycross.edu/~ahwang
College of the Holy Cross (508) 793-2458 (Office: 320 Swords)
Worcester, MA, 01610-2395 (508) 793-3530 (fax)