need some advice on x y plot

Grant Edwards grante at visi.com
Thu Oct 20 13:45:17 EDT 2005


On 2005-10-20, Larry Bates <larry.bates at websafe.com> wrote:

> I would try to live with time scale being fixed

I don't understand what you mean by "the time scale being
fixed".  It's not.  If you just pass the time,value pairs to
gnuplot, it does exactly what it should.

> and insert
> None (or whatever value is used by charting package) for
> times where observations were not taken.  This will mean that
> you have to preprocess your data by determining a time step
> step value that will fit your data.  If you get 3 observations
> each 10 minutes apart then one an hour later, you will need to
> insert 5 empty observations in the list before the last
> observation.
>
> Example:
>
> 1:00 <value1>
> 1:10 <value2>
> 1:20 <value3>
> 2:20 <value4>
>
> 1:00 <value1>
> 1:10 <value2>
> 1:20 <value3>
> 1:30 <empty value>
> 1:40 <empty value>
> 1:50 <empty value>
> 2:00 <empty value>
> 2:10 <empty value>
> 2:20 <value4>

That's completely unnecessary.  Just pass a set of time,value
pairs and they'll get plotted as desired.

-- 
Grant Edwards                   grante             Yow!  As a FAD follower,
                                  at               my BEVERAGE choices are
                               visi.com            rich and fulfilling!



More information about the Python-list mailing list