{"action":"created","issue":{"url":"https://api.github.com/repos/matplotlib/matplotlib/issues/4375","labels_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/4375/labels{/name}","comments_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/4375/comments","events_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/4375/events","html_url":"https://github.com/matplotlib/matplotlib/issues/4375","id":70415142,"number":4375,"title":"`savefig` messes up coordinate transformation of `annotate`","user":{"login":"PiQuer","id":1511250,"avatar_url":"https://avatars.githubusercontent.com/u/1511250?v=3","gravatar_id":"","url":"https://api.github.com/users/PiQuer","html_url":"https://github.com/PiQuer","followers_url":"https://api.github.com/users/PiQuer/followers","following_url":"https://api.github.com/users/PiQuer/following{/other_user}","gists_url":"https://api.github.com/users/PiQuer/gists{/gist_id}","starred_url":"https://api.github.com/users/PiQuer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PiQuer/subscriptions","organizations_url":"https://api.github.com/users/PiQuer/orgs","repos_url":"https://api.github.com/users/PiQuer/repos","events_url":"https://api.github.com/users/PiQuer/events{/privacy}","received_events_url":"https://api.github.com/users/PiQuer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"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},"milestone":{"url":"https://api.github.com/repos/matplotlib/matplotlib/milestones/18","html_url":"https://github.com/matplotlib/matplotlib/milestones/next%20point%20release","labels_url":"https://api.github.com/repos/matplotlib/matplotlib/milestones/18/labels","id":970105,"number":18,"title":"next point release","description":"Next minor release.","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":32,"closed_issues":276,"state":"open","created_at":"2015-02-07T21:22:30Z","updated_at":"2015-08-06T18:11:53Z","due_on":"2015-07-31T04:00:00Z","closed_at":null},"comments":7,"created_at":"2015-04-23T13:40:28Z","updated_at":"2015-08-06T18:13:24Z","closed_at":null,"body":"I want to annotate a data point with an inset axis (matplotlib-1.4.3, Linux):\r\n\r\n    import matplotlib.pyplot as plt\r\n    import numpy as np\r\n    from mpl_toolkits.axes_grid1.inset_locator import inset_axes\r\n\r\n    x=np.linspace(0,10,200)\r\n    y=np.exp(-x)*np.sin(x)\r\n\r\n    fig,ax = plt.subplots(figsize=(3.39,3))\r\n\r\n    ax.plot(x,y)\r\n\r\n    axins=inset_axes(ax, width=0.6, height=0.6, bbox_to_anchor=(6, 0.2),bbox_transform=ax.transData)\r\n    axins.axes.get_xaxis().set_visible(False)\r\n    axins.axes.get_yaxis().set_visible(False)\r\n    ax.annotate(\"\",xy=(x[150],y[150]), xycoords=ax.transData,\r\n            xytext=(1, 0), textcoords=axins.transAxes,\r\n            arrowprops=dict(arrowstyle=\"->\"))\r\n\r\n    fig.savefig('example.pdf')\r\n    plt.show()\r\n\r\nThis is the correct plot shown on screen:\r\n![shown](https://cloud.githubusercontent.com/assets/1511250/7298247/8eb61174-e9ce-11e4-9622-62fe50587cae.png)\r\nThis is what `savefig` produces:\r\n![example](https://cloud.githubusercontent.com/assets/1511250/7298275/bee8f910-e9ce-11e4-87b5-68a481c3d094.png)\r\n\r\nApparently `savefig` changes the coordinates `(1,0)` from the inset axes to the parent axes for some reason.\r\n"},"comment":{"url":"https://api.github.com/repos/matplotlib/matplotlib/issues/comments/128463033","html_url":"https://github.com/matplotlib/matplotlib/issues/4375#issuecomment-128463033","issue_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/4375","id":128463033,"user":{"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},"created_at":"2015-08-06T18:13:24Z","updated_at":"2015-08-06T18:13:24Z","body":"Maybe (?) related to https://github.com/matplotlib/matplotlib/issues/2831#issuecomment-43733334"}}