help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

time plots using plot not gplot


From: David Larom
Subject: time plots using plot not gplot
Date: Thu, 28 Oct 1999 22:15:07 -0700

Hi,
Using gplot I can generate a plot from a file containing time data:

gset xdata time
gset format x "%m%d%H"
gset timefmt "%m %d %H %M %S"
gplot "jnk" using 1:6 title "get" with lines 1;

Here's what the datafile looks like:

load jnk
jnk
jnk =

   10   12    1    7   37    1    1    0    0    0
   10   12    1   27   39    6    6    0    0    0
   10   12    1   45   22   11   11    0    0    0
   10   12    2    8   53   18   18    0    0    0
   10   12    2   31   50   29   21    0    0    5
   10   12    3   34    6   66   50    0    5    5
   10   12    3   52   57  104   72    0   10   10
   10   12    4   10   53  115   83    0   10   10
   10   12    4   26   53  119   87    0   10   10
   10   12    4   43   23  130   98    0   10   10
   10   12    5    2   24  135  103    0   10   10
   10   12    5   27   54  142  110    0   10   10
   10   12    5   47    8  153  121    0   10   10
   10   12    6   12   46  160  128    0   10   10
   10   12    6   31   38  165  133    0   10   10
   10   12    6   57    4  172  140    0   10   10
   10   12    7   15   56  177  145    0   10   10
   10   12    7   41   20  184  152    0   10   10
   10   12    8    0    9  189  157    0   10   10
   10   12    8   25   39  196  164    0   10   10

mon=jnk(:,1);
day=jnk(:,2);
hr=jnk(:,3);
mn=jnk(:,4);
sec=jnk(:,5);
get=jnk(:,6);

My question is: Can I get a nice mon/day/hr/min/sec time plot using plot instead of gplot? If I want to use plot on the defined variables (mon,day...get) instead of using gplot to reference the file "jnk", how do I do it?

plot(??????) to get same result as gplot above? using mon,day,...get?

Ultimately I want to diff get and plot it as a f'n of mon/day/hr/min/sec.

Thanks,
Dave Larom




reply via email to

[Prev in Thread] Current Thread [Next in Thread]