Title: Backend related issues with matplotlib 3.0.0rc1 · Issue #11844 · matplotlib/matplotlib · GitHub
Open Graph Title: Backend related issues with matplotlib 3.0.0rc1 · Issue #11844 · matplotlib/matplotlib
X Title: Backend related issues with matplotlib 3.0.0rc1 · Issue #11844 · matplotlib/matplotlib
Description: I noticed three backend related issues with matplotlib 3.0.0rc1 on Windows: Setting backend = TkAgg in setup.cfg before building wheels, TkAgg does not get enabled as the default backend in the mpl-data/matplotlibrc file. That option has...
Open Graph Description: I noticed three backend related issues with matplotlib 3.0.0rc1 on Windows: Setting backend = TkAgg in setup.cfg before building wheels, TkAgg does not get enabled as the default backend in the mpl...
X Description: I noticed three backend related issues with matplotlib 3.0.0rc1 on Windows: Setting backend = TkAgg in setup.cfg before building wheels, TkAgg does not get enabled as the default backend in the mpl...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/11844
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Backend related issues with matplotlib 3.0.0rc1","articleBody":"I noticed three backend related issues with matplotlib 3.0.0rc1 on Windows:\r\n\r\n1) Setting `backend = TkAgg` in `setup.cfg` before building wheels, TkAgg does not get enabled as the default backend in the `mpl-data/matplotlibrc` file. That option has been removed in https://github.com/matplotlib/matplotlib/commit/56acb0f691f3447f7f15b257b164e0bc431760eb#diff-2eeaed663bd0d25b7e608891384b7298. I am aware this is (sort of) mentioned in the `whats_new` document. TkAgg has always been the default backend in the official binaries for Windows. IMO, this default has been more predictable, reliable (e.g. see issue 2), and faster loading than other backends.\r\n\r\n2) At least on my system with PyQt4 installed, the default backend is unusable:\r\n```Python\r\n\u003e\u003e\u003e from matplotlib import pyplot\r\n\u003e\u003e\u003e pyplot.plot()\r\n[]\r\n\u003e\u003e\u003e pyplot.show()\r\nTraceback (most recent call last):\r\n File \"X:\\Python37\\lib\\site-packages\\matplotlib\\backends\\backend_qt5agg.py\", line 57, in paintEvent\r\n buf, buf.shape[1], buf.shape[0], QtGui.QImage.Format_RGBA8888)\r\nAttributeError: type object 'QImage' has no attribute 'Format_RGBA8888' \r\n```\r\nA window opens but no plot is rendered.\r\n\r\n3) I am unable to print the default backend:\r\n```Python\r\n\u003e\u003e\u003e import matplotlib\r\n\u003e\u003e\u003e print(matplotlib.get_backend())\r\n\u003cobject object at 0x000002928A3FE7A0\u003e \r\n```\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: Windows 10 Pro WS 1803\r\n * Matplotlib version: 3.0.0rc1\r\n * Matplotlib backend (`print(matplotlib.get_backend())`): \u003cobject object at 0x000001F814B0E7A0\u003e\r\n * Python version: Python 3.7.0 (v3.7.0:1bf9cc5093, Jun 27 2018, 04:59:51) [MSC v.1914 64 bit (AMD64)] on win32\r\n * Jupyter version (if applicable):\r\n * Other libraries: \r\n\r\nInstalled from source matplotlib-3.0.0rc1.zip\r\n\r\n","author":{"url":"https://github.com/cgohlke","@type":"Person","name":"cgohlke"},"datePublished":"2018-08-12T06:13:05.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":21},"url":"https://github.com/11844/matplotlib/issues/11844"}
| 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:6605c04d-735e-a81c-b8e8-e736ef0b5ce3 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C070:AE90C:761CF4:A20F77:6A55A9F5 |
| html-safe-nonce | 50164026baf60cae7168e352e4658e46e9c8f2be957bb0588a5a0cc4b4c9a07d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMDcwOkFFOTBDOjc2MUNGNDpBMjBGNzc6NkE1NUE5RjUiLCJ2aXNpdG9yX2lkIjoiNDE2ODY1Mzg4NTg2MTYzNjU5NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | c6b149df213626ddc4d23ea5ae90f26e37aab21f236a1c19344e4642d8a37499 |
| hovercard-subject-tag | issue:349787999 |
| 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/11844/issue_layout |
| twitter:image | https://opengraph.githubassets.com/32540ceb21520a54ebcb64cb1e67d8891ea5cb4c86fa7dd4ab164f8c2d2e35b8/matplotlib/matplotlib/issues/11844 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/32540ceb21520a54ebcb64cb1e67d8891ea5cb4c86fa7dd4ab164f8c2d2e35b8/matplotlib/matplotlib/issues/11844 |
| og:image:alt | I noticed three backend related issues with matplotlib 3.0.0rc1 on Windows: Setting backend = TkAgg in setup.cfg before building wheels, TkAgg does not get enabled as the default backend in the mpl... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | cgohlke |
| hostname | github.com |
| expected-hostname | github.com |
| None | b5665c84831ed9ac4fb79519c16c9c5580ba8092fb8bb6e3e72972ec7197348e |
| 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 | 653fccf1e27344851c0d3de3fa6faa526197f072 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width