Title: Axes3D scatter crashes without alpha keyword · Issue #6698 · matplotlib/matplotlib · GitHub
Open Graph Title: Axes3D scatter crashes without alpha keyword · Issue #6698 · matplotlib/matplotlib
X Title: Axes3D scatter crashes without alpha keyword · Issue #6698 · matplotlib/matplotlib
Description: version: 2.0.0b1+1773.g3590ce2 backend: gtkagg inside an ipython session code snippet is: from mpl_toolkits.mplot3d import Axes3D clf() ax = subplot(111, projection='3d') l1 = ax.scatter([0,0.01,1],[0,0.01,1],[0,0.01,1], c='b') # asc is ...
Open Graph Description: version: 2.0.0b1+1773.g3590ce2 backend: gtkagg inside an ipython session code snippet is: from mpl_toolkits.mplot3d import Axes3D clf() ax = subplot(111, projection='3d') l1 = ax.scatter([0,0.01,1]...
X Description: version: 2.0.0b1+1773.g3590ce2 backend: gtkagg inside an ipython session code snippet is: from mpl_toolkits.mplot3d import Axes3D clf() ax = subplot(111, projection='3d') l1 = ax.scatter([0...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/6698
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Axes3D scatter crashes without alpha keyword","articleBody":"version: 2.0.0b1+1773.g3590ce2\nbackend: gtkagg inside an ipython session\n\ncode snippet is:\n\n``` python\nfrom mpl_toolkits.mplot3d import Axes3D\nclf()\nax = subplot(111, projection='3d')\nl1 = ax.scatter([0,0.01,1],[0,0.01,1],[0,0.01,1], c='b')\n# asc is a 93,3 numpy array of float128\n# if required I can supply this data. \nQ = zip(*asc)\nl2 = ax.scatter(Q[0],Q[1],Q[2], c='b')\n#l2.set_alpha(0.5)\ndraw()\n```\n\nif alpha is not set for l2, then we crash. Visually there's lots of overlap in the l2 marker points. Notably l1 doesn't crash even without an alpha parameter, even though I do see overlap in the two close marker points.\n\n``` pytb\nTraceback (most recent call last):\n File \"/Users/mcj/lib/python2.7/site-packages/matplotlib-2.0.0b1+1773.g3590ce2-py2.7-macosx-10.11-x86_64.egg/matplotlib/backends/backend_gtk.py\", line 443, in expose_event\n self._render_figure(self._pixmap, w, h)\n File \"/Users/mcj/lib/python2.7/site-packages/matplotlib-2.0.0b1+1773.g3590ce2-py2.7-macosx-10.11-x86_64.egg/matplotlib/backends/backend_gtkagg.py\", line 87, in _render_figure\n FigureCanvasAgg.draw(self)\n File \"/Users/mcj/lib/python2.7/site-packages/matplotlib-2.0.0b1+1773.g3590ce2-py2.7-macosx-10.11-x86_64.egg/matplotlib/backends/backend_agg.py\", line 464, in draw\n self.figure.draw(self.renderer)\n File \"/Users/mcj/lib/python2.7/site-packages/matplotlib-2.0.0b1+1773.g3590ce2-py2.7-macosx-10.11-x86_64.egg/matplotlib/artist.py\", line 68, in draw_wrapper\n return draw(artist, renderer, *args, **kwargs)\n File \"/Users/mcj/lib/python2.7/site-packages/matplotlib-2.0.0b1+1773.g3590ce2-py2.7-macosx-10.11-x86_64.egg/matplotlib/figure.py\", line 1262, in draw\n renderer, self, dsu, self.suppressComposite)\n File \"/Users/mcj/lib/python2.7/site-packages/matplotlib-2.0.0b1+1773.g3590ce2-py2.7-macosx-10.11-x86_64.egg/matplotlib/image.py\", line 139, in _draw_list_compositing_images\n a.draw(renderer)\n File \"/Users/mcj/lib/python2.7/site-packages/matplotlib-2.0.0b1+1773.g3590ce2-py2.7-macosx-10.11-x86_64.egg/mpl_toolkits/mplot3d/axes3d.py\", line 272, in draw\n for col in self.collections]\n File \"/Users/mcj/lib/python2.7/site-packages/matplotlib-2.0.0b1+1773.g3590ce2-py2.7-macosx-10.11-x86_64.egg/mpl_toolkits/mplot3d/art3d.py\", line 460, in do_3d_projection\n fcs = mcolors.to_rgba_array(fcs, self._alpha)\n File \"/Users/mcj/lib/python2.7/site-packages/matplotlib-2.0.0b1+1773.g3590ce2-py2.7-macosx-10.11-x86_64.egg/matplotlib/colors.py\", line 227, in to_rgba_array\n result[i] = to_rgba(cc, alpha)\n File \"/Users/mcj/lib/python2.7/site-packages/matplotlib-2.0.0b1+1773.g3590ce2-py2.7-macosx-10.11-x86_64.egg/matplotlib/colors.py\", line 134, in to_rgba\n rgba = _to_rgba_no_colorcycle(c, alpha)\n File \"/Users/mcj/lib/python2.7/site-packages/matplotlib-2.0.0b1+1773.g3590ce2-py2.7-macosx-10.11-x86_64.egg/matplotlib/colors.py\", line 192, in _to_rgba_no_colorcycle\n raise ValueError(\"RGBA values should be within 0-1 range\")\nValueError: RGBA values should be within 0-1 range\n```\n","author":{"url":"https://github.com/kaufman","@type":"Person","name":"kaufman"},"datePublished":"2016-07-06T17:05:55.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/6698/matplotlib/issues/6698"}
| 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:886cc47f-34f3-7cbb-cda2-32b25f25f932 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 89CE:2D3512:1BD0275:24D2290:6A52D6D1 |
| html-safe-nonce | e372bb1da7f857a7c73ba4aef35968aa94cbcd5b83f9c3a9a7ed787cffc17aed |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4OUNFOjJEMzUxMjoxQkQwMjc1OjI0RDIyOTA6NkE1MkQ2RDEiLCJ2aXNpdG9yX2lkIjoiMjU1Njk0MDM3OTgwODI1Nzc0NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 2be97a844a561e8d5190762eb16af28d99ca9552ba67846e5cd3e0c2c0f1cf4f |
| hovercard-subject-tag | issue:164126209 |
| 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/6698/issue_layout |
| twitter:image | https://opengraph.githubassets.com/26c272f47ea1013a8d629aee339a01fb7577b2483c56589b06fa47bed5118aef/matplotlib/matplotlib/issues/6698 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/26c272f47ea1013a8d629aee339a01fb7577b2483c56589b06fa47bed5118aef/matplotlib/matplotlib/issues/6698 |
| og:image:alt | version: 2.0.0b1+1773.g3590ce2 backend: gtkagg inside an ipython session code snippet is: from mpl_toolkits.mplot3d import Axes3D clf() ax = subplot(111, projection='3d') l1 = ax.scatter([0,0.01,1]... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | kaufman |
| 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 | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width