summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/bardiag/src/4.tex
blob: b7bcfbf98831e1711e02e744d1f8616861f5bffa (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
\def\onecol{red}
\def\twocol{palegreen}

\renewcommand{\tdx}{0.5} % depth of 3d
\renewcommand{\tdy}{30}

\newcommand{\mybar}[3]
{ \renewcommand\numbercolor{\white\bf}
  \baritem{#1}{#2}{#3}
}
\newcommand{\mysubbar}[3]
{ \renewcommand\numbercolor{\black\bf}
  \subbaritem{#1}{#2}{#3}
}

%\renewcommand{\ActiveBarPrimitive}{\barTDRect}
%\renewcommand{\ActiveBarPrimitive}{\barCylinder}
%-------------------------------------------------------
%this is the way to redefine styles
% \newpsstyle{mytickstyle}{linewidth=1pt,linecolor=blue}
%
\renewcommand{\placenumber}{\belowtop}
\renewcommand{\betweenticks}{200}
%
\newpsstyle{diagframestyle}{linewidth=1pt,linecolor=black,fillcolor=white}
%
\bardiagrambegin{15}{1000}{3cm}{1}{3}{1cm}{0.007cm}
       \mybar{}{721}{\onecol}
        \mysubbar{Jelger}{500}{\twocol}
       \mybar{}{412}{\onecol}
        \mysubbar{Johan}{500}{\twocol}
       \mybar{}{810}{\onecol}
        \mysubbar{Rikkert}{500}{\twocol}
       \mybar{}{310}{\onecol}
        \mysubbar{Henk}{500}{\twocol}
       \mybar{}{0}{\onecol}
        \mysubbar{New Guy}{542}{\twocol}  
  \drawlevellines
  % Legend
  %\diagLegendoptions{yellow}{yellow}{0.0pt}
  %
  \diagLegendbegin{10}{890}{3.5}
    \renewcommand{\legendShadow}{1} % by default there is no
                                    % shadow in 2D diagram
    \diagLegenditem{19.12.2002}{\onecol}
    \diagLegenditem{06.05.2003}{\twocol}
  \diagLegendend
\bardiagramend{\large Cluster Users}{\large Jobs Submitted}