%% %% The LaTeX Graphics Companion, 2ed (first printing May 2007) %% %% Example 5-4-2 on page 224. %% %% Copyright (C) 2007 Michel Goossens, Frank Mittelbach, Denis Roegel, Sebastian Rahtz, Herbert Vo\ss %% %% It may be distributed and/or modified under the conditions %% of the LaTeX Project Public License, either version 1.3 %% of this license or (at your option) any later version. %% %% See http://www.latex-project.org/lppl.txt for details. %% \documentclass{ttctexa} \pagestyle{empty} \setcounter{page}{6} \setlength\textwidth{135.83385pt} \AtBeginDocument{% \renewcommand\pshlabel[1]{\small$#1$} \renewcommand\psvlabel[1]{\small$#1$}} \StartShownPreambleCommands \usepackage{pstricks,pst-plot} \StopShownPreambleCommands \begin{document} \psset{xunit=1.5,plotpoints=200,plotstyle=dots} \begin{pspicture}(-1.1,-3.25)(1.5,2.6) \psaxes[Dx=0.5]{->}(0,0)(-1,-3.25)(1.5,2.5) \uput[-90](1.5,0){$x$} \uput[0](0,2.5){$y$} \rput[l](0.2,2){$\mathbf{f(x)=\arccos x}$} \psset{yunit=1.5,xunit=0.666667,swapaxes=true} \pstVerb{/rad {180 3.141592654 div mul} def} \psplot[linecolor=blue]{-3.141592654}{0}{x rad cos} \psplot[plotstyle=dots,plotpoints=10]% {0}{1.570796327}{x rad cos} \end{pspicture} \end{document}