[SciPy-user] Time series graph

Travis Vaught travis@enthought....
Fri Oct 17 11:35:03 CDT 2008


On Oct 15, 2008, at 3:04 PM, Pierre GM wrote:

> Cenek,
> Try the scikits.timeseries package
> (http://pytseries.sourceforge.net/installing.html).
> One of its module (sciktis.timeseries.lib.plotlib) implements plotting
> capacities on top of matplotlib, and supports an update of ticks  
> depending on
> the zoom level.
>
>
> On Wednesday 15 October 2008 14:21:19 302302 wrote:
>> Hi,
>>
>> I need to plot a time series (the data in the database has around  
>> 10000
>> rows) and I need dynamically zoom and move with them. Something like
>> http://finance.google.com/finance?q=INDEXDJX:.DJI%20INDEXNASDAQ:.IXIC%20IND
>> EXSP:.INX Is there any efficient way how to do it with scipy or  
>> matplotlib?
>>
>> Thanks Cenek
>>
>> _______________________________________________
>> SciPy-user mailing list
>> SciPy-user@scipy.org
>> http://projects.scipy.org/mailman/listinfo/scipy-user
>
>
> _______________________________________________
> SciPy-user mailing list
> SciPy-user@scipy.org
> http://projects.scipy.org/mailman/listinfo/scipy-user
>

Hey Cenek,

There's a chaco example of this here:

https://svn.enthought.com/enthought/browser/Chaco/trunk/examples/financial_plot_dates.py

It gives you zoomability and very nice tick handling of dates:

-------------- next part --------------
A non-text attachment was scrubbed...
Name: pastedGraphic.png
Type: image/png
Size: 30249 bytes
Desc: not available
Url : http://projects.scipy.org/pipermail/scipy-user/attachments/20081017/1583d1dc/attachment-0002.png 
-------------- next part --------------



Zooming in quite a bit gives tick labels at the hour or minute scales  
(with reasonable scales in between):

-------------- next part --------------
A non-text attachment was scrubbed...
Name: pastedGraphic.png
Type: image/png
Size: 25954 bytes
Desc: not available
Url : http://projects.scipy.org/pipermail/scipy-user/attachments/20081017/1583d1dc/attachment-0003.png 
-------------- next part --------------



HTH,

Travis


More information about the SciPy-user mailing list