Re: [matplotlib-devel] example data in example code

2009-08-15 Thread Jouni K . Seppänen
John Hunter writes: > Would you like to take a crack at these fixes? [...] I would be happy > to get as many fixes and patches in next week and try to get one > bugfix 0.99.1 out before scipy. I started fixing the issues. It's not complete yet, but the current state should be usable. However, th

Re: [matplotlib-devel] example data in example code

2009-08-09 Thread John Hunter
On Sun, Aug 9, 2009 at 2:01 PM, Jouni K. Seppänen wrote: > I think mirroring a directory structure is somewhat more complicated > than caching a set of arbitrary URLs in a flat cache directory. For > example, I think the remove_stale_files method will need to be changed > to walk all subdirectorie

Re: [matplotlib-devel] example data in example code

2009-08-09 Thread Jouni K . Seppänen
John Hunter writes: > * I commented out the random number appending, because I do not see > the use case, but we can re-add it when you enlighten me :-) I did that in case someone wanted to retrieve files from several different locations -- my version of the cache handler was not tied to any par

Re: [matplotlib-devel] example data in example code

2009-08-05 Thread John Hunter
On Wed, Aug 5, 2009 at 7:11 AM, John Hunter wrote: > Perhaps we could return a plain file handle pointing to the cached data? OK, I've made a few changes to the code so Jouni you will probably want to review them * I renamed the svn repo and function to be "sample_data" rather than "mpl_data" to

Re: [matplotlib-devel] example data in example code

2009-08-05 Thread Ryan May
On Wed, Aug 5, 2009 at 7:11 AM, John Hunter wrote: > >>> import matplotlib.mlab as mlab > >>> import matplotlib.cbook as cbook > >>> r = mlab.csv2rec( cbook.get_mpl_data('testdata.csv') ) > Traceback (most recent call last): > File "", line 1, in > File "/Users/jdhunter/dev/lib/python2.6/site-

Re: [matplotlib-devel] example data in example code

2009-08-05 Thread John Hunter
On Tue, Aug 4, 2009 at 2:45 PM, Jouni K. Seppänen wrote: > John Hunter writes: > >>     # TODO: how to handle stale data in the cache that has been >>     # updated from svn -- is there a clean http way to get the current >>     # revision number that will not leave us at the mercy of html >>    

Re: [matplotlib-devel] example data in example code

2009-08-05 Thread John Hunter
On Tue, Aug 4, 2009 at 2:45 PM, Jouni K. Seppänen wrote: > The mod_dav_svn server sends an ETag header that happens to contain the > revision number where the file was last modified, and a Last-Modified > header that contains the date of that revision. The clean http way to > make use of these is

Re: [matplotlib-devel] example data in example code

2009-08-04 Thread Jouni K . Seppänen
John Hunter writes: > # TODO: how to handle stale data in the cache that has been > # updated from svn -- is there a clean http way to get the current > # revision number that will not leave us at the mercy of html > # changes at sf? The mod_dav_svn server sends an ETag header th

Re: [matplotlib-devel] example data in example code

2009-08-04 Thread John Hunter
On Tue, Aug 4, 2009 at 11:17 AM, Josh Hemann wrote: > > So, I just downloaded 0.99 rc1 and wanted to play with axesgrid examples and > got the results you reported below in your example. I am in fact naive, and > its not clear to me how to get around this problem of the demo_image module > not bein

Re: [matplotlib-devel] example data in example code

2009-08-04 Thread Josh Hemann
So, I just downloaded 0.99 rc1 and wanted to play with axesgrid examples and got the results you reported below in your example. I am in fact naive, and its not clear to me how to get around this problem of the demo_image module not being found. What is the solution? Thanks, Josh John Hunter

Re: [matplotlib-devel] example data in example code

2009-07-31 Thread John Hunter
On Fri, Jul 31, 2009 at 1:10 PM, John Hunter wrote: > The gallery is becoming the goto place for most users of the website, > and I would like as many examples as possible to run after a simple > download to the desktop .  I am sensitive to packagers who may not > want to ship large amounts of dat