Re: [Matplotlib-users] Plot moves while using the Zoom to rectangle button

2010-07-13 Thread Preben Randhol
On 07/13/2010 02:05 AM, John Hunter wrote: I also see buggy behavior, but on my ubuntu linux system I see that the whole subplot gets painted black on a mouse press and remains so while the rubber-banding is in effect. It's not strictly black, but it looks like blackish bit noise. I also

[Matplotlib-users] Cannot get key_press_event to work with gtk builder

2010-07-13 Thread Preben Randhol
Hi I have tried the mpl and glade examples and tried different approaches from the net, but I can only get button_press_event to work with a matplot canvas. key_press_event does not work using gtkagg for GUI. Is this due to the gtk builder 2.16? I mean does the main window steal the key_presses

Re: [Matplotlib-users] Problems with pygtk and matplotlib

2010-07-12 Thread Preben Randhol
On Sun, 11 Jul 2010 13:39:05 -1000 Eric Firing efir...@hawaii.edu wrote: On 07/11/2010 07:52 AM, Preben Randhol wrote: Also, are you using backend_gtk or backend_gtkagg (and does it matter for your problem?) I use GTKAgg and it works. GTK doesn't. backend_gtk has limitations

[Matplotlib-users] Problems with pygtk and matplotlib

2010-07-09 Thread Preben Randhol
Hi I'm trying to plot several subplots. I have setup a scrollwidget and viewport and I pack a canvas into a vbox in the viewport. Problem is that when I scroll, either some of the subplots are missing, or I get an error when I try to zoom on a graph that argument is not a gdk.gtk.image (or

[Matplotlib-users] Reverse y-axis?

2010-06-25 Thread Preben Randhol
Hi I need to plot some data vs depth. In stead of giving depths as 0,-1000,-2000, I want to give the depths as 0,1000,2000 but when plotting the data goes downwards (as if they had been negative). Can I get the y-axis to reverse so it goes downwards and not upwards?