{"action":"created","issue":{"url":"https://api.github.com/repos/matplotlib/matplotlib/issues/8717","repository_url":"https://api.github.com/repos/matplotlib/matplotlib","labels_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/8717/labels{/name}","comments_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/8717/comments","events_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/8717/events","html_url":"https://github.com/matplotlib/matplotlib/issues/8717","id":233452362,"number":8717,"title":"Bug in the HiDPI support in the qt5agg backend","user":{"login":"djpine","id":3291641,"avatar_url":"https://avatars1.githubusercontent.com/u/3291641?v=3","gravatar_id":"","url":"https://api.github.com/users/djpine","html_url":"https://github.com/djpine","followers_url":"https://api.github.com/users/djpine/followers","following_url":"https://api.github.com/users/djpine/following{/other_user}","gists_url":"https://api.github.com/users/djpine/gists{/gist_id}","starred_url":"https://api.github.com/users/djpine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/djpine/subscriptions","organizations_url":"https://api.github.com/users/djpine/orgs","repos_url":"https://api.github.com/users/djpine/repos","events_url":"https://api.github.com/users/djpine/events{/privacy}","received_events_url":"https://api.github.com/users/djpine/received_events","type":"User","site_admin":false},"labels":[{"id":116795,"url":"https://api.github.com/repos/matplotlib/matplotlib/labels/confirmed%20bug","name":"confirmed bug","color":"444444","default":false},{"id":151678814,"url":"https://api.github.com/repos/matplotlib/matplotlib/labels/GUI/Qt","name":"GUI/Qt","color":"d4c5f9","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/matplotlib/matplotlib/milestones/12","html_url":"https://github.com/matplotlib/matplotlib/milestone/12","labels_url":"https://api.github.com/repos/matplotlib/matplotlib/milestones/12/labels","id":534144,"number":12,"title":"2.1 (next point release)","description":"Next feature release.\r\n\r\nBig ticket items:\r\n\r\n - MEP 22/27\r\n - traitlets","creator":{"login":"tacaswell","id":199813,"avatar_url":"https://avatars0.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":637,"closed_issues":916,"state":"open","created_at":"2014-01-13T03:21:09Z","updated_at":"2017-06-05T04:04:37Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2017-06-04T18:56:08Z","updated_at":"2017-06-05T10:48:28Z","closed_at":null,"body":"<!--To help us understand and resolve your issue, please fill out the form to the best of your ability.-->\r\n<!--You can feel free to delete the sections that do not apply.-->\r\n\r\n### Bug report\r\n\r\n**Bug summary**\r\n\r\nThe interactive plot window is too small, but the text remains at the size that would be correct for a larger properly sized window.\r\n\r\nIt works if you go through pyplot:\r\n\r\nfig, ax = plt.subplots(figsize=(6,4))\r\nax.plot([1,2,3])\r\n\r\nbut not in this example, which uses the pure OO interface.\r\n\r\nThe version of the plot saved to the file text.pdf is correctly sized.\r\n\r\n**Code for reproduction**\r\n\r\n```python\r\nfrom matplotlib.backends.backend_qt5agg \\\r\n     import FigureCanvasQTAgg as FigureCanvas\r\nfrom matplotlib.figure import Figure\r\n\r\nfig = Figure(figsize=(6, 4))\r\ncanvas = FigureCanvas(fig)\r\nax = fig.add_subplot(111)\r\nax.plot([1, 2, 3, 2, 3, 4, 3, 4, 5])\r\nax.set_title('A simple plot')\r\nax.grid(True)\r\nax.set_xlabel('time')\r\nax.set_ylabel('volts')\r\ncanvas.print_figure('test.pdf')\r\ncanvas.show()\r\n```\r\n\r\n**Actual outcome**\r\n\r\n<!--The output produced by the above code, which may be a screenshot, console output, etc.-->\r\n\r\n<img width=\"412\" alt=\"screen shot 2017-06-04 at 2 43 05 pm\" src=\"https://cloud.githubusercontent.com/assets/3291641/26764417/984cfeec-4934-11e7-82cc-c67caa45a794.png\">\r\n\r\n**Expected outcome**\r\n\r\n<!--A description of the expected outcome from the code snippet-->\r\n<!--If this used to work in an earlier version of Matplotlib, please note the version it used to work on-->\r\n\r\n![screen shot 2017-06-04 at 2 52 48 pm](https://cloud.githubusercontent.com/assets/3291641/26764486/a5cf535c-4935-11e7-935f-e95ff8575d07.png)\r\n\r\n**Matplotlib version**\r\n<!--Please specify your platform and versions of the relevant libraries you are using:-->\r\n  * Operating System: MacOS Sierra 10.12.5\r\n  * Matplotlib Version: 2.0.2\r\n  * Python Version: 3.6.1\r\n  * Jupyter Version (if applicable):\r\n  * Other Libraries: \r\n\r\n<!--Please tell us how you installed matplotlib and python e.g., from source, pip, conda--> \r\n<!--If you installed from conda, please specify which channel you used if not the default--> \r\nInstalled with conda (default)"},"comment":{"url":"https://api.github.com/repos/matplotlib/matplotlib/issues/comments/306159493","html_url":"https://github.com/matplotlib/matplotlib/issues/8717#issuecomment-306159493","issue_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/8717","id":306159493,"user":{"login":"djpine","id":3291641,"avatar_url":"https://avatars1.githubusercontent.com/u/3291641?v=3","gravatar_id":"","url":"https://api.github.com/users/djpine","html_url":"https://github.com/djpine","followers_url":"https://api.github.com/users/djpine/followers","following_url":"https://api.github.com/users/djpine/following{/other_user}","gists_url":"https://api.github.com/users/djpine/gists{/gist_id}","starred_url":"https://api.github.com/users/djpine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/djpine/subscriptions","organizations_url":"https://api.github.com/users/djpine/orgs","repos_url":"https://api.github.com/users/djpine/repos","events_url":"https://api.github.com/users/djpine/events{/privacy}","received_events_url":"https://api.github.com/users/djpine/received_events","type":"User","site_admin":false},"created_at":"2017-06-05T10:48:27Z","updated_at":"2017-06-05T10:48:27Z","body":"Nope.  Putting\n\nfig.set_size_inches(6, 4)\n\n\nat different places after setting the canvas in the code doesn't make a\ndifference.\n\n\n\n____________________________________________________________________________\n______\n\nDavid Pine\nNew York University\nSilver Professor\nChair, Department of Chemical & Biomolecular Engineering\n    NYU Tandon School of Engineering\nProfessor of Physics\n    NYU College of Arts & Science\nOffice (Brooklyn):158 Jacobs Administration Building [6 MetroTech Center,\nBrooklyn, New York 11201]\nOffice (Manhattan): Room 883 [726 Broadway, New York, NY 10003]\nTel:  646-997-3004 (Brooklyn)\nTel:  212-998-7744 (Manhattan)\nWeb: http://www.physics.nyu.edu/pine/Home.html\nE-mail:  pine@nyu.edu\n____________________________________________________________________\n______________\n\nOn Mon, Jun 5, 2017 at 12:07 AM, Thomas A Caswell <notifications@github.com>\nwrote:\n\n> 😞 I thought we had this sorted out.\n>\n> There is a bunch of jiggery-pokery to double the DPI under the hood. Does\n> it help if you set the figure size after your create and add the canvas?\n>\n> attn @efiring <https://github.com/efiring>\n>\n> —\n> You are receiving this because you authored the thread.\n> Reply to this email directly, view it on GitHub\n> <https://github.com/matplotlib/matplotlib/issues/8717#issuecomment-306098784>,\n> or mute the thread\n> <https://github.com/notifications/unsubscribe-auth/ADI5-R7ukRc9Asxkin0CQY8fjw0MYlEiks5sA37pgaJpZM4NvdUW>\n> .\n>\n"}}
{"actor":{"display_login":"djpine"}}