{"action":"created","issue":{"url":"https://api.github.com/repos/matplotlib/matplotlib/issues/5159","labels_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/5159/labels{/name}","comments_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/5159/comments","events_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/5159/events","html_url":"https://github.com/matplotlib/matplotlib/issues/5159","id":109096859,"number":5159,"title":"plt.plot(...) makes python repl in cmd slow","user":{"login":"JanSchulz","id":890156,"avatar_url":"https://avatars.githubusercontent.com/u/890156?v=3","gravatar_id":"","url":"https://api.github.com/users/JanSchulz","html_url":"https://github.com/JanSchulz","followers_url":"https://api.github.com/users/JanSchulz/followers","following_url":"https://api.github.com/users/JanSchulz/following{/other_user}","gists_url":"https://api.github.com/users/JanSchulz/gists{/gist_id}","starred_url":"https://api.github.com/users/JanSchulz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JanSchulz/subscriptions","organizations_url":"https://api.github.com/users/JanSchulz/orgs","repos_url":"https://api.github.com/users/JanSchulz/repos","events_url":"https://api.github.com/users/JanSchulz/events{/privacy}","received_events_url":"https://api.github.com/users/JanSchulz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":20,"created_at":"2015-09-30T14:00:40Z","updated_at":"2015-10-04T13:36:33Z","closed_at":null,"body":"When producing a small plot in the console, the console becomes very sluggish afterwards:\r\n\r\n```\r\nλ python\r\nPython 2.7.10 |Continuum Analytics, Inc.| (default, Sep 15 2015, 14:26:14) [MSC v.1500 64 bit (AMD64)] on win32\r\n\r\nType \"help\", \"copyright\", \"credits\" or \"license\" for more information.\r\nAnaconda is brought to you by Continuum Analytics.\r\nPlease check out: http://continuum.io/thanks and https://anaconda.org\r\n>>> import matplotlib.pyplot as plt\r\n>>> plt.plot([1,2,3], marker=\"o\")\r\n[<matplotlib.lines.Line2D object at 0x0000000008DB60B8>]\r\n\r\n# from here on it's sluggish until I exit -> typing shows the next character\r\n# with a noteable delay and c&p is kind of \"typing\" the text instead of \r\n# almost instantly there\r\n\r\n>>> plt.show()\r\n```\r\n\r\nThis a clean new conda env py2.7 (`conda create -n mew_test python matplotlib seaborn ipython`) on windows7, 64bit. I also have cmder installed, but it also happens in the default cmd console"},"comment":{"url":"https://api.github.com/repos/matplotlib/matplotlib/issues/comments/145350655","html_url":"https://github.com/matplotlib/matplotlib/issues/5159#issuecomment-145350655","issue_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/5159","id":145350655,"user":{"login":"JanSchulz","id":890156,"avatar_url":"https://avatars.githubusercontent.com/u/890156?v=3","gravatar_id":"","url":"https://api.github.com/users/JanSchulz","html_url":"https://github.com/JanSchulz","followers_url":"https://api.github.com/users/JanSchulz/followers","following_url":"https://api.github.com/users/JanSchulz/following{/other_user}","gists_url":"https://api.github.com/users/JanSchulz/gists{/gist_id}","starred_url":"https://api.github.com/users/JanSchulz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JanSchulz/subscriptions","organizations_url":"https://api.github.com/users/JanSchulz/orgs","repos_url":"https://api.github.com/users/JanSchulz/repos","events_url":"https://api.github.com/users/JanSchulz/events{/privacy}","received_events_url":"https://api.github.com/users/JanSchulz/received_events","type":"User","site_admin":false},"created_at":"2015-10-04T13:36:33Z","updated_at":"2015-10-04T13:36:33Z","body":"Using `%gui qt` in ipython before the `plt.plot()` prevents the sluggishness (=c&p is fast afterwards). Even calling this after `plt.plot()` (and observing sluggish behaviour) is restoring the the c&p behaviour.\r\n\r\nSo what this means is that using matplotlib in interactive mode on windows will result in sluggish behaviour unless setting the backend to something else than qt4 or using ipython and `%gui qt`?"}}