{"action":"created","issue":{"url":"https://api.github.com/repos/matplotlib/matplotlib/issues/4109","labels_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/4109/labels{/name}","comments_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/4109/comments","events_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/4109/events","html_url":"https://github.com/matplotlib/matplotlib/issues/4109","id":57862831,"number":4109,"title":"WXAgg embedded navigation zoom, home, back not working","user":{"login":"digitalnumeric","id":11036731,"avatar_url":"https://avatars.githubusercontent.com/u/11036731?v=3","gravatar_id":"","url":"https://api.github.com/users/digitalnumeric","html_url":"https://github.com/digitalnumeric","followers_url":"https://api.github.com/users/digitalnumeric/followers","following_url":"https://api.github.com/users/digitalnumeric/following{/other_user}","gists_url":"https://api.github.com/users/digitalnumeric/gists{/gist_id}","starred_url":"https://api.github.com/users/digitalnumeric/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/digitalnumeric/subscriptions","organizations_url":"https://api.github.com/users/digitalnumeric/orgs","repos_url":"https://api.github.com/users/digitalnumeric/repos","events_url":"https://api.github.com/users/digitalnumeric/events{/privacy}","received_events_url":"https://api.github.com/users/digitalnumeric/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/matplotlib/matplotlib/labels/GUI/wx","name":"GUI/wx","color":"d4c5f9"},{"url":"https://api.github.com/repos/matplotlib/matplotlib/labels/needs%20confirmation","name":"needs confirmation","color":"e102d8"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/matplotlib/matplotlib/milestones/15","labels_url":"https://api.github.com/repos/matplotlib/matplotlib/milestones/15/labels","id":719140,"number":15,"title":"unassigned","description":null,"creator":{"login":"tacaswell","id":199813,"avatar_url":"https://avatars.githubusercontent.com/u/199813?v=3","gravatar_id":"","url":"https://api.github.com/users/tacaswell","html_url":"https://github.com/tacaswell","followers_url":"https://api.github.com/users/tacaswell/followers","following_url":"https://api.github.com/users/tacaswell/following{/other_user}","gists_url":"https://api.github.com/users/tacaswell/gists{/gist_id}","starred_url":"https://api.github.com/users/tacaswell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tacaswell/subscriptions","organizations_url":"https://api.github.com/users/tacaswell/orgs","repos_url":"https://api.github.com/users/tacaswell/repos","events_url":"https://api.github.com/users/tacaswell/events{/privacy}","received_events_url":"https://api.github.com/users/tacaswell/received_events","type":"User","site_admin":false},"open_issues":86,"closed_issues":31,"state":"open","created_at":"2014-07-12T20:04:20Z","updated_at":"2015-02-17T01:10:50Z","due_on":null,"closed_at":null},"comments":13,"created_at":"2015-02-16T23:17:04Z","updated_at":"2015-02-17T15:45:17Z","closed_at":null,"body":"I have a figure canvas and navigation bar embedded in a wx.Dialog.  In matplotlib version 1.2.1 and earlier the zoom, home, back (and pan) all worked fine.  If I upgrade to 1.3 (or 1.4.2) zoom, home, and back stop working.  Only pan works.   Any time I zoom, the zoom rectangle is drawn but nothing happens.  The zoom rectangle remains on the screen after I release the mouse button.   If I then switch to pan and left-click to pan the zoom takes effect.   Same thing with the home and back buttons.  If I click them nothing happens until I switch to pan and actually left click and pan then they take effect.\r\n\r\nI also tried this with the user interface example: embedding_in_wx2.py\r\nRunning it alone it is fine.  If I put it in my app and do the following:\r\n```python\r\n    def OnShowClicked(self, event):\r\n        frame = CanvasFrame()\r\n        frame.Show(True)\r\n```\r\nThe window shows correctly, but the zoom, home, back don't work just as I described above.\r\n\r\nI looked through the changes between 1.2.1 and >=1.3 but I didn't see anything that would point to this.  What changed between these versions that might causes this issue.\r\n\r\nHow do I work around this issue?  Is there an example somewhere that shows the right way to do things now to get zoom, home, back, etc. working again?\r\n\r\nThanks."},"comment":{"url":"https://api.github.com/repos/matplotlib/matplotlib/issues/comments/74688836","html_url":"https://github.com/matplotlib/matplotlib/issues/4109#issuecomment-74688836","issue_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/4109","id":74688836,"user":{"login":"digitalnumeric","id":11036731,"avatar_url":"https://avatars.githubusercontent.com/u/11036731?v=3","gravatar_id":"","url":"https://api.github.com/users/digitalnumeric","html_url":"https://github.com/digitalnumeric","followers_url":"https://api.github.com/users/digitalnumeric/followers","following_url":"https://api.github.com/users/digitalnumeric/following{/other_user}","gists_url":"https://api.github.com/users/digitalnumeric/gists{/gist_id}","starred_url":"https://api.github.com/users/digitalnumeric/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/digitalnumeric/subscriptions","organizations_url":"https://api.github.com/users/digitalnumeric/orgs","repos_url":"https://api.github.com/users/digitalnumeric/repos","events_url":"https://api.github.com/users/digitalnumeric/events{/privacy}","received_events_url":"https://api.github.com/users/digitalnumeric/received_events","type":"User","site_admin":false},"created_at":"2015-02-17T15:45:17Z","updated_at":"2015-02-17T15:45:17Z","body":"I verified the issue on a second Windows 7 machine this morning.   I did a fresh Python 2.7.9 install with mpl 1.4 and verfied the issue was present.  I then uninstalled mpl 1.4 and installed mpl 1.2.1 and the issue was gone.\r\n\r\nI haven't been able to re-create the issue in a simple form other than switching from my actual data to a sin wave which gives the same results.   The image below shows how the zoom window just stays on the screen but zooming does not occur.\r\n![zoom_window](https://cloud.githubusercontent.com/assets/11036731/6230924/f25751d0-b688-11e4-9ac1-1f70cb1c7e1d.png)\r\n\r\nIf I do a zoom the rectangle stays and the UI does not update.  If I click pan in the toolbar then left click and begin to drag the mouse the previous zoom takes effect immediately then the pan continues.\r\n\r\nIt seems like the canvas (and maybe toolbar) are not communicating or not updating on windows events.  \r\n\r\nWas something changed in mpl in the way windows events were handled with the figure/canvas/navigation after 1.2.1 was released?  \r\n\r\n\r\n"}}