summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/pstricks-examples-en/15-02-13.ltx
blob: 87c6909b4317f0cbb8844bd9d2bde9bb32c3c208 (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
57
58
59
60
61
62
63
%% 
%%  A DANTE-Edition example
%% 
%%  Example 15-02-13 on page 202.
%% 
%%  Copyright (C) 2011 Herbert Voss
%% 
%%  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.
%% 
%% 
%% ==== 
% Show page(s) 1
%% 
\documentclass[]{article}
\pagestyle{empty}
\setlength\textwidth{201.70511pt}
\setlength\parindent{0pt}
\def\barData{
0 0.03
1 0.11
2 0.28
3 0.84
4 6.70
5 8.55
6 8.77
7 11.09
8 7.18
9 6.20
10 5.78
11 4.19
12 2.37
13 2.26
14 1.68
15 1.03
16 1.37
17 1.34
18 0.92
19 0.67
20 0.87
21 1.20
22 1.98
23 3.99
24 5.08
25 5.17
26 5.78
27 4.44
28 0.11
}

\usepackage{pst-plot}

\begin{document}
\psset{xunit=.4cm,yunit=.3cm}
\begin{pspicture}(-2.25,-1.25)(29,12)
 \psaxes[axesstyle=axes,Ox=1466,Oy=0,Dx=4,Dy=2,ylabelFactor={\,\%}]{-}(29,12)
 \listplot[shadow=true,linecolor=blue,plotstyle=bar,barwidth=0.3cm,
           fillcolor=red,fillstyle=solid]{\barData}  \rput{90}(-3,6.25){amount}
\end{pspicture}
\end{document}