Still On Grid Problems...

- embedding_in_wx.py

    > The "g" key works fine, the grid is shown/hidden when you
    > hit this key. I'm having the same problem in my
    > application, I can not show the grid for some reason, and
    > it seems to me that these 2 problems are related.

    > Do you have any suggestion/pointer?

I answered this question before at

  http://sourceforge.net/mailarchive/message.php?msg_id=11115023

In a nutshell, do not manually bind 'g' to toggle the grid. This
already happens by default in matplotlib 0.72.

In WX* you have to click on the figure before any of the keypress
functionality is activated (does anyone know how to fix this?)

JDH

Hello John and NG,

I answered this question before at

http://sourceforge.net/mailarchive/message.php?msg_id=11115023

Probably I did not make myself clear.

In a nutshell, do not manually bind 'g' to toggle the grid. This
already happens by default in matplotlib 0.72.

I am NOT manually binding the "g" key! I have NO key_press_event on my routines.
Similarly, the examples:

- embedding_in_wx.py
- embedding_in_wx2.py
- wxcursor_demo.py

The is NOT any key_press_event. So there is no manually binding of char
events (in my understanding). Moreover, I can click many times in the WX
window (as you suggested), but the binding of the "g" char is never activated
on the following demos:

- embedding_in_wx2.py
- wxcursor_demo.py

For the embedding_in_wx.py demo, you are right, John. You have to click
on the WX window in order to get the "g" behavior, that works.
I don't really know why you need to click on the window to activate the
char binding... probably Robin Dunn may have an answer to this problem.

Thanks to you all.

Andrea.