diff options
Diffstat (limited to 'support/fastpictex/doc/manual/bargraph.ltx')
-rw-r--r-- | support/fastpictex/doc/manual/bargraph.ltx | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/support/fastpictex/doc/manual/bargraph.ltx b/support/fastpictex/doc/manual/bargraph.ltx new file mode 100644 index 0000000000..80adc6a620 --- /dev/null +++ b/support/fastpictex/doc/manual/bargraph.ltx @@ -0,0 +1,48 @@ +% ...... start of pictex file generated by FastPicTeX ...... +\beginpicture +% ...... macros for errorbars ...... +\newcommand{\putxerrorbar}[3]{% +\dimen0=\Xdistance{#1} \dimen1=\Ydistance{#2} \dimen2=\Xdistance{#3} +\unitlength=1pt \setdimensionmode +\dimen3=\dimen0 \advance \dimen3 by -\dimen2 +\dimen4=\dimen0 \advance \dimen4 by \dimen2 +\dimen5=\dimen1 \advance \dimen5 by -1mm +\dimen6=\dimen1 \advance \dimen6 by 1mm +\putrule from {\dimen3} {\dimen1} to {\dimen4} {\dimen1} +\putrule from {\dimen3} {\dimen5} to {\dimen3} {\dimen6} +\putrule from {\dimen4} {\dimen5} to {\dimen4} {\dimen6} +\setcoordinatemode } +\newcommand{\putyerrorbar}[3]{% +\dimen0=\Xdistance{#1} \dimen1=\Ydistance{#2} \dimen2=\Ydistance{#3} +\unitlength=1pt \setdimensionmode +\dimen3=\dimen1 \advance \dimen3 by -\dimen2 +\dimen4=\dimen1 \advance \dimen4 by \dimen2 +\dimen5=\dimen0 \advance \dimen5 by -1mm +\dimen6=\dimen0 \advance \dimen6 by 1mm +\putrule from {\dimen0} {\dimen3} to {\dimen0} {\dimen4} +\putrule from {\dimen5} {\dimen3} to {\dimen6} {\dimen3} +\putrule from {\dimen5} {\dimen4} to {\dimen6} {\dimen4} +\setcoordinatemode } +\setcoordinatesystem units <1.2cm,0.3cm> point at 0 0 +\setplotarea x from 0 to 5, y from 10 to 30 +% .......... axis ............ +\axis bottom label {} ticks numbered from 0 to 5 by 1 / +\axis left label {} ticks numbered from 10 to 30 by 5 / +% .......... heading ............ +\plotheading {} +% .......... series ............. +\shaderectanglesoff +\putrectangle corners at 0.6 10 and 1.4 13 +\putrectangle corners at 1.6 10 and 2.4 14 +\putrectangle corners at 2.6 10 and 3.4 18 +\putrectangle corners at 3.6 10 and 4.4 24 +\putyerrorbar{1}{13}{1.5} +\put {} [b] <0mm,0.5\baselineskip> at 1 14.5 +\putyerrorbar{2}{14}{1.9} +\put {} [b] <0mm,0.5\baselineskip> at 2 15.9 +\putyerrorbar{3}{18}{2.4} +\put {} [b] <0mm,0.5\baselineskip> at 3 20.4 +\putyerrorbar{4}{24}{5.2} +\put {*} [b] <0mm,0.5\baselineskip> at 4 29.2 +\endpicture +% ...... end of pictex file generated by FastPicTeX ...... |