{"action":"created","issue":{"url":"https://api.github.com/repos/matplotlib/matplotlib/issues/4865","labels_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/4865/labels{/name}","comments_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/4865/comments","events_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/4865/events","html_url":"https://github.com/matplotlib/matplotlib/issues/4865","id":99065820,"number":4865,"title":"Wrong coordinate transform on jupyter notebook (inline backend)","user":{"login":"gabrielelanaro","id":239875,"avatar_url":"https://avatars.githubusercontent.com/u/239875?v=3","gravatar_id":"","url":"https://api.github.com/users/gabrielelanaro","html_url":"https://github.com/gabrielelanaro","followers_url":"https://api.github.com/users/gabrielelanaro/followers","following_url":"https://api.github.com/users/gabrielelanaro/following{/other_user}","gists_url":"https://api.github.com/users/gabrielelanaro/gists{/gist_id}","starred_url":"https://api.github.com/users/gabrielelanaro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gabrielelanaro/subscriptions","organizations_url":"https://api.github.com/users/gabrielelanaro/orgs","repos_url":"https://api.github.com/users/gabrielelanaro/repos","events_url":"https://api.github.com/users/gabrielelanaro/events{/privacy}","received_events_url":"https://api.github.com/users/gabrielelanaro/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"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":27,"closed_issues":279,"state":"open","created_at":"2015-02-07T21:22:30Z","updated_at":"2015-08-06T20:27:32Z","due_on":"2015-07-31T04:00:00Z","closed_at":null},"comments":5,"created_at":"2015-08-04T21:26:50Z","updated_at":"2015-08-06T20:43:45Z","closed_at":"2015-08-06T18:11:53Z","body":"Hi, I've been trying to the example http://matplotlib.org/pyplots/annotate_transform.py in jupyter notebook (inline backend) as described in the transformation tutorial http://matplotlib.org/users/transforms_tutorial.html\r\n\r\nHowever the picture I obtain is somehow shifted from the expected output:\r\n![download](https://cloud.githubusercontent.com/assets/239875/9073233/cfb05ff4-3ab4-11e5-9cad-7584e0d99c4a.png)\r\n\r\nIs this something you can reproduce? How can I fix that?\r\nI'm using the matplotlib version just pulled from git"},"comment":{"url":"https://api.github.com/repos/matplotlib/matplotlib/issues/comments/128502514","html_url":"https://github.com/matplotlib/matplotlib/issues/4865#issuecomment-128502514","issue_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/4865","id":128502514,"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-06T20:43:45Z","updated_at":"2015-08-06T20:43:45Z","body":"The problem is still that you are computing the pixel to point to with one set of transforms and rendering the final figure (most likely either the figure size or dpi changed).  Unless you are super careful and/or re-compute the pixel location on every draw stay I strongly advise against using absolute pixels for anything.\r\n\r\nAs with #4375 the transforms on inset axes may not be initialized until after the first draw.  Attach the annotation to the inset axes with the highest zorder.\r\n\r\nIt would be helpful if you posted a minimal example demonstrating your problem."}}