need some advice on x y plot

Larry Bates larry.bates at websafe.com
Thu Oct 20 12:29:34 EDT 2005


I would try to live with time scale being fixed 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>

Maybe this will be of some help and I'm sure there are other ways.

-Larry

nephish at xit.net wrote:
> Hey there,
> i have tried about every graphing package for python i can get to work
> on my system. gnuplot, pychart, biggles, gdchart, etc.. (cant get
> matplot to work)
> so far, they all are working ok. I need to make an x y chart for some
> data that comes in from sensors at different times durring the day. i
> need it to show the value in the y and the time in the x .  no problem
> so far. But what i cannot get to happen is to scale x (time of the
> plot) with respect to time. in other words, i get a chart with the
> times evenly spaced out along the x axis, with their respective values.
> i need the chart to show gaps when there are gaps in the data. i need
> it to be able to scale by time. if i have 3 values that come in within
> a few minutes, i need them to be displayed close together, as compared
> to another value that may come in, say, an hour later. Does this make
> sence ?
> one of you guys know a charting app that will do this ? or is there
> some other way i could do it?
> 
> looking for suggestions,
> sk
> 



More information about the Python-list mailing list