|
From: febty f. <fe...@gm...> - 2009-12-01 06:21:11
|
this thread was the old thread. I am sorry for very lately response. I tried
your suggestion, but my problem is I wrote gnu plot command in bash, so the
mark of $ causes the error . For clearness, below is my script. I wrote my
script in bash because I must run the same script for many years.
any kind responses and suggestions are appreciated.
Thanks very much
$$$$
#!/bin/bash
for year in 2009
do
for month in (12 months from Jan to Dec)
do
for day in (from 01 to 31)
do
gnuplot <<EOF
set term postscript enhanced color
set output "$dir/graph/magnetic-raw-${year}${month}${day}.ps"
set multiplot
set size 1,0.39
set origin 0.0,0.63
#set yrange [-0.5:1.5]
#set ytics -0.5, 1, 1.5
set noxlabel
set title "${year}${month}${day}"
set label "Bx" at screen 0.80, screen 0.92
plot "input.dat" using 0:($5) with lines notitle "input.dat"
EOF
done
done
done
$$$$
2009/10/30 Thomas Sefzick <t.s...@fz...>
>
> you should read about the 'using' command in the manual
> http://www.gnuplot.info/docs/node133.html
> especially the section about the difference between
> 'using 1:2' and 'using ($1):($2)'
>
>
> febty wrote:
> >
> > sorry for my late response,
> >
> > below is my script :
> >
> > #############
> > set term postscript enhanced color
> > set output "output.ps"
> > set lmargin 10
> > set nokey
> > set ylabel "volt"
> > set ytics out
> > set xtics ("00:00" 0, "04:00" 18000, "08:00" 32400, "12:00" 46800,
> "16:00"
> > 61200, "20:00" 75600, "23:00" 86400)
> >
> > set multiplot
> > set size 1, 0.28
> > set origin 0.0,0.73
> > #set yrange [0.55:0.65]
> > #set ytics 0.55, 0.05, 0.65
> > set noxlabel
> > set title "data"
> > set label "channel 1" at screen 0.80, screen 0.94
> > set datafile missing "0"
> > plot "input.dat" using 0:1 with lines notitle "input.dat"
> >
> > set size 1,0.23
> > set origin 0.0,0.49
> > #set yrange [-0.3:0.1]
> > #set ytics -0.3, 0.2, 0.1
> > set noxlabel
> > set notitle
> > set nolabel
> > set label "channel 2" at screen 0.80, screen 0.70
> > plot "input.dat" using 0:2 with lines notitle "input.dat"
> >
> > set size 1,0.23
> > set origin 0.0,0.26
> > #set yrange [-0.05:0.05]
> > #set ytics -0.05, 0.05, 0.05
> > set noxlabel
> > set notitle
> > set nolabel
> > set label "channel 3" at screen 0.80, screen 0.47
> > plot "input.dat" using 0:3 with lines notitle "input.dat"
> >
> > set size 1,0.25
> > set origin 0.0,0.0
> > #set yrange [-0.1:0.1]
> > #set ytics -0.1, 0.1, 0.1
> > set xlabel "time (UT)"
> > set notitle
> > set nolabel
> > set label "channel 4" at screen 0.80, screen 0.23
> > plot "input.dat" using 0:4 with lines notitle "input.dat"
> > ###########
> >
> > I just want to ask, how to plot data without the plot to be interrupted
> or
> > there is a straight line representing the empty data, if my data has
> some
> > empty data for two line or more.
> >
> >
> > best regards,
> > febty
> >
> > unset multiplot
> >
> > 2009/10/24 Thomas Sefzick <t.s...@fz...>
> >
> >>
> >> maybe you should post the commands you used to plot
> >> the data.
> >> normally, two empty lines in between cause the plot to
> >> be interrupted.
> >>
> >>
> >> febty wrote:
> >> >
> >> > Dear all,
> >> >
> >> > If I have data like below
> >> >
> >> > 1 10
> >> > 3 2
> >> > 5 3
> >> >
> >> >
> >> > 7 4
> >> > 9 5
> >> >
> >> > How to plot graph so that there is no straight line which connecting
> >> > between the four and the fifth column?
> >> > I used command set datafile missing "", but there was straight line
> >> which
> >> > represent the no data column.
> >> >
> >> > any help are appreciated.
> >> >
> >> > best regards,
> >> > febty
> >> >
> >>
> >> --
> >> View this message in context:
> >>
> http://www.nabble.com/plotting-no-data-on-graph-tp26019816p26037301.html
> >> Sent from the Gnuplot - User mailing list archive at Nabble.com.
> >>
> >>
> >>
> >>
> ------------------------------------------------------------------------------
> >> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> >> is the only developer event you need to attend this year. Jumpstart your
> >> developing skills, take BlackBerry mobile applications to market and
> stay
> >> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> >> http://p.sf.net/sfu/devconference
> >> _______________________________________________
> >> Gnuplot-info mailing list
> >> Gnu...@li...
> >> https://lists.sourceforge.net/lists/listinfo/gnuplot-info
> >>
> >
> >
> >
> > --
> >
> > ******
> > febty febriani
> > Indonesian Institute of Sciences
> > Research Center for Physics
> > Kompleks PUSPIPTEK
> > Serpong, Indonesia, 15314
> >
> ------------------------------------------------------------------------------
> > Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> > is the only developer event you need to attend this year. Jumpstart your
> > developing skills, take BlackBerry mobile applications to market and stay
> > ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> > http://p.sf.net/sfu/devconference
> > _______________________________________________
> > Gnuplot-info mailing list
> > Gnu...@li...
> > https://lists.sourceforge.net/lists/listinfo/gnuplot-info
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/plotting-no-data-on-graph-tp26019816p26115210.html
> Sent from the Gnuplot - User mailing list archive at Nabble.com.
>
>
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> http://p.sf.net/sfu/devconference
> _______________________________________________
> Gnuplot-info mailing list
> Gnu...@li...
> https://lists.sourceforge.net/lists/listinfo/gnuplot-info
>
--
******
febty febriani
Indonesian Institute of Sciences
Research Center for Physics
Kompleks PUSPIPTEK
Serpong, Indonesia, 15314
|