summaryrefslogtreecommitdiff
path: root/info/examples/lgc2/D-5-3.ltx
blob: 394e11e9f5fece39ca04bc6eea0baa6168283190 (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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
%% 
%%  The LaTeX Graphics Companion, 2ed (first printing May 2007)
%% 
%%  Example D-5-3 on page .
%% 
%%  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{ttctexaplate}
\pagestyle{empty}
\setcounter{page}{6}
\setlength\textwidth{413.44133pt}
\StartShownPreambleCommands
\usepackage[dvipsnames]{pstricks}
\usepackage{pstricks-add}
\SpecialCoor
\StopShownPreambleCommands
\begin{document}
\begin{minipage}[b]{7cm}
\psset{yunit=1.5}
\begin{pspicture*}(-.5,-3.5)(6,2.5)
    \pscustom[fillstyle=solid,fillcolor=lime,linestyle=none]{%
      \psline(3,0)(!3 dup ln)
      \psplot{3}{4.5}{x ln}
      \psline(!4.5 dup ln)(4.5,0)}
    \pscustom[fillstyle=solid,fillcolor=pink,linestyle=none]{%
      \psline(0,0)(0,-2)
      \psplot{0.01}{1}{x ln}}
    \psplot[linewidth=2pt,linecolor=blue]{0.01}{5.5}{x ln}
    \psaxes[linewidth=0.5pt]{->}(0,0)(-.5,-3)(5.5,2)
\end{pspicture*}
\end{minipage}\quad
\begin{minipage}[b]{5.5cm}
\begin{pspicture}(0,-1)(5,1)
\psaxes[labelsep=2pt,yAxis=false,
  labelsep=-10pt,ticksize=0 10mm,subticks=10,subticksize=0.75,tickcolor=blue,
  subtickcolor=magenta,tickwidth=1pt,subtickwidth=0.5pt](5.01,0)
\end{pspicture}

\psset{unit=1cm,griddots=0,subgriddiv=5}
\begin{pspicture}(5,5)
  \psgrid[subgriddiv=10,gridlabels=0,
     gridwidth=1pt,gridcolor=Orange,
     subgridwidth=0.1pt,subgridcolor=Orange]
  \psline[linewidth=2pt,linecolor=blue](0,1)(5,5)
  \psaxes{->}(1,1)(0,0)(5,5)
  \uput*[-90](4.75,1){$\mathbf{x}$}\uput*[0](1,4.75){$\mathbf{y}$}
\end{pspicture}
\end{minipage}
\end{document}