Title: Interactivity is fragile · Issue #4732 · matplotlib/matplotlib · GitHub
Open Graph Title: Interactivity is fragile · Issue #4732 · matplotlib/matplotlib
X Title: Interactivity is fragile · Issue #4732 · matplotlib/matplotlib
Description: With the current master, I am finding that interactivity can break in case of errors. This is one example: >>> import matplotlib >>> matplotlib.use("tkagg") >>> from pylab import * >>> figure() Open Graph Description: With the current master, I am finding that interactivity can break in case of errors. This is one example: >>> import matplotlib >>> matplotlib.use("tkagg") >>> from pylab import * >>> figure() X Description: With the current master, I am finding that interactivity can break in case of errors. This is one example: >>> import matplotlib >>> matplotlib.use("tkagg") >>>...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/4732
X: @github
Domain: github.com
Links:
Viewport: width=device-width
Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Interactivity is fragile","articleBody":"With the current master, I am finding that interactivity can break in case of errors.\nThis is one example:\n\n``` python\n\u003e\u003e\u003e import matplotlib\n\u003e\u003e\u003e matplotlib.use(\"tkagg\")\n\u003e\u003e\u003e from pylab import *\n\u003e\u003e\u003e figure()\n\u003cmatplotlib.figure.Figure object at 0x103b03150\u003e\n\u003e\u003e\u003e line, = plot([1,2,3])\n\u003e\u003e\u003e line\n\u003cmatplotlib.lines.Line2D object at 0x108f81350\u003e\n\u003e\u003e\u003e line.set_dashes\n\u003cbound method Line2D.set_dashes of \u003cmatplotlib.lines.Line2D object at 0x108f81350\u003e\u003e\n\u003e\u003e\u003e line.set_dashes('--') # incorrect usage of set_dashes\n\u003e\u003e\u003e Exception in Tkinter callback\nTraceback (most recent call last):\n File \"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk/Tkinter.py\", line 1536, in __call__\n return self.func(*args)\n File \"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk/Tkinter.py\", line 587, in callit\n func(*args)\n File \"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib-1.5.dev1-py2.7-macosx-10.9-x86_64.egg/matplotlib/backends/backend_tkagg.py\", line 370, in idle_draw\n self.draw()\n File \"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib-1.5.dev1-py2.7-macosx-10.9-x86_64.egg/matplotlib/backends/backend_tkagg.py\", line 354, in draw\n FigureCanvasAgg.draw(self)\n File \"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib-1.5.dev1-py2.7-macosx-10.9-x86_64.egg/matplotlib/backends/backend_agg.py\", line 471, in draw\n self.figure.draw(self.renderer)\n File \"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib-1.5.dev1-py2.7-macosx-10.9-x86_64.egg/matplotlib/artist.py\", line 60, in draw_wrapper\n draw(artist, renderer, *args, **kwargs)\n File \"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib-1.5.dev1-py2.7-macosx-10.9-x86_64.egg/matplotlib/figure.py\", line 1119, in draw\n func(*args)\n File \"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib-1.5.dev1-py2.7-macosx-10.9-x86_64.egg/matplotlib/artist.py\", line 60, in draw_wrapper\n draw(artist, renderer, *args, **kwargs)\n File \"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib-1.5.dev1-py2.7-macosx-10.9-x86_64.egg/matplotlib/axes/_base.py\", line 2169, in draw\n a.draw(renderer)\n File \"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib-1.5.dev1-py2.7-macosx-10.9-x86_64.egg/matplotlib/artist.py\", line 60, in draw_wrapper\n draw(artist, renderer, *args, **kwargs)\n File \"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib-1.5.dev1-py2.7-macosx-10.9-x86_64.egg/matplotlib/lines.py\", line 741, in draw\n drawFunc(renderer, gc, tpath, affine.frozen())\n File \"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib-1.5.dev1-py2.7-macosx-10.9-x86_64.egg/matplotlib/lines.py\", line 1154, in _draw_lines\n self._lineFunc(renderer, gc, path, trans)\n File \"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib-1.5.dev1-py2.7-macosx-10.9-x86_64.egg/matplotlib/lines.py\", line 1201, in _draw_dashed\n renderer.draw_path(gc, path, trans)\n File \"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib-1.5.dev1-py2.7-macosx-10.9-x86_64.egg/matplotlib/backends/backend_agg.py\", line 166, in draw_path\n self._renderer.draw_path(gc, path, transform, rgbFace)\nTypeError: a float is required\n\n\u003e\u003e\u003e plot([1,2,4])\n# nothing happens\n\n\u003e\u003e\u003e cla()\n# nothing happens\n```\n\nResizing the figure restores interactivity.\n","author":{"url":"https://github.com/mdehoon","@type":"Person","name":"mdehoon"},"datePublished":"2015-07-17T10:09:01.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":16},"url":"https://github.com/4732/matplotlib/issues/4732"}
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:ac94cd66-487c-0548-7f9b-94a6e1f95986 current-catalog-service-hash 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 request-id B118:13D32C:187B53C:2159E14:6A5238BF html-safe-nonce 0cbf6583da68ec637875ca9ea5848e8dad4309c838f447103ad71b9935612137 visitor-payload eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMTE4OjEzRDMyQzoxODdCNTNDOjIxNTlFMTQ6NkE1MjM4QkYiLCJ2aXNpdG9yX2lkIjoiMjY2MzQxMDk5OTg3MzM4NjY4NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 visitor-hmac faf8c6439c362151556fd1a11a38eb557957bc82e29198b11645290f62b095d8 hovercard-subject-tag issue:95627764 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/4732/issue_layout twitter:image https://opengraph.githubassets.com/14881f84eab570e382308a7834d1273536d7c23811b974758b47823d61063587/matplotlib/matplotlib/issues/4732 twitter:card summary_large_image og:image https://opengraph.githubassets.com/14881f84eab570e382308a7834d1273536d7c23811b974758b47823d61063587/matplotlib/matplotlib/issues/4732 og:image:alt With the current master, I am finding that interactivity can break in case of errors. This is one example: >>> import matplotlib >>> matplotlib.use("tkagg") >>> from pylab import * >>> figure() og:image:width 1200 og:image:height 600 og:site_name GitHub og:type object og:author:username mdehoon 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 7aed05249554b889eb33d002851a973eebcc7e91 ui-target full theme-color #1e2327 color-scheme light dark
URLs of crawlers that visited me.