Title: MacOSX backend breaks for matplotlib 1.4 after importing seaborn · Issue #3470 · matplotlib/matplotlib · GitHub
Open Graph Title: MacOSX backend breaks for matplotlib 1.4 after importing seaborn · Issue #3470 · matplotlib/matplotlib
X Title: MacOSX backend breaks for matplotlib 1.4 after importing seaborn · Issue #3470 · matplotlib/matplotlib
Description: Reported also in mwaskom/seaborn#282 Environment: OS X Mavericks Anaconda python distribution (python 2.7.8) IPython 2.2.0 Seaborn 0.4 In an ipython terminal or qtconsole, it works with running n [1]: %matplotlib Using matplotlib backend...
Open Graph Description: Reported also in mwaskom/seaborn#282 Environment: OS X Mavericks Anaconda python distribution (python 2.7.8) IPython 2.2.0 Seaborn 0.4 In an ipython terminal or qtconsole, it works with running n [...
X Description: Reported also in mwaskom/seaborn#282 Environment: OS X Mavericks Anaconda python distribution (python 2.7.8) IPython 2.2.0 Seaborn 0.4 In an ipython terminal or qtconsole, it works with running n [...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/3470
X: @github
Domain: github.com
IPv4 address: 140.82.112.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"MacOSX backend breaks for matplotlib 1.4 after importing seaborn","articleBody":"Reported also in mwaskom/seaborn#282\n\nEnvironment: OS X Mavericks\nAnaconda python distribution (python 2.7.8)\nIPython 2.2.0\nSeaborn 0.4\n\nIn an ipython terminal or qtconsole, it works with running \n\n``` shell\nn [1]: %matplotlib\nUsing matplotlib backend: MacOSX\n\nIn [2]: from pylab import *\n\nIn [3]: plot(range(5))\nOut[3]: [\u003cmatplotlib.lines.Line2D at 0x10d73dd50>]\n```\n\nHowever, after importing seaborn, the macosx backend breaks\n\n``` shell\nIn [4]: import seaborn as sns\n\nIn [5]: plot(range(5))\nOut[5]: [\u003cmatplotlib.lines.Line2D at 0x10c10eb90>]\n\nIn [6]: Traceback (most recent call last):\n File \"/Users/zhangxiaowei/anaconda/lib/python2.7/site-packages/matplotlib/artist.py\", line 59, in draw_wrapper\n draw(artist, renderer, *args, **kwargs)\n File \"/Users/zhangxiaowei/anaconda/lib/python2.7/site-packages/matplotlib/figure.py\", line 1079, in draw\n func(*args)\n File \"/Users/zhangxiaowei/anaconda/lib/python2.7/site-packages/matplotlib/artist.py\", line 59, in draw_wrapper\n draw(artist, renderer, *args, **kwargs)\n File \"/Users/zhangxiaowei/anaconda/lib/python2.7/site-packages/matplotlib/axes/_base.py\", line 2092, in draw\n a.draw(renderer)\n File \"/Users/zhangxiaowei/anaconda/lib/python2.7/site-packages/matplotlib/artist.py\", line 59, in draw_wrapper\n draw(artist, renderer, *args, **kwargs)\n File \"/Users/zhangxiaowei/anaconda/lib/python2.7/site-packages/matplotlib/axis.py\", line 1105, in draw\n renderer)\n File \"/Users/zhangxiaowei/anaconda/lib/python2.7/site-packages/matplotlib/axis.py\", line 1054, in _get_tick_bboxes\n extent = tick.label1.get_window_extent(renderer)\n File \"/Users/zhangxiaowei/anaconda/lib/python2.7/site-packages/matplotlib/text.py\", line 741, in get_window_extent\n bbox, info, descent = self._get_layout(self._renderer)\n File \"/Users/zhangxiaowei/anaconda/lib/python2.7/site-packages/matplotlib/text.py\", line 311, in _get_layout\n ismath=False)\n File \"/Users/zhangxiaowei/anaconda/lib/python2.7/site-packages/matplotlib/backends/backend_macosx.py\", line 166, in get_text_width_height_descent\n six.text_type(s), family, size, weight, style)\nTypeError: bad argument type for built-in operation\n```\n\nInterestingly, using `%matplotlib inline` in an IPython notebook works fine. Also, using another backend such as \"Qt4Agg\" works fine in IPython terminal or qtconsole.\n\nAfter downgrading matplotlib to 1.3.1, the issue goes away.\n","author":{"url":"https://github.com/xiaoweiz","@type":"Person","name":"xiaoweiz"},"datePublished":"2014-09-05T03:09:13Z","url":"https://github.com/matplotlib/matplotlib/issues/3470"}
| 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:c85507c6-1da6-94a4-97e3-f47f600676c7 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E0B4:C35D8:19CDDF8:2268221:6B06831C |
| html-safe-nonce | f9ebfb8a33c1bf053f6f6defc1f36c00ae63047f804dc840241284a25beb773f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMEI0OkMzNUQ4OjE5Q0RERjg6MjI2ODIyMTo2QjA2ODMxQyIsInZpc2l0b3JfaWQiOiI0MjU0NDA2Mzk5NzQ2Mjc4MTcyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | ad4bcda99db14f05d9ef3a865f86aeebf01c97fc4986fb50a883bb3a9e15705c |
| hovercard-subject-tag | issue:42009296 |
| 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/3470/issue_layout |
| twitter:image | https://opengraph.githubassets.com/730658d554a99ad10617ae2446da1e89f19ca2aa478af585f315e7e49b5d06e2/matplotlib/matplotlib/issues/3470 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/730658d554a99ad10617ae2446da1e89f19ca2aa478af585f315e7e49b5d06e2/matplotlib/matplotlib/issues/3470 |
| og:image:alt | Reported also in mwaskom/seaborn#282 Environment: OS X Mavericks Anaconda python distribution (python 2.7.8) IPython 2.2.0 Seaborn 0.4 In an ipython terminal or qtconsole, it works with running n [... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | xiaoweiz |
| 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