summaryrefslogtreecommitdiff
path: root/info/examples/lgc2/5-4-2.ltx
blob: 192f7c3f5502da28be61cc15b3a740127db5cb3b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
%% 
%%  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}