Debian Codegraph @

texmf-dist/doc/latex/bardiag/example/src/9.tex

raw
1 %this is the way to redefine styles
2 % \newpsstyle{mytickstyle}{linewidth=1pt,linecolor=blue}
3
4 \renewcommand{\betweenticks}{200}
5 \bardiagrambegin{9.5}{1000}{2cm}{1}{2}{1cm}{0.01cm}
6 \drawlevellines
7 \renewcommand{\placenumber}{\overtop}
8 \newpsstyle{fillukr}{linestyle=solid,hatchsep=4pt,fillstyle=vlines*}
9 \newpsstyle{fillrus}{linestyle=solid,hatchsep=8pt,fillstyle=crosshatch*}
10 \newpsstyle{filloth}{linestyle=solid,hatchsep=8pt,fillstyle=hlines*}
11 \baritem[style=fillukr]{Kiev}{421}{gray}
12 \baritem[style=fillukr]{Odessa}{712}{lightgray}
13 \baritem[style=fillrus]{Moscow}{510}{gray}
14 \baritem[style=fillrus]{Bryansk}{310}{lightgray}
15 \baritem[style=filloth]{New-York}{542}{lightgray}
16 %
17 % we can call
18 % \diagLegendoptions{yellow}{red}{0.5pt}
19 % to produce a legend with yellow background with red frame
20 % with linewidth=0.5pt
21 %
22 \diagLegendbegin{5.6}{980}{4.5}
23 \diagLegenditem{during 6 months}{gray}
24 \diagLegenditem{during a year}{lightgray}
25 \diagLegenditem[style=fillukr]{Ukrainian cities}{white}
26 \diagLegenditem[style=fillrus]{Russian cities}{white}
27 \diagLegenditem[style=filloth]{other cities}{white}
28 \diagLegendend
29 \bardiagramend{}{\large Stars Fallen}