Debian Codegraph @

texmf-dist/doc/latex/bardiag/example/src/8.tex

raw
1 \renewcommand{\tdx}{1.2} % depth of 3d
2 \renewcommand{\tdy}{6}
3
4 \def\onecol{red}
5 \def\onetopcol{blue}
6 \def\twocol{red}
7 \def\twotopcol{blue}
8 \def\threecol{red}
9 \def\threetopcol{blue}
10 %-------------------------------------------------------
11
12 %this is the way to redefine styles
13 % \newpsstyle{mytickstyle}{linewidth=1pt,linecolor=blue}
14 %
15 \newpsstyle{diagframestyle}{linewidth=1pt,linecolor=black,fillcolor=white}
16 \renewcommand{\betweenticks}{10}
17 \renewcommand\numbercolor{\white\bf}
18 \renewcommand{\placenumber}{\bottom}
19
20 \bardiagrambegin{14}{100}{3cm}{1}{5}{1cm}{0.1cm}
21 \drawlevellines
22 \baritem{1990}{32}{\onecol}
23 \subtopbaritem{}{40}{\onetopcol}
24 \subbaritem{2000}{20}{\twocol}
25 \subtopbaritem{}{30}{\twotopcol}
26 \subbaritem{2010}{13}{\threecol}
27 \subtopbaritem{}{50}{\threetopcol}
28 %---
29 \baritem{1990}{21}{\onecol}
30 \subtopbaritem{}{60}{\onetopcol}
31 \subbaritem{2000}{25}{\twocol}
32 \subtopbaritem{}{64}{\twotopcol}
33 \subbaritem{2010}{58}{\threecol}
34 \subtopbaritem{}{32}{\threetopcol}
35 %---
36 \baritem{1990}{22}{\onecol}
37 \subtopbaritem{}{19}{\onetopcol}
38 \subbaritem{2000}{12}{\twocol}
39 \subtopbaritem{}{18}{\twotopcol}
40 \subbaritem{2010}{9}{\threecol}
41 \subtopbaritem{}{12}{\threetopcol}
42 % Legend
43 %\diagLegendoptions{yellow}{yellow}{0.0pt}
44 %
45 \diagLegendbegin{11}{90}{2.5}
46 \diagLegenditem{girls}{\onecol}
47 \diagLegenditem{boys}{\onetopcol}
48 \diagLegendend
49
50 \bardiagramend{\parbox{14cm}{\vspace{-1.5cm}\hspace{-1cm}
51 \begin{tabular}{p{4.5cm}p{4.5cm}p{4.5cm}}
52 \centering Alpha's & \centering Beta's & \centering Gamma's
53 \end{tabular}
54 \\[0.6cm]
55 \centering \large Year}}
56 {\large Graduated (\%)}