{"action":"created","issue":{"url":"https://api.github.com/repos/matplotlib/matplotlib/issues/11276","repository_url":"https://api.github.com/repos/matplotlib/matplotlib","labels_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/11276/labels{/name}","comments_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/11276/comments","events_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/11276/events","html_url":"https://github.com/matplotlib/matplotlib/issues/11276","id":324658267,"number":11276,"title":"plt.ion() call before plt.figure() call fails after a Windows 10 update.","user":{"login":"stevievb","id":6226868,"avatar_url":"https://avatars3.githubusercontent.com/u/6226868?v=4","gravatar_id":"","url":"https://api.github.com/users/stevievb","html_url":"https://github.com/stevievb","followers_url":"https://api.github.com/users/stevievb/followers","following_url":"https://api.github.com/users/stevievb/following{/other_user}","gists_url":"https://api.github.com/users/stevievb/gists{/gist_id}","starred_url":"https://api.github.com/users/stevievb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevievb/subscriptions","organizations_url":"https://api.github.com/users/stevievb/orgs","repos_url":"https://api.github.com/users/stevievb/repos","events_url":"https://api.github.com/users/stevievb/events{/privacy}","received_events_url":"https://api.github.com/users/stevievb/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-05-19T20:33:48Z","updated_at":"2018-05-19T20:38:08Z","closed_at":"2018-05-19T20:38:08Z","author_association":"NONE","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\n<!--A short 1-2 sentences that succinctly describes the bug-->\r\nThis was working until recently. Started failing all of the sudden after a Windows 10 update.\r\n\r\n**Code for reproduction**\r\n\r\n<!--A minimum code snippet required to reproduce the bug, also minimizing the number of dependencies required-->\r\n\r\n```python\r\nimport matplotlib.pyplot as plt\r\n\r\nplt.ion()\r\nfig = plt.figure('test')\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```\r\nTraceback (most recent call last):\r\n  File \"C:/###/Code/####/_test_matplitlib_bug.py\", line 4, in <module>\r\n    fig = plt.figure('test')\r\n  File \"C:\\Anaconda3\\envs\\py27_sp\\lib\\site-packages\\matplotlib\\pyplot.py\", line 557, in figure\r\n    draw_if_interactive()\r\n  File \"C:\\Users\\#####\\AppData\\Local\\JetBrains\\Toolbox\\apps\\PyCharm-P\\ch-0\\1##\\helpers\\pycharm_matplotlib_backend\\backend_interagg.py\", line 39, in draw_if_interactive\r\n    figManager.canvas.show()\r\n  File \"C:\\Users\\#####\\AppData\\Local\\JetBrains\\Toolbox\\apps\\PyCharm-P\\ch-0\\1##\\helpers\\pycharm_matplotlib_backend\\backend_interagg.py\", line 62, in show\r\n    self.figure.tight_layout()\r\n  File \"C:\\Anaconda3\\envs\\py27_sp\\lib\\site-packages\\matplotlib\\figure.py\", line 1753, in tight_layout\r\n    rect=rect)\r\n  File \"C:\\Anaconda3\\envs\\py27_sp\\lib\\site-packages\\matplotlib\\tight_layout.py\", line 326, in get_tight_layout_figure\r\n    max_nrows = max(nrows_list)\r\nValueError: max() arg is an empty sequence\r\n```\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\nIt was working before a Windows 10 update. \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: Windows 10 Home (10.0.17134) Build 171 34\r\n  * Matplotlib version: 2.0.2\r\n  * Matplotlib backend (`print(matplotlib.get_backend())`): module://backend_interagg\r\n  * Python version: Python 2.7.13 :: Continuum Analytics, Inc.\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 channels.\r\n"},"comment":{"url":"https://api.github.com/repos/matplotlib/matplotlib/issues/comments/390431133","html_url":"https://github.com/matplotlib/matplotlib/issues/11276#issuecomment-390431133","issue_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/11276","id":390431133,"user":{"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},"created_at":"2018-05-19T20:38:07Z","updated_at":"2018-05-19T20:38:07Z","author_association":"MEMBER","body":"This is a duplicate of https://github.com/matplotlib/matplotlib/issues/8578 which was fixed in https://github.com/matplotlib/matplotlib/pull/8891 and released in mpl 2.1."}}
{"actor":{"display_login":"tacaswell"}}