Re: [Matplotlib-users] Agg backend writing to StringIO?

2006-08-16 Thread Nelson Minar
Thanks for the answers. I was glad to see Steven Chaplin suggest that it is possible to get libpng to write directly to a stream like StringIO; seems like a good thing. In the meantime I came up with the following little helper functions to render a Figure to PNG (via Agg) or SVG (via SVG). de

Re: [Matplotlib-users] Agg backend writing to StringIO?

2006-08-16 Thread Steven Chaplin
> Nelson Minar <[EMAIL PROTECTED]> writes: > > > matplotlib is great, particularly the image quality. I'm using > > matplotlib to generate images in a webapp and have run into a problem. > > How do I get it to give me the rendered image bytes in a string rather > > than writing the image to a fi

Re: [Matplotlib-users] Is matplotlib compatible whith PyQt4 ?

2006-08-16 Thread Samuel GARCIA
Sorry for the mistake. Darren Dale wrote: On Wednesday 16 August 2006 08:49, Samuel GARCIA wrote: I am not good enougth track and solve the problem. Maybe I can be a beta tester. I saw in svn that the author of qt4 backend is Charlie Moad. And it is very young (6 weeks).

Re: [Matplotlib-users] Is matplotlib compatible whith PyQt4 ?

2006-08-16 Thread Charlie Moad
I am not the author of it. I just may of made the last commits to it. I am pretty sure Darren wrote the initial implimentatin. The only example that exists right now is animation_blit_qt4.py. On 8/16/06, Samuel GARCIA <[EMAIL PROTECTED]> wrote: > > I am not good enougth track and solve the pro

Re: [Matplotlib-users] Is matplotlib compatible whith PyQt4 ?

2006-08-16 Thread Darren Dale
On Wednesday 16 August 2006 08:49, Samuel GARCIA wrote: > I am not good enougth track and solve the problem. > Maybe I can be a beta tester. > > I saw in svn that the author of qt4 backend is Charlie Moad. > And it is very young (6 weeks). I think you misread the svn entry. James Amundson ported t

Re: [Matplotlib-users] Is matplotlib compatible whith PyQt4 ?

2006-08-16 Thread Samuel GARCIA
I am not good enougth track and solve the problem. Maybe I can be a beta tester. I saw in svn that the author of qt4 backend is Charlie Moad. And it is very young (6 weeks). So a question for Charlie moad : do you have a example which could work on my debian unstable station for embedding_in_

Re: [Matplotlib-users] Legend outside plot

2006-08-16 Thread Darren Dale
On Wednesday 16 August 2006 02:26, Brendan Barnwell wrote: > Hi, I'm trying to get matplotlib to give me a plot where the legend is > outside the axes. > > I saw several posts about this in the mailing list archives, but none of > them really seem to provide workable solutions. Try p

Re: [Matplotlib-users] Is matplotlib compatible whith PyQt4 ?

2006-08-16 Thread Darren Dale
On Wednesday 16 August 2006 04:54, Samuel GARCIA wrote: > I still have a problem. This is my code : > > import sys > > from PyQt4.QtCore import * > from PyQt4.QtGui import * > > from matplotlib.backends.backend_qt4agg import FigureCanvasQTAgg as > FigureCanvas > from matplotlib.figure import Figure

Re: [Matplotlib-users] Is matplotlib compatible whith PyQt4 ?

2006-08-16 Thread Samuel GARCIA
Thank you, Sorry I did known the existence of matplotlib.backends.backend_qt4agg. It is more easy than I thought. but I still have a problem. This is my code : import sys from PyQt4.QtCore import * from PyQt4.QtGui import * from matplotlib.backends.backend_qt4agg import FigureCanvasQTAgg as