diff options
Diffstat (limited to 'graphics/bardiag/doc/figs/examp6.tex')
-rw-r--r-- | graphics/bardiag/doc/figs/examp6.tex | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/graphics/bardiag/doc/figs/examp6.tex b/graphics/bardiag/doc/figs/examp6.tex new file mode 100644 index 0000000000..484b633765 --- /dev/null +++ b/graphics/bardiag/doc/figs/examp6.tex @@ -0,0 +1,76 @@ +\def\onecol{red} +\def\onetopcol{blue} +\def\twocol{red} +\def\twotopcol{blue} +\def\threecol{red} +\def\threetopcol{blue} +%------------------------------------------------------- +%This is the way to redefine styles +% \newpsstyle{mytickstyle}{linewidth=1pt,linecolor=blue} +% +% Style of the foreground frame +\newpsstyle{diagframestyle}{linewidth=1pt,linecolor=black,fillcolor=white} +% Style of the background frame +\newpsstyle{diagbgframestyle}{linewidth=1pt,linecolor=black,fillcolor=yellow} + +% Use 3D bars +\renewcommand{\ActiveBarPrimitive}{\barTDRect} +% Make frame 3D +\renewcommand{\frameTD}{1} + +% Put ticks and levellines each 10 yunits +\renewcommand{\betweenticks}{10} + +% Color of the numbers on the bar-items +\renewcommand\numbercolor{\white\bf} +% Where to put the number. Can be \bottom,\belowtop,\overtop +\renewcommand{\placenumber}{\bottom} + +\renewcommand{\tdx}{1.2} % depth of 3d +\renewcommand{\tdy}{6} + +% Start the diagram +\bardiagrambegin{14}{100}{2cm}{1}{5}{0.8cm}{0.1cm} + \baritem{1990}{32}{\onecol} + \subtopbaritem{}{40}{\onetopcol} + \subbaritem{2000}{20}{\twocol} + \subtopbaritem{}{30}{\twotopcol} + \subbaritem{2010}{13}{\threecol} + \subtopbaritem{}{50}{\threetopcol} + %--- + \baritem{1990}{21}{\onecol} + \subtopbaritem{}{60}{\onetopcol} + \subbaritem{2000}{25}{\twocol} + \subtopbaritem{}{64}{\twotopcol} + \subbaritem{2010}{58}{\threecol} + \subtopbaritem{}{32}{\threetopcol} + %--- + \baritem{1990}{22}{\onecol} + \subtopbaritem{}{19}{\onetopcol} + \subbaritem{2000}{12}{\twocol} + \subtopbaritem{}{18}{\twotopcol} + \subbaritem{2010}{9}{\threecol} + \subtopbaritem{}{12}{\threetopcol} +\drawlevellines + % Legend + % Let's make the background white + % and gray frame-line of 0.5pt + \diagLegendoptions{white}{gray}{0.5pt} + % + \renewcommand{\legendShadowColor}{darkyellow} + % + \diagLegendbegin{12}{65}{3} + \diagLegenditem{girls}{\onecol} + \diagLegenditem{boys}{\onetopcol} + \diagLegendend + % End of the legend +\setlength{\captionoffset}{2cm} +\bardiagramend{\parbox{11cm}{{\centering \large Year\\[0.3cm] + \hspace{-1cm} + \begin{tabular}{p{3.2cm}p{4.0cm}p{3.2cm}} + \centering Alpha's & \centering Beta's & \centering Gamma's + \end{tabular} + }}} + {\large Graduated (\%)} + + |