|
From: Thomas S. <t.s...@fz...> - 2011-12-19 17:02:04
|
without knowing what your data look like, one remark:
"<awk 'NR<2 {print $3}' plot1.dat" ls 1 lt rgb "#FF0000"
plots a data point, while
5000 ls 1 lt rgb "#FF0000"
plots a (constant) function.
chessat2002 wrote:
>
> hi guys!
>
> i'm currently working with histograms in gnuplot. here is a snipet of my
> plotting script:
>
> # plot histogram, captions and red line
> plot 'plot1.dat' using 3:xtic(1) ls 1 lt rgb "#0000FF",\
> '' using 2:($3+500):($3) with labels font ",8",\
> "<awk 'NR<2 {print $3}' plot1.dat" ls 1 lt rgb "#FF0000"
>
> in this script i plot the bars (1st line), captions over the bars (2nd
> line) and in the 3rd line, i would like to print a solid line at the
> height of the first bar in the plot. the awk-command extracts a singe
> number from my file. unfortunately it does not print a single line here,
> it prints a second bar at the first x position. if i replace the
> awk-command with a constant number (see the following snipet), then it
> works.
>
> # plot histogram, captions and red line
> plot 'plot1.dat' using 3:xtic(1) ls 1 lt rgb "#0000FF",\
> '' using 2:($3+500):($3) with labels font ",8",\
> 5000 ls 1 lt rgb "#FF0000"
>
>
> Thanks for your help and your time!
>
> Alex'
>
>
--
View this message in context: http://old.nabble.com/problem-with-awk-in-plot-tp33001247p33004047.html
Sent from the Gnuplot - User mailing list archive at Nabble.com.
|