Re: [Matplotlib-users] key_press_event weirdness

2011-10-14 Thread Jorge Scandaliaris
Benjamin Root ben.root@... writes:


 
 Which backend and platform are you using?Ben Root
 

I run Arch Linux x86_64 and I am using the GTKAgg backend. I tried both with
IPython and python directly (2.7.2).

jorges


--
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2d-oct
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] key_press_event weirdness

2011-10-14 Thread John Hunter
On Fri, Oct 14, 2011 at 7:18 AM, Jorge Scandaliaris
jorgesmbox...@yahoo.es wrote:

 I run Arch Linux x86_64 and I am using the GTKAgg backend. I tried both with
 IPython and python directly (2.7.2).

I am not seeing this on  Linux x86_64 with backend GTKAgg version
2.22.0 on python 2.7.  Eg, if I run:

 python simple_plot.py -dgtkagg

and then hover over the axes window (w/o clicking on it but the window
has the focus on hover) and press 'g') the grids is toggled.

JDH

--
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2d-oct
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] key_press_event weirdness

2011-10-14 Thread Jorge Scandaliaris
John Hunter jdh2358@... writes:

 
 I am not seeing this on  Linux x86_64 with backend GTKAgg version
 2.22.0 on python 2.7.  Eg, if I run:
 
  python simple_plot.py -dgtkagg
 
 and then hover over the axes window (w/o clicking on it but the window
 has the focus on hover) and press 'g') the grids is toggled.
 
 JDH

You're right, John, it works here too with the gtkagg backend. I have just
noticed that I had different backend options set in matplotlib.conf and
matplotlibrc. My initial report refers then to the Qt4Agg backend.

BTW, which of matplotlib.conf or matplotlibrc is preferred?

jorges


--
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2d-oct
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] key_press_event weirdness

2011-10-14 Thread John Hunter
On Fri, Oct 14, 2011 at 8:52 AM, John Hunter jdh2...@gmail.com wrote:
 On Fri, Oct 14, 2011 at 8:46 AM, Jorge Scandaliaris
 jorgesmbox...@yahoo.es wrote:
 You're right, John, it works here too with the gtkagg backend. I have just
 noticed that I had different backend options set in matplotlib.conf and
 matplotlibrc. My initial report refers then to the Qt4Agg backend.

 OK, I can confirm this too on Qt4Agg version 4.8.3.


I opened an issue here

https://github.com/matplotlib/matplotlib/issues/525

I am no qt expert so perhaps someone else can suggest a solution.  In
the gtk backend, I believe we added:

self.canvas.grab_focus()

to support events w/o clicking on the canvas.

--
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2d-oct
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] key_press_event weirdness

2011-10-13 Thread Jorge Scandaliaris
Hi,

I am experiencing something a bit strange with 'key_press_event': The event is
not detected unless I click with the mouse on the canvas (The grey area around
the axis). I verified this with my own code as well as with some unmodified
example (
http://matplotlib.sourceforge.net/examples/event_handling/keypress_demo.html?highlight=key_press_event
).
I built mpl from a recent revision (a few days old).

Does anyone else experience this? Is this the expected behavior? I believe it
was enough to have the figure window focused to get key events before, but I
haven't used this feature for some time.

Thanks,

Jorges


--
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2d-oct
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] key_press_event weirdness

2011-10-13 Thread Benjamin Root
On Thu, Oct 13, 2011 at 9:52 PM, Jorge Scandaliaris
jorgesmbox...@yahoo.eswrote:

 Hi,

 I am experiencing something a bit strange with 'key_press_event': The event
 is
 not detected unless I click with the mouse on the canvas (The grey area
 around
 the axis). I verified this with my own code as well as with some unmodified
 example (

 http://matplotlib.sourceforge.net/examples/event_handling/keypress_demo.html?highlight=key_press_event
 ).
 I built mpl from a recent revision (a few days old).

 Does anyone else experience this? Is this the expected behavior? I believe
 it
 was enough to have the figure window focused to get key events before, but
 I
 haven't used this feature for some time.

 Thanks,

 Jorges


Which backend and platform are you using?

Ben Root
--
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2d-oct___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users