{"action":"created","issue":{"url":"https://api.github.com/repos/matplotlib/matplotlib/issues/3623","labels_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/3623/labels{/name}","comments_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/3623/comments","events_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/3623/events","html_url":"https://github.com/matplotlib/matplotlib/issues/3623","id":45176882,"number":3623,"title":"Qt5 backend doesn't work with Qt 5.3","user":{"login":"jenshnielsen","id":548266,"avatar_url":"https://avatars.githubusercontent.com/u/548266?v=3","gravatar_id":"","url":"https://api.github.com/users/jenshnielsen","html_url":"https://github.com/jenshnielsen","followers_url":"https://api.github.com/users/jenshnielsen/followers","following_url":"https://api.github.com/users/jenshnielsen/following{/other_user}","gists_url":"https://api.github.com/users/jenshnielsen/gists{/gist_id}","starred_url":"https://api.github.com/users/jenshnielsen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jenshnielsen/subscriptions","organizations_url":"https://api.github.com/users/jenshnielsen/orgs","repos_url":"https://api.github.com/users/jenshnielsen/repos","events_url":"https://api.github.com/users/jenshnielsen/events{/privacy}","received_events_url":"https://api.github.com/users/jenshnielsen/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/matplotlib/matplotlib/milestones/16","html_url":"https://github.com/matplotlib/matplotlib/milestones/v1.4.1","labels_url":"https://api.github.com/repos/matplotlib/matplotlib/milestones/16/labels","id":776554,"number":16,"title":"v1.4.1","description":"First bug-fix release for the 1.4 series.","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":0,"closed_issues":57,"state":"closed","created_at":"2014-09-03T09:47:33Z","updated_at":"2014-10-18T22:21:09Z","due_on":"2014-10-01T07:00:00Z","closed_at":"2014-10-18T22:21:09Z"},"comments":19,"created_at":"2014-10-07T22:11:54Z","updated_at":"2016-01-06T18:14:38Z","closed_at":"2014-10-13T15:43:58Z","body":"I have previously had the Qt5 backend working with mpl 1.4.0 however It seems broken to me now. \r\nTrying to do a simple plot with plt.plot results in \r\n\r\n```python\r\n---------------------------------------------------------------------------\r\nTypeError                                 Traceback (most recent call last)\r\n<ipython-input-4-bf7ca2578bf6> in <module>()\r\n----> 1 plt.plot(range(100))\r\n\r\n/usr/local/Cellar/python3/3.4.1_1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/matplotlib-1.5.x-py3.4-macosx-10.9-x86_64.egg/matplotlib/pyplot.py in plot(*args, **kwargs)\r\n   3089 @_autogen_docstring(Axes.plot)\r\n   3090 def plot(*args, **kwargs):\r\n-> 3091     ax = gca()\r\n   3092     # allow callers to override the hold state by passing hold=True|False\r\n   3093     washold = ax.ishold()\r\n\r\n/usr/local/Cellar/python3/3.4.1_1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/matplotlib-1.5.x-py3.4-macosx-10.9-x86_64.egg/matplotlib/pyplot.py in gca(**kwargs)\r\n    826     matplotlib.figure.Figure.gca : The figure's gca method.\r\n    827     \"\"\"\r\n--> 828     ax =  gcf().gca(**kwargs)\r\n    829     return ax\r\n    830\r\n\r\n/usr/local/Cellar/python3/3.4.1_1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/matplotlib-1.5.x-py3.4-macosx-10.9-x86_64.egg/matplotlib/pyplot.py in gcf()\r\n    460         return figManager.canvas.figure\r\n    461     else:\r\n--> 462         return figure()\r\n    463\r\n    464 fignum_exists = _pylab_helpers.Gcf.has_fignum\r\n\r\n/usr/local/Cellar/python3/3.4.1_1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/matplotlib-1.5.x-py3.4-macosx-10.9-x86_64.egg/matplotlib/pyplot.py in figure(num, figsize, dpi, facecolor, edgecolor, frameon, FigureClass, **kwargs)\r\n    433                                         frameon=frameon,\r\n    434                                         FigureClass=FigureClass,\r\n--> 435                                         **kwargs)\r\n    436\r\n    437         if figLabel:\r\n\r\n/usr/local/Cellar/python3/3.4.1_1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/matplotlib-1.5.x-py3.4-macosx-10.9-x86_64.egg/matplotlib/backends/backend_qt5agg.py in new_figure_manager(num, *args, **kwargs)\r\n     46     FigureClass = kwargs.pop('FigureClass', Figure)\r\n     47     thisFig = FigureClass(*args, **kwargs)\r\n---> 48     return new_figure_manager_given_figure(num, thisFig)\r\n     49\r\n     50\r\n\r\n/usr/local/Cellar/python3/3.4.1_1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/matplotlib-1.5.x-py3.4-macosx-10.9-x86_64.egg/matplotlib/backends/backend_qt5agg.py in new_figure_manager_given_figure(num, figure)\r\n     53     Create a new figure manager instance for the given figure.\r\n     54     \"\"\"\r\n---> 55     canvas = FigureCanvasQTAgg(figure)\r\n     56     return FigureManagerQT(canvas, num)\r\n     57\r\n\r\n/usr/local/Cellar/python3/3.4.1_1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/matplotlib-1.5.x-py3.4-macosx-10.9-x86_64.egg/matplotlib/backends/backend_qt5agg.py in __init__(self, figure)\r\n    179         if DEBUG:\r\n    180             print('FigureCanvasQtAgg: ', figure)\r\n--> 181         FigureCanvasQT.__init__(self, figure)\r\n    182         FigureCanvasAgg.__init__(self, figure)\r\n    183         self._drawRect = None\r\n\r\n/usr/local/Cellar/python3/3.4.1_1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/matplotlib-1.5.x-py3.4-macosx-10.9-x86_64.egg/matplotlib/backends/backend_qt5.py in __init__(self, figure)\r\n    235         # __init__() takes exactly 2 arguments (1 given) on QWidget\r\n    236         # PyQt5\r\n--> 237         super(FigureCanvasQT, self).__init__(figure=figure)\r\n    238         self.figure = figure\r\n    239         self.setMouseTracking(True)\r\n\r\nTypeError: 'figure' is an unknown keyword argument\r\n```\r\n\r\nThis is naturally because QtWidgets.QWidget does not take a ```figure``` keyword argument. Removing the kwarg seems to resolve the issue with a simple figure. But I am unsure if the intention of this line is to call init on QtWidgets.QWidget or FigureCanvasBase which does take that kwarg. \r\n\r\nSince this has working before I guess that this is somehow related to me upgrading to Qt5.3. \r\nThe traceback above is from the master branch but the same seems to happen with 1.4.0\r\n"},"comment":{"url":"https://api.github.com/repos/matplotlib/matplotlib/issues/comments/169408236","html_url":"https://github.com/matplotlib/matplotlib/issues/3623#issuecomment-169408236","issue_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/3623","id":169408236,"user":{"login":"fccoelho","id":140123,"avatar_url":"https://avatars.githubusercontent.com/u/140123?v=3","gravatar_id":"","url":"https://api.github.com/users/fccoelho","html_url":"https://github.com/fccoelho","followers_url":"https://api.github.com/users/fccoelho/followers","following_url":"https://api.github.com/users/fccoelho/following{/other_user}","gists_url":"https://api.github.com/users/fccoelho/gists{/gist_id}","starred_url":"https://api.github.com/users/fccoelho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fccoelho/subscriptions","organizations_url":"https://api.github.com/users/fccoelho/orgs","repos_url":"https://api.github.com/users/fccoelho/repos","events_url":"https://api.github.com/users/fccoelho/events{/privacy}","received_events_url":"https://api.github.com/users/fccoelho/received_events","type":"User","site_admin":false},"created_at":"2016-01-06T18:14:38Z","updated_at":"2016-01-06T18:14:38Z","body":"Yes I am.\n\nOn Wed, Jan 6, 2016 at 3:37 PM, Thomas A Caswell <notifications@github.com>\nwrote:\n\n> Are you calling use before you import pyplot?\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/matplotlib/matplotlib/issues/3623#issuecomment-169399164>\n> .\n>\n\n\n\n-- \nFlávio Codeço Coelho\n================\n+55(21) 3799-5551\nProfessor\nEscola de Matemática Aplicada\nFundação Getulio Vargas\nPraia de Botafogo, 190 sala 312\nRio de Janeiro - RJ\n22250-900\nBrasil\n"}}