[pstricks] Rotating a graph drawn in PSTricks

Swami Pallasena swami at math.mun.ca
Fri Oct 26 15:34:11 CEST 2007


Here is a minimal example.  (I have commented out the
command \psrotatedown{  and the ending curly bracket
so you can see the original figure.)  Using the \psrotatedown
does not rotate, but shifts the figure a bit down the page,

%%%%%%%%%%%%%%%%%%%%%%%minimal example%%%%%%%%%%%%%%
\documentclass{article}
\usepackage{pstricks,pst-plot}

\setlength{\textwidth}{8.5in} \setlength{\oddsidemargin}{.2in}
\pagestyle{empty}
\begin{document}
%\psrotatedown{%
\begin{pspicture}(-8,-8)(10,10)

\newpsobject{showgrid}{psgrid}{subgriddiv=1,griddots=10,gridlabels=4pt}
\showgrid

\pspolygon[doubleline=true,doublesep=1pt,doublecolor=cyan,linecolor=red](-7.6,-5.6)(7.6,-5)
(7.6,5.6)(-7.6,5.4) \rput(-2,-4.8){Third}

\pspolygon[doubleline=true,doublesep=1pt,doublecolor=yellow,linecolor=blue](-3.6,-3.8)(4.4,-3.6)
(4.2,3.8)(-3.6,3.8) \rput(-2,3.3){Second}

\pspolygon*[linecolor=yellow,bordercolor=red](4.8,-4.6)(6.8,-4.2)
(6.6,-3.2)(4.6,-3.6)

\pspolygon[doubleline=true,doublecolor=cyan,linecolor=red](4.8,-4.6)(6.8,-4.2)
(6.6,-3.2)(4.6,-3.6)


\rput{30}(5.6,-3.8){\small\textbf{\sl inclined}}
\rput{30}(5.8,-4){\small\textbf{\sl type}}
\psline(3.8,-3.6)(4,-4.4)(4.8,-4.3)
\pspolygon(3.4,-4.4)(4,-4.3)(3.9,-4)(3.35,-4.1)



\rput{90}(8.9,1){\quad WEST } \rput(8.3,1){ $\Longrightarrow$}

\pspolygon*[linecolor=white](-8,-1)(-8,0.6)(-7.2,0.6)(-7.2,-1)
\pspolygon[linecolor=red](-8,-1)(-8,0.6)(-7.2,0.6)(-7.2,-1)
\rput{-90}(-7.4,-0.25){East} \rput{-90}(-7.8,-0.25){Tower}
\pspolygon[linecolor=red](7.4,-1)(7.8,-1)(7.8,0)(7.4,0)
\pspolygon*[linecolor=white](7.5,-1)(7.8,-1)(7.8,0)(7.5,0)
\rput{90}(7.6,-0.5){West} \rput{90}(7.9,-0.5){Tower}

\end{pspicture}%
%}
\end{document}






More information about the PSTricks mailing list