Debian Codegraph @

texmf-dist/doc/latex/bardiag/figs/exampcr.tex

raw
1 \renewcommand{\betweenticks}{100}
2 \renewcommand{\shownumbers}{0}
3
4 \definecolor{gA}{gray}{0.5}
5 \definecolor{gB}{gray}{0.7}
6 \definecolor{gC}{gray}{0.9}
7
8 \newpsstyle{diagframestyle}{linewidth=2pt,linecolor=black}
9 \newpsstyle{stA}{linestyle=solid,hatchsep=6pt,fillstyle=vlines*}
10 \newpsstyle{stB}{linestyle=solid,hatchsep=6pt,fillstyle=hlines*}
11 \newpsstyle{stC}{linestyle=solid,hatchsep=6pt,fillstyle=crosshatch*}
12
13 \bardiagrambegin{17.3}{1000}{0.5cm}{1.5}{6}{0.5cm}{0.01cm}
14 \newpsstyle{levellinestyle}{linewidth=0.5pt,linecolor=gray,linestyle=dashed}
15 \renewcommand{\barlabelangle}{0}
16
17 \barspergroup{3}
18
19 \drawlevellines
20 \baritem[style=stA]{Here}{161}{gA}
21 \subtopbaritem[style=stA]{}{250}{gB}
22 \subtopbaritem[style=stA]{}{150}{gC}
23 \subbaritem[style=stB]{}{381}{gA}
24 \subtopbaritem[style=stB]{}{200}{gB}
25 \subtopbaritem[style=stB]{}{150}{gC}
26 \subbaritem[style=stC]{}{281}{gA}
27 \subtopbaritem[style=stC]{}{200}{gB}
28 \subtopbaritem[style=stC]{}{50}{gC}
29 %
30 \baritem[style=stA]{There}{221}{gA}
31 \subtopbaritem[style=stA]{}{150}{gB}
32 \subtopbaritem[style=stA]{}{130}{gC}
33 \subbaritem[style=stB]{}{281}{gA}
34 \subtopbaritem[style=stB]{}{300}{gB}
35 \subtopbaritem[style=stB]{}{150}{gC}
36 \subbaritem[style=stC]{}{121}{gA}
37 \subtopbaritem[style=stC]{}{211}{gB}
38 \subtopbaritem[style=stC]{}{350}{gC}
39 %
40 \baritem[style=stA]{Elsewhere}{432}{gA}
41 \subtopbaritem[style=stA]{}{50}{gB}
42 \subtopbaritem[style=stA]{}{230}{gC}
43 \subbaritem[style=stB]{}{201}{gA}
44 \subtopbaritem[style=stB]{}{130}{gB}
45 \subtopbaritem[style=stB]{}{90}{gC}
46 \subbaritem[style=stC]{}{191}{gA}
47 \subtopbaritem[style=stC]{}{88}{gB}
48 \subtopbaritem[style=stC]{}{222}{gC}
49 %
50 % we can call
51 \diagLegendoptions{white}{white}{0pt}
52 % to produce a legend without a frame
53 %
54 \diagLegendbegin{0.5}{980}{3.5}
55 \diagLegenditem[style=stA]{19.12.2002}{white}
56 \diagLegenditem[style=stB]{06.05.2003}{white}
57 \diagLegenditem[style=stC]{01.02.2004}{white}
58 \diagLegendend
59 %
60 \diagLegendbegin{7}{980}{3.5}
61 \diagLegenditem{first try}{gA}
62 \diagLegenditem{second try}{gB}
63 \diagLegenditem{third try}{gC}
64 \diagLegendend
65 \bardiagramend{}{\large Number of smth}