Title: 'Poly3DCollection' object has no attribute '_facecolors2d' · Issue #4067 · matplotlib/matplotlib · GitHub
Open Graph Title: 'Poly3DCollection' object has no attribute '_facecolors2d' · Issue #4067 · matplotlib/matplotlib
X Title: 'Poly3DCollection' object has no attribute '_facecolors2d' · Issue #4067 · matplotlib/matplotlib
Description: The following minimal example demonstrates the issue: import numpy as np import matplotlib.tri as mtri import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import Axes3D y,x = np.ogrid[1:10:100j, 1:10:100j] z2 = np.cos(x)**3 - np.si...
Open Graph Description: The following minimal example demonstrates the issue: import numpy as np import matplotlib.tri as mtri import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import Axes3D y,x = np.ogrid[1:10:10...
X Description: The following minimal example demonstrates the issue: import numpy as np import matplotlib.tri as mtri import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import Axes3D y,x = np.ogrid[1:10:10...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/4067
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"'Poly3DCollection' object has no attribute '_facecolors2d'","articleBody":"The following minimal example demonstrates the issue:\n\n```\nimport numpy as np\nimport matplotlib.tri as mtri\nimport matplotlib.pyplot as plt\nfrom mpl_toolkits.mplot3d import Axes3D\n\ny,x = np.ogrid[1:10:100j, 1:10:100j]\nz2 = np.cos(x)**3 - np.sin(y)**2\nfig = plt.figure()\nax = fig.add_subplot(111, projection='3d')\nr = ax.plot_surface(x,y,z2, cmap='hot')\nr.get_facecolors()\n```\n\nIt fails on the last line with the following traceback:\n\n```\nAttributeError Traceback (most recent call last)\n\u003cipython-input-13-de0f41d662cd\u003e in \u003cmodule\u003e()\n----\u003e 1 r.get_facecolors()\n\n/home/oliver/.virtualenvs/mpl/local/lib/python2.7/site-packages/mpl_toolkits/mplot3d/art3d.pyc in get_facecolors(self)\n 634\n 635 def get_facecolors(self):\n--\u003e 636 return self._facecolors2d\n 637 get_facecolor = get_facecolors\n 638\n\nAttributeError: 'Poly3DCollection' object has no attribute '_facecolors2d'\n```\n\nTested with mpl versions 1.3.1 and 1.4.2.\n\nSent here by Benjamin, from the mpl users mailing list (mail with the same title). Sorry for dumping this without more assistance, I'm not yet at a python level where I can help in debugging, I think (well, it seems daunting).\n","author":{"url":"https://github.com/oliverw1","@type":"Person","name":"oliverw1"},"datePublished":"2015-02-05T22:10:25.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":15},"url":"https://github.com/4067/matplotlib/issues/4067"}
| 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:31c48e59-b6b8-f31e-ff6c-ecc93f73485c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | ED98:2A0FAF:20154A9:2BB1F10:6A541279 |
| html-safe-nonce | b6baba5e85cfd5f056790016658f6fc0c1361de215df75f0b1c5314953bdd6e4 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFRDk4OjJBMEZBRjoyMDE1NEE5OjJCQjFGMTA6NkE1NDEyNzkiLCJ2aXNpdG9yX2lkIjoiMzc5NjY0MjI2NTU2NjU0ODYwMSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | dd00ef1012591cfbd0b2a1c1a1e0b5d97e216b3bf36e4136e219bb92ccbb176c |
| hovercard-subject-tag | issue:56737781 |
| 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/4067/issue_layout |
| twitter:image | https://opengraph.githubassets.com/9cb3c761bb7c41ddf221fabb7f1a60fdfd2e8633199a8fa685f5f5da34ecbbc4/matplotlib/matplotlib/issues/4067 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/9cb3c761bb7c41ddf221fabb7f1a60fdfd2e8633199a8fa685f5f5da34ecbbc4/matplotlib/matplotlib/issues/4067 |
| og:image:alt | The following minimal example demonstrates the issue: import numpy as np import matplotlib.tri as mtri import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import Axes3D y,x = np.ogrid[1:10:10... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | oliverw1 |
| 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