[matplotlib-devel] bug in imshow for PDF, EPS output

2009-08-05 Thread Michael Fitzgerald
Hi all, I've come across an apparent bug in imshow when outputting to PDF and EPS files. (I haven't tested other vector formats.) It manifests as a small scaling error between the raster image and the axes coordinates. I have attached a test script to illustrate the problem. The (corr

Re: [matplotlib-devel] mkpg on OSX

2009-08-05 Thread Russell Owen
The segfault I reported on was on home computer. Today at work I tried the same installer and it works fine on my work machine. I performed the tests (though I doubt they're relevant since TkAgg works) and came up with: python myscript.py -dTkAgg works (at work) python myscript.py -dWX

Re: [matplotlib-devel] mkpg on OSX

2009-08-05 Thread John Hunter
On Wed, Aug 5, 2009 at 10:53 AM, Russell Owen wrote: > The segfault I reported on was on home computer. Today at work I tried the > same installer and it works fine on my work machine. I performed the tests > (though I doubt they're relevant since TkAgg works) and came up with: > I don't have wxPy

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] mkpg on OSX

2009-08-05 Thread John Hunter
On Tue, Aug 4, 2009 at 11:04 PM, Russell Owen wrote: > Thank you very much. Unfortunately it doesn't work for me. Trying to import > pylab results in a bus error (I appended the log in case it has anything > useful in it). > > My configuration: > - Intel Mac > - MacOS X 10.5.7 > - Python 2.5.2 (in