[pstricks] Rotate and center a figure

Herbert Voss Herbert.Voss at alumni.TU-Berlin.DE
Mon Jul 19 14:38:41 CEST 2004


Denis Verges wrote:

> \psset{xunit=6.4cm,yunit=5.5cm}
> \begin{pspicture}(0,0)(3,1.5)
> 
> \rput{90}{    \psline[linewidth=1.5pt]{->}(0,0)(3,0)
>    \psline[linewidth=1.5pt]{->}(0,0)(0,1.5)
>    \psline[linewidth=1.5pt](0,1)(3,1)
>    \uput[d](2.9,0){$x$}
>    \uput[l](0,1.4){$y$}
>    \uput[l](0,1){$1$}
>    \uput[u](0.4,1){$\Delta$}
>    \uput[dl](0,0){O}
>    \uput[d](1,0){$1$}
>    \psplot{0}{3}{1  x 2 exp 2.71828 1 x 2 exp sub exp mul sub}
>    \uput[d](2.8,0.96){$\mathcal{C}$}}
>    \end{pspicture}
> 
> ... but the figure is on the left of the sheet. How center the figure ?
> Thanks.

it is easier with graphicx and \rotatebox.
btw: use of \psaxes makes life easier.

Herbert


\documentclass[12pt,a4paper]{article}
\usepackage{graphicx}
\usepackage{pstricks}
\usepackage{pst-plot}
\parindent=0pt
\begin{document}

\rotatebox{90}{%
\psset{xunit=6.4cm,yunit=5.5cm}
\begin{pspicture}(0,0)(3,1.5)
    \psaxes[linewidth=1.5pt]{->}(0,0)(3,1.5)
    \uput[d](2.9,0){$x$}
    \uput[l](0,1.4){$y$}
    \uput[u](0.4,1){$\Delta$}
    \psplot{0}{3}{1  x 2 exp 2.71828 1 x 2 exp sub exp mul sub}
    \uput[d](2.8,0.96){$\mathcal{C}$}
\end{pspicture}%
}
\end{document}



-- 
http://TeXnik.de/
http://PSTricks.de/
ftp://ftp.dante.de/tex-archive/info/math/voss/Voss-Mathmode.pdf
http://www.dante.de/faq/de-tex-faq/
http://www.tex.ac.uk/cgi-bin/texfaq2html?introduction=yes




More information about the PSTricks mailing list