Debian Codegraph @

texmf-dist/doc/latex/bardiag/example/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 \barspergroup{2}
29 \mybar{Jelger}{721}{\onecol}
30 \mysubbar{}{500}{\twocol}
31 \mybar{Johan}{412}{\onecol}
32 \mysubbar{}{500}{\twocol}
33 \mybar{Rikkert}{810}{\onecol}
34 \mysubbar{}{500}{\twocol}
35 \mybar{Henk}{310}{\onecol}
36 \mysubbar{}{500}{\twocol}
37 \mybar{New Guy}{0}{\onecol}
38 \mysubbar{}{542}{\twocol}
39 \drawlevellines
40 % Legend
41 %\diagLegendoptions{yellow}{yellow}{0.0pt}
42 %
43 \diagLegendbegin{10}{890}{3.5}
44 \renewcommand{\legendShadow}{1} % by default there is no
45 % shadow in 2D diagram
46 \diagLegenditem{19.12.2002}{\onecol}
47 \diagLegenditem{06.05.2003}{\twocol}
48 \diagLegendend
49 \bardiagramend{\large Cluster Users}{\large Jobs Submitted}