[matplotlib-devel] waitforbuttonpress function addition

2008-07-11 Thread David M. Kaplan
Hi, Following Gael Varoquaux's lead on adding a ginput command to matplotlib (nice job!), I added a waitforbuttonpress function to matplotlib. The patch is attached (generate using svn diff from the matplotlib/trunk/matplotlib directory). waitforbuttonpress is a simple function with a matlab equ

Re: [matplotlib-devel] waitforbuttonpress function addition

2008-07-11 Thread Gael Varoquaux
On Fri, Jul 11, 2008 at 03:22:30PM +0200, David M. Kaplan wrote: > The way I have implemented it is by adding an additional class > BlockingKeyMouseInput, which is quite similar to BlockingMouseInput, but > waits for both key and mouse events. A smarter person than I could > probably combine these

Re: [matplotlib-devel] waitforbuttonpress function addition

2008-07-11 Thread David M. Kaplan
Hi, Attached is a new patch to replace the previous one that I sent that does what Gael suggested. It works well and seems fairly efficient to me, but again I am new to python and I could be mistaken about what Gael was suggesting. Basically, I created a base class that does the blocking and col

[matplotlib-devel] colormap menu

2008-07-11 Thread Paul Kienzle
Hi, I created a menu for selecting colormaps from a context menu on the graph. The attached code cmapmenu.py contains a runnable example. I've only implemented support for wx. In general, I would like to be able to add context menu operations to individual artists on the plot, and will be doing

[matplotlib-devel] Two projects possibly of interest

2008-07-11 Thread Fernando Perez
Howdy, I stumbled upon these two projects which may be of interest to some in mpl land: - perceptual image diff: http://pdiff.sourceforge.net/ I have no idea if this works well or not, but if it does, it could be useful for regression testing of mpl, something which has been sorely missing and n