[Matplotlib-users] plot does not redraw

2007-07-02 Thread Angel Lopez
Hello, I started using pylab-matplotlib some weeks ago. And it is really good. I'm working now on windows (TkAgg). I have written a small app that reads a file and plot it. User can press a key to read another file, and plot it over. The problem is that the I have to resize the plot window to

Re: [Matplotlib-users] Plotting filled circles

2007-07-02 Thread Andrew McLean
Eric Firing wrote: Andrew McLean wrote: It all works. However, I saw in the API documentation (and the source) that there is a Circle object in patch. I was hoping that using this rather than polygons would give better quality output and possibly smaller files. Now I can instantiate it

[Matplotlib-users] legend() without args?

2007-07-02 Thread Jonathan Griffitts
In matplotlib 0.90.1 the behavior of legend() seems to have changed. Here's a test code fragment: --- import pylab import numpy y=numpy.arange(-10,10)**2 print y pylab.plot(y) pylab.legend() pylab.show() --- Running on python 2.5.1, matplotlib

Re: [Matplotlib-users] Plotting filled circles

2007-07-02 Thread Eric Firing
Andrew McLean wrote: [...] Dorling cartograms described here (with an example near the bottom of the page): http://www.ncgia.ucsb.edu/projects/Cartogram_Central/types.html Thanks for the link. Eric Regards, Andrew

Re: [Matplotlib-users] Prompt in MPL - NEVER MIND

2007-07-02 Thread Matthias Michler
Hello everybody, first of all I hope my mails on the issue 'Prompt/TextBox/InputButton' don't become to many. But I had one more idea and I want to share it with you. If you don't like my usage of lists as a pointer to variables, one could replace this in two steps: 1) Adding a new method

Re: [Matplotlib-users] export of a specific zone of a figure

2007-07-02 Thread Christopher Barker
I don't know how to do it with the MPL agg back-end, but I think you mentioned wx, and you can do it there instead. a wxImage can be constructed from a buffer object, then saved as a PNG. You may need to set the rgb and alpha portions separately. See the wxPython wiki and search for Image.