{"action":"created","issue":{"url":"https://api.github.com/repos/matplotlib/matplotlib/issues/10060","repository_url":"https://api.github.com/repos/matplotlib/matplotlib","labels_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/10060/labels{/name}","comments_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/10060/comments","events_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/10060/events","html_url":"https://github.com/matplotlib/matplotlib/issues/10060","id":283632852,"number":10060,"title":"Dragged legend moves upon resizing figure window","user":{"login":"inxp","id":6796654,"avatar_url":"https://avatars0.githubusercontent.com/u/6796654?v=4","gravatar_id":"","url":"https://api.github.com/users/inxp","html_url":"https://github.com/inxp","followers_url":"https://api.github.com/users/inxp/followers","following_url":"https://api.github.com/users/inxp/following{/other_user}","gists_url":"https://api.github.com/users/inxp/gists{/gist_id}","starred_url":"https://api.github.com/users/inxp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/inxp/subscriptions","organizations_url":"https://api.github.com/users/inxp/orgs","repos_url":"https://api.github.com/users/inxp/repos","events_url":"https://api.github.com/users/inxp/events{/privacy}","received_events_url":"https://api.github.com/users/inxp/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/matplotlib/matplotlib/milestones/32","html_url":"https://github.com/matplotlib/matplotlib/milestone/32","labels_url":"https://api.github.com/repos/matplotlib/matplotlib/milestones/32/labels","id":3106572,"number":32,"title":"v2.2.1","description":"First bugfix release for 2.2.x series.\r\n\r\non-merge: backport to v2.2.x","creator":{"login":"tacaswell","id":199813,"avatar_url":"https://avatars3.githubusercontent.com/u/199813?v=4","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":10,"closed_issues":7,"state":"open","created_at":"2018-02-12T03:21:43Z","updated_at":"2018-03-06T00:54:25Z","due_on":null,"closed_at":null},"comments":7,"created_at":"2017-12-20T17:06:36Z","updated_at":"2018-03-06T04:59:20Z","closed_at":"2018-03-05T20:54:10Z","author_association":"NONE","body":"Dragged legend moves upon resizing figure window from matplotlib version 2.1.0.\r\n\r\n\r\n**Code for reproduction**\r\n\r\n```\r\nimport matplotlib.pyplot as plt\r\n\r\nX = range(100)\r\nY = [value ** 2 for value in X]\r\n\r\nplt.plot(X, Y,label='Y')\r\nleg=plt.legend()\r\nleg.draggable(True)\r\nplt.grid(True)\r\nplt.show()\r\n```\r\n**Matplotlib 2.1.1/2.1.0 output**\r\n\r\n![2 1 0](https://user-images.githubusercontent.com/6796654/34217804-7c5bba3a-e5d2-11e7-91d2-6dcbd8addb25.jpg)\r\n\r\n**Matplotlib 2.0.2 output**\r\n\r\n![2 0 2](https://user-images.githubusercontent.com/6796654/34217841-972f7da6-e5d2-11e7-8c13-753657f445f5.jpg)\r\n\r\nIn 2.1.0 legend tries to retain it's location with respect to monitor (if we resize in one axis). \r\nIs this expected? How do I bring back the old behavior?\r\n\r\n  * Operating system: Windows 10 64 bit\r\n  * Matplotlib version: 2.1.0/2.0.2\r\n  * Matplotlib backend: NA\r\n  * Python version: 2.7.10\r\n  * Jupyter version (if applicable): NA\r\n  * Other libraries: NA\r\n  * Installed using whl files\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/matplotlib/matplotlib/issues/comments/370662951","html_url":"https://github.com/matplotlib/matplotlib/issues/10060#issuecomment-370662951","issue_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/10060","id":370662951,"user":{"login":"inxp","id":6796654,"avatar_url":"https://avatars0.githubusercontent.com/u/6796654?v=4","gravatar_id":"","url":"https://api.github.com/users/inxp","html_url":"https://github.com/inxp","followers_url":"https://api.github.com/users/inxp/followers","following_url":"https://api.github.com/users/inxp/following{/other_user}","gists_url":"https://api.github.com/users/inxp/gists{/gist_id}","starred_url":"https://api.github.com/users/inxp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/inxp/subscriptions","organizations_url":"https://api.github.com/users/inxp/orgs","repos_url":"https://api.github.com/users/inxp/repos","events_url":"https://api.github.com/users/inxp/events{/privacy}","received_events_url":"https://api.github.com/users/inxp/received_events","type":"User","site_admin":false},"created_at":"2018-03-06T04:59:20Z","updated_at":"2018-03-06T04:59:20Z","author_association":"NONE","body":"Fixed for me also.\r\nThanks"}}
{"actor":{"display_login":"inxp"}}