1.)
see
http://www.gnuplot.info/docs/node131.html
plot '-', '-'
2
4
6
e
10
12
14
e
2.)
see if setting the xtics increment to 3 h (in seconds) works:
set xtics 3*60*60
FastCatch wrote:
>
> Hi, there
>
> I need to create a chart with gnuplot -- it's for a datetime-avg-max data
> series from a device. I can do it pretty well except for two issues:
>
> 1. The data is available via the stdin as the output of a php script. My
> charting needs two plots (one for the avg and one for the max values). If
> I plot against '-' twice gnuplot wants me to input the sequence twice and
> I'm not sure how to do it with a piped input (where does the first one
> end?). Question: is there a way to use the same stdin sequence twice just
> the same way as normal data files?
>
> Alternatives I see:
> I have come up with an approximately OK result using boxerrorlines which
> only requires one go but I'd only use it as a fallback option if there's
> no sensible solution to the issue above.
> Another option is to put the data into a (temp) file but I'd prefer to
> avoid it.
>
> 2. The data stream is for the last X hours (minutes, whatever); let's say
> the last 24 hours. I'd like to set xtics at every three hours (e.g.
> "21:00, "0:00", "3:00", "6:00", etc.) -- but as I'm not sure what time the
> first (earliest) entry contains I just cannot set it up. What is the
> right way to do it?
>
> Thanks in advance.
>
--
View this message in context: http://www.nabble.com/reading-stdin-twice---fix-xtics-to-nonfix-time-tp24110262p24113083.html
Sent from the Gnuplot - User mailing list archive at Nabble.com.
|