[pstricks] \uput rotating entire picture
Alan Ristow
ristow at ece.gatech.edu
Fri May 2 05:55:40 CEST 2008
Hi all,
Lately I have been finding that if I use \uput to rotate text several
times in succession that eventually the entire picture rotates instead
of the text contained in the \uput command. I haven't been able to work
out *exactly* what conditions cause it, but it *seems* that it requires
pst-pdf, pstricks-add, and six or more uses of \uput with a rotation
parameter specified. In the minimal example below, I get what I expect
when I use five or fewer \uputs, but when I add a sixth the result is
rotated 90 degrees clockwise from what I expect.
I use MiKTeX 2.7 with the following sequence of commands to produce the
*-pics.pdf file:
latex file.tex
dvips -o file-pics.ps file.dvi
ps2pdf file-pics.ps file-pics.pdf
Any ideas?
Alan
\documentclass{article}
\usepackage{pstricks}
\usepackage{pst-pdf}
\usepackage{pstricks-add}
\begin{document}
\begin{figure}
\centering
\footnotesize
\psset{xAxisLabel=\relax,yAxisLabel=\relax}%
\psset{llx=-3.9em,lly=-6.1ex,urx=0.5em,ury=4.8em}%
\begin{postscript}
\begin{psgraph}(0,0)(25,3){1.5in}{1.5in}%
\psline[linestyle=dotted](13.2,0)(13.2,3.1)%
\uput[90]{90}(13.2,3.1){\footnotesize Atlanta}%
\psline[linestyle=dotted](5.1,0)(5.1,3.1)%
\uput[90]{90}(5.1,3.1){\footnotesize Detroit}%
\psline[linestyle=dotted](16,0)(16,3.1)%
\uput[90]{90}(16,3.1){\footnotesize Houston}%
\psline[linestyle=dotted](20.5,0)(20.5,3.1)%
\uput[90]{90}(20.5,3.1){\footnotesize Las Vegas}%
\psline[linestyle=dotted](9,0)(9,3.1)%
\uput[90]{90}(9,3.1){\footnotesize San Francisco}%
\psline[linestyle=dotted](24.9,0)(24.9,3.1)%
\uput[90]{90}(24.9,3.1){\footnotesize Phoenix}%
\end{psgraph}
\end{postscript}
\end{figure}
\end{document}
More information about the PSTricks
mailing list