{"action":"created","issue":{"url":"https://api.github.com/repos/gprMax/gprMax/issues/75","repository_url":"https://api.github.com/repos/gprMax/gprMax","labels_url":"https://api.github.com/repos/gprMax/gprMax/issues/75/labels{/name}","comments_url":"https://api.github.com/repos/gprMax/gprMax/issues/75/comments","events_url":"https://api.github.com/repos/gprMax/gprMax/issues/75/events","html_url":"https://github.com/gprMax/gprMax/issues/75","id":177788681,"number":75,"title":"matplotlib and QT5 on Windows/Linux","user":{"login":"craig-warren","id":11279495,"avatar_url":"https://avatars.githubusercontent.com/u/11279495?v=3","gravatar_id":"","url":"https://api.github.com/users/craig-warren","html_url":"https://github.com/craig-warren","followers_url":"https://api.github.com/users/craig-warren/followers","following_url":"https://api.github.com/users/craig-warren/following{/other_user}","gists_url":"https://api.github.com/users/craig-warren/gists{/gist_id}","starred_url":"https://api.github.com/users/craig-warren/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/craig-warren/subscriptions","organizations_url":"https://api.github.com/users/craig-warren/orgs","repos_url":"https://api.github.com/users/craig-warren/repos","events_url":"https://api.github.com/users/craig-warren/events{/privacy}","received_events_url":"https://api.github.com/users/craig-warren/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/gprMax/gprMax/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-09-19T13:45:59Z","updated_at":"2016-09-21T08:47:34Z","closed_at":null,"body":"There is an issue when qt5/pyqt5 is installed via conda, and drawing plots on Windows and Linux. It appears matplotlib by default cannot use qt5 as a backend and tries to use qt4 (which is not installed).\r\n\r\nFor now I have fixed this by forcing the gprMax plotting scripts to use qt5 for matplotlib under Windows or Linux by adding:\r\n\r\n```\r\nimport matplotlib\r\n# Make sure QT5 is used if not on Mac OS X\r\nif sys.platform != 'darwin':\r\n    matplotlib.use('Qt5Agg')\r\n```\r\n\r\nWhen matplotlib resolves this we can remove the above code."},"comment":{"url":"https://api.github.com/repos/gprMax/gprMax/issues/comments/248549689","html_url":"https://github.com/gprMax/gprMax/issues/75#issuecomment-248549689","issue_url":"https://api.github.com/repos/gprMax/gprMax/issues/75","id":248549689,"user":{"login":"craig-warren","id":11279495,"avatar_url":"https://avatars.githubusercontent.com/u/11279495?v=3","gravatar_id":"","url":"https://api.github.com/users/craig-warren","html_url":"https://github.com/craig-warren","followers_url":"https://api.github.com/users/craig-warren/followers","following_url":"https://api.github.com/users/craig-warren/following{/other_user}","gists_url":"https://api.github.com/users/craig-warren/gists{/gist_id}","starred_url":"https://api.github.com/users/craig-warren/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/craig-warren/subscriptions","organizations_url":"https://api.github.com/users/craig-warren/orgs","repos_url":"https://api.github.com/users/craig-warren/repos","events_url":"https://api.github.com/users/craig-warren/events{/privacy}","received_events_url":"https://api.github.com/users/craig-warren/received_events","type":"User","site_admin":false},"created_at":"2016-09-21T08:47:34Z","updated_at":"2016-09-21T08:47:34Z","body":"Issue is with the Anaconda build of matplotlib, discussed at https://github.com/ContinuumIO/anaconda-issues/issues/1068"}}
{"actor":{"display_login":"craig-warren"}}