Title: Error saving file (Qt5 backend) · Issue #3603 · matplotlib/matplotlib · GitHub
Open Graph Title: Error saving file (Qt5 backend) · Issue #3603 · matplotlib/matplotlib
X Title: Error saving file (Qt5 backend) · Issue #3603 · matplotlib/matplotlib
Description: OS: Archlinux Python: 2.7.8 PyQt bindings: 5.3.2-1 Qt: 5.3.2-1 Matplotlib: 1.4.0-2 Steps to reproduce: from matplotlib import pyplot as plt y_data = [....] plt.plot(y_data, 'k+') plt.show() then press the "Save the figure" icon, it shows...
Open Graph Description: OS: Archlinux Python: 2.7.8 PyQt bindings: 5.3.2-1 Qt: 5.3.2-1 Matplotlib: 1.4.0-2 Steps to reproduce: from matplotlib import pyplot as plt y_data = [....] plt.plot(y_data, 'k+') plt.show() then pr...
X Description: OS: Archlinux Python: 2.7.8 PyQt bindings: 5.3.2-1 Qt: 5.3.2-1 Matplotlib: 1.4.0-2 Steps to reproduce: from matplotlib import pyplot as plt y_data = [....] plt.plot(y_data, 'k+') plt.show()...
Mail addresses
notifications@github.com
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/3603
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Error saving file (Qt5 backend)","articleBody":"### \n\nOS: Archlinux\nPython: 2.7.8\nPyQt bindings: 5.3.2-1\nQt: 5.3.2-1\nMatplotlib: 1.4.0-2\n### \n\nSteps to reproduce:\n\nfrom matplotlib import pyplot as plt\ny_data = [....]\nplt.plot(y_data, 'k+')\nplt.show()\n\nthen press the \"Save the figure\" icon, it shows the dialog to write a filename. Then press Save, a model error window will pop-up complaining that \"png)')\" is not a supporte file extension.\n\nDigging further in matplotlib/backend_bases.py (~2098) tries to resolve the extension by\n\n```\n if cbook.is_string_like(filename):\n format = os.path.splitext(filename)[1][1:]\n```\n\nbut filename is this unicode:\nu\"(u'/home/rbm/figure_1.png', u'Portable Network Graphics (*.png)')\"\n\nThis in turn comes from the qt5 backend filters passed in method save_fig of matplotlib/backends/backend_qt5.py :\nEncapsulated Postscript (_.eps);;Joint Photographic Experts Group (_.jpeg _.jpg);;PGF code for LaTeX (_.pgf);;Portable Document Format (_.pdf);;Portable Network Graphics (_.png);;Postscript (_.ps);;Raw RGBA bitmap (_.raw _.rgba);;Scalable Vector Graphics (_.svg _.svgz);;Tagged Image File Format (_.tif *.tiff)\n\nThis will fail for every other format whatever choosed in the Save File dialog.\nI tested the GTK backend and it doesn't have this problem.\n","author":{"url":"https://github.com/skraelings","@type":"Person","name":"skraelings"},"datePublished":"2014-10-01T20:37:54Z","url":"https://github.com/matplotlib/matplotlib/issues/3603"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:0559c763-c707-f640-12df-3773e85a7111 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C1F8:1619FB:1707775:1F2CC51:6B0682B1 |
| html-safe-nonce | 27d8535548e6a66d161d98beaae22cb270355ff7b2497cb1901018c52654b87e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMUY4OjE2MTlGQjoxNzA3Nzc1OjFGMkNDNTE6NkIwNjgyQjEiLCJ2aXNpdG9yX2lkIjoiODYyMTIyOTg2MDExMjk5MDg5NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | f73ee5d190e82ce8c733642bbfa16d9acd82e6043f4e0f1fa8f3c2370e2c529d |
| hovercard-subject-tag | issue:44615862 |
| 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/3603/issue_layout |
| twitter:image | https://opengraph.githubassets.com/82bb2efe92d4fb879113c75a8073293ae0bf4d50d5988afcaad9f44a6212c08f/matplotlib/matplotlib/issues/3603 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/82bb2efe92d4fb879113c75a8073293ae0bf4d50d5988afcaad9f44a6212c08f/matplotlib/matplotlib/issues/3603 |
| og:image:alt | OS: Archlinux Python: 2.7.8 PyQt bindings: 5.3.2-1 Qt: 5.3.2-1 Matplotlib: 1.4.0-2 Steps to reproduce: from matplotlib import pyplot as plt y_data = [....] plt.plot(y_data, 'k+') plt.show() then pr... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | skraelings |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4462ff7ebfd3d551f202659f2423dae617b6849d23b1df6465dc504ef497d14a |
| 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 | 6d3909414814ff86ce7da4c51a0f4918a13fb41b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width