Talk About Network

Google





Graphics > Gnuplot interactive function plotter > xdata time with...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 2 Topic 3515 of 3655
Post > Topic >>

xdata time with rowstacked histogram

by "Jim Talbut" <www.spudsoft.co.uk> Sep 19, 2008 at 07:55 AM

Hi,

My data looks like this:
Time    Col1     Col2      Col3
2008-09-18 20:00        630004.266667   523101.466667   334.133333333
2008-09-18 20:01        614411.333333   487781.066667   621.866666667
2008-09-18 20:02        608720.4        512647.733333   365.333333333
2008-09-18 20:03        596120.8        497885.866667   97.8666666667
All tab delimited, with a single space separating date from time, ~240
rows 
and 11 columns of data.

What I want is a rowstacked histogram, but it seems impossible to combine 
xdata time with histograms.

I've seen other people ask the same question and get told to use boxes,
but 
boxes don't stack.
I can fudge my data to be ***ulative and then use boxes, but before I do 
that I'd like to confirm that this is a bug in gnuplot (4.2).

My script is like this (it's been through a few different attempts, this
one 
is only using one column):
set xdata time
set timefmt "%Y-%m-%d %H:%M"
set datafile separator "\t"
set style line 1 lt 0 lc rgb "#000000"
set style line 2 lt 0 lc rgb "#CCCCCC"
set ytics 1
set mytics 4
set mxtics 6
set grid xtics mxtics ytics mytics linestyle 1, linestyle 2
set ylabel "Value"
set xlabel "2008-09-18"
set style data histograms
set style histogram rowstacked
set style fill solid border -1
plot "Data.tsv" using 3 xticlabels(1) title 3 with histograms

And that generates:
plot "Data.tsv" using 3 xticlabels(1) title 3 with histograms
                                ^
"GnuplotInput.gp", line 15: Need full using spec for x time data


The other option that seems like it ought to work is:
plot "Data.tsv" using 1:3 title 3 with histograms
                                                                      ^
"GnuplotInput.gp", line 15: Too many columns in using specification

Can anyone either confirm that what I'm trying to do is impossible or tell

me how to do it?

Thanks

Jim
 




 2 Posts in Topic:
xdata time with rowstacked histogram
"Jim Talbut" &l  2008-09-19 07:55:04 
Re: xdata time with rowstacked histogram
Ethan Merritt <emerrit  2008-09-19 08:48:15 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
localhost-V2008-12-19 Wed Jan 7 23:17:13 PST 2009.