'smooth frequency' makes the data monotonic, but x-values which are not
in the data file are not taken into account.
how should gnuplot know which x-intervals you prefer?
just add a dataline for each date you want to show up in the plot
with a y-value of 0 into the datafile.
jm...@ho... wrote:
>
> Hello,
>
> I read a data file
> http://old.nabble.com/file/p31176123/power.dat power.dat
>
> I would like to see the summorization of the values in the last column per
> day.
> via:
> set term png enhanced size 1280,1024
> set title "Power Measurement per day"
> set xlabel "Date"
> set ylabel "kWh"
> set autoscale
> set xdata time
> set xtics rotate
> set timefmt "%d/%m/%Y "
> set format x "%d/%m"
> set terminal png
> set output "kWh_per_day.png"
> plot "power.dat" using 1:7 axis x1y1 title 'kWhpp' smooth frequency with
> fsteps
>
> I get:
> http://old.nabble.com/file/p31176123/kWh_per_day.png kWh_per_day.png
>
> So I expected a value for 11/2/2011, 0 for 12/2/2011, 0 for 13/2/2011, 0
> for 14/2/2011 , a value for 15/2/2011, a value for 16/2/2011
>
> But in the graph i see values for days who have no data record.
>
> Please advice,
> Jeroen.
>
--
View this message in context: http://old.nabble.com/summorizing-data-per-day-not-working-tp31176123p31176290.html
Sent from the Gnuplot - User mailing list archive at Nabble.com.
|