Debian Codegraph @

texmf-dist/doc/latex/bardiag/src/4.tex

raw
1 \def\onecol{red}
2 \def\twocol{palegreen}
3
4 \renewcommand{\tdx}{0.5} % depth of 3d
5 \renewcommand{\tdy}{30}
6
7 \newcommand{\mybar}[3]
8 { \renewcommand\numbercolor{\white\bf}
9 \baritem{#1}{#2}{#3}
10 }
11 \newcommand{\mysubbar}[3]
12 { \renewcommand\numbercolor{\black\bf}
13 \subbaritem{#1}{#2}{#3}
14 }
15
16 %\renewcommand{\ActiveBarPrimitive}{\barTDRect}
17 %\renewcommand{\ActiveBarPrimitive}{\barCylinder}
18 %-------------------------------------------------------
19 %this is the way to redefine styles
20 % \newpsstyle{mytickstyle}{linewidth=1pt,linecolor=blue}
21 %
22 \renewcommand{\placenumber}{\belowtop}
23 \renewcommand{\betweenticks}{200}
24 %
25 \newpsstyle{diagframestyle}{linewidth=1pt,linecolor=black,fillcolor=white}
26 %
27 \bardiagrambegin{15}{1000}{3cm}{1}{3}{1cm}{0.007cm}
28 \mybar{}{721}{\onecol}
29 \mysubbar{Jelger}{500}{\twocol}
30 \mybar{}{412}{\onecol}
31 \mysubbar{Johan}{500}{\twocol}
32 \mybar{}{810}{\onecol}
33 \mysubbar{Rikkert}{500}{\twocol}
34 \mybar{}{310}{\onecol}
35 \mysubbar{Henk}{500}{\twocol}
36 \mybar{}{0}{\onecol}
37 \mysubbar{New Guy}{542}{\twocol}
38 \drawlevellines
39 % Legend
40 %\diagLegendoptions{yellow}{yellow}{0.0pt}
41 %
42 \diagLegendbegin{10}{890}{3.5}
43 \renewcommand{\legendShadow}{1} % by default there is no
44 % shadow in 2D diagram
45 \diagLegenditem{19.12.2002}{\onecol}
46 \diagLegenditem{06.05.2003}{\twocol}
47 \diagLegendend
48 \bardiagramend{\large Cluster Users}{\large Jobs Submitted}