Title: pyside2 as qt5 backend · Issue #8618 · matplotlib/matplotlib · GitHub
Open Graph Title: pyside2 as qt5 backend · Issue #8618 · matplotlib/matplotlib
X Title: pyside2 as qt5 backend · Issue #8618 · matplotlib/matplotlib
Description: Bug report Bug summary using Pyside2 as a qt5 backend is failing Code for reproduction import matplotlib; matplotlib.use('Qt5Agg'); matplotlib.rcParams['backend.qt5']='PySide2' import matplotlib.pyplot as plt fig, ax = plt.subplots() Act...
Open Graph Description: Bug report Bug summary using Pyside2 as a qt5 backend is failing Code for reproduction import matplotlib; matplotlib.use('Qt5Agg'); matplotlib.rcParams['backend.qt5']='PySide2' import matplotlib.py...
X Description: Bug report Bug summary using Pyside2 as a qt5 backend is failing Code for reproduction import matplotlib; matplotlib.use('Qt5Agg'); matplotlib.rcParams['backend.qt5']='PySide2...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/8618
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"pyside2 as qt5 backend","articleBody":"### Bug report\r\n\r\n**Bug summary**\r\nusing Pyside2 as a qt5 backend is failing\r\n\r\n**Code for reproduction**\r\n```python\r\nimport matplotlib; matplotlib.use('Qt5Agg'); matplotlib.rcParams['backend.qt5']='PySide2'\r\nimport matplotlib.pyplot as plt\r\nfig, ax = plt.subplots()\r\n```\r\n\r\n**Actual outcome**\r\n```python\r\n fig, ax = plt.subplots()\r\n File \"\u003c...\u003e/lib/python3.6/site-packages/matplotlib/pyplot.py\", line 1189, in subplots\r\n fig = figure(**fig_kw)\r\n File \"\u003c...\u003e/lib/python3.6/site-packages/matplotlib/pyplot.py\", line 544, in figure\r\n **kwargs)\r\n File \"\u003c...\u003e/lib/python3.6/site-packages/matplotlib/backends/backend_qt5agg.py\", line 44, in new_figure_manager\r\n return new_figure_manager_given_figure(num, thisFig)\r\n File \"\u003c...\u003e/lib/python3.6/site-packages/matplotlib/backends/backend_qt5agg.py\", line 51, in new_figure_manager_given_figure\r\n canvas = FigureCanvasQTAgg(figure)\r\n File \"\u003c...\u003e/lib/python3.6/site-packages/matplotlib/backends/backend_qt5agg.py\", line 246, in __init__\r\n super(FigureCanvasQTAgg, self).__init__(figure=figure)\r\n File \"\u003c...\u003e/lib/python3.6/site-packages/matplotlib/backends/backend_qt5agg.py\", line 68, in __init__\r\n super(FigureCanvasQTAggBase, self).__init__(figure=figure)\r\n File \"\u003c...\u003e/lib/python3.6/site-packages/matplotlib/backends/backend_qt5.py\", line 246, in __init__\r\n super(FigureCanvasQT, self).__init__(figure=figure)\r\nAttributeError: 'figure()' is not a Qt property or a signal\r\n```\r\n\r\n**Matplotlib version**\r\n\u003c!--Please specify your platform and versions of the relevant libraries you are using:--\u003e\r\n * Operating System: Ubuntu 17.04\r\n * Matplotlib Version: f1072075db6615954cac2ff0fa44c4d6c7764a23 (latest commit on master)\r\n * Python Version: 3.6.1\r\n * Other Libraries: Qt 5.8.0 + Pyside2\r\n\r\nwhat can I do ?\r\n","author":{"url":"https://github.com/t-bltg","@type":"Person","name":"t-bltg"},"datePublished":"2017-05-14T20:14:01.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/8618/matplotlib/issues/8618"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:35cd2fbf-a106-8f5d-d49a-8809fbfc79d1 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A906:1D011C:63D5E9:84F83D:6A52FDBA |
| html-safe-nonce | c5254e289753c01edcedb8b8a930773aee05d6495f3f04d03a1482cad6efc774 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBOTA2OjFEMDExQzo2M0Q1RTk6ODRGODNEOjZBNTJGREJBIiwidmlzaXRvcl9pZCI6IjcwNzY2MTY1ODQwMzgzMTIyNiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 3b9ed55913795b2f21e3f6a91f0eb25d96448c13eaae8463080c8cdd9d2ad076 |
| hovercard-subject-tag | issue:228566627 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/matplotlib/matplotlib/8618/issue_layout |
| twitter:image | https://opengraph.githubassets.com/887c724e2bec7179656f0b7b110222c1fdde9d2207e171a928b1a711b8e56c6d/matplotlib/matplotlib/issues/8618 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/887c724e2bec7179656f0b7b110222c1fdde9d2207e171a928b1a711b8e56c6d/matplotlib/matplotlib/issues/8618 |
| og:image:alt | Bug report Bug summary using Pyside2 as a qt5 backend is failing Code for reproduction import matplotlib; matplotlib.use('Qt5Agg'); matplotlib.rcParams['backend.qt5']='PySide2' import matplotlib.py... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | t-bltg |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-preview |
| go-import | github.com/matplotlib/matplotlib git https://github.com/matplotlib/matplotlib.git |
| octolytics-dimension-user_id | 215947 |
| octolytics-dimension-user_login | matplotlib |
| octolytics-dimension-repository_id | 1385122 |
| octolytics-dimension-repository_nwo | matplotlib/matplotlib |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1385122 |
| octolytics-dimension-repository_network_root_nwo | matplotlib/matplotlib |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 07a982c1d40157c619b364352b704c3ce66bb332 |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width