Title: backend_pdf.py fails on 3d plots (1.3.x) · Issue #1933 · matplotlib/matplotlib · GitHub
Open Graph Title: backend_pdf.py fails on 3d plots (1.3.x) · Issue #1933 · matplotlib/matplotlib
X Title: backend_pdf.py fails on 3d plots (1.3.x) · Issue #1933 · matplotlib/matplotlib
Description: Hi I just github'd matplotlib's (1.3.x) version using git clone git://github.com/matplotlib/matplotlib.git and I noted an issue with the backend_pdf.py script In particular the following code else: ##facecolors = np.array(facecolors); ##...
Open Graph Description: Hi I just github'd matplotlib's (1.3.x) version using git clone git://github.com/matplotlib/matplotlib.git and I noted an issue with the backend_pdf.py script In particular the following code else:...
X Description: Hi I just github'd matplotlib's (1.3.x) version using git clone git://github.com/matplotlib/matplotlib.git and I noted an issue with the backend_pdf.py script In particular the following co...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/1933
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"backend_pdf.py fails on 3d plots (1.3.x)","articleBody":"Hi\n\nI just github'd matplotlib's (1.3.x) version using git clone git://github.com/matplotlib/matplotlib.git\n\nand I noted an issue with the backend_pdf.py script\n\nIn particular the following code\n else:\n ##facecolors = np.array(facecolors); ##CRUDE WORKAROUND, NOT IN GITHUB SOURCE\n if np.all(facecolors[:, 3] == facecolors[0, 3]):\n filled = facecolors[0, 3] != 0.0\n else:\n can_do_optimization = False\nwill error since facecolors is a LIST but is treated like an NUMPY.ARRAY\n\nThe commented out code \n ##facecolors = np.array(facecolors);\nis a crude workaround, that will fix this issue if it is uncommented at least in the code below.\n\nThe exact same problem occurs later in the script using the LIST edgecolors\n\nin order to reproduce the bug, one can use the following script, which would throw an error about indexing lists like numpy arrays:\n\nif **name** == '**main**':\n from pylab import *\n\n```\nimport matplotlib\nprint matplotlib.__version__\n\nfrom mpl_toolkits.mplot3d import Axes3D\nfig = figure();\nax = fig.add_subplot(1,1, 1, projection='3d')\nax.view_init(elev = None, azim= -15)\nxs = arange(3)\nts = arange(3);\nX, Y = np.meshgrid(xs, ts)\nFs = X*Y;\nax.plot_surface(X, Y, Fs, cmap=cm.jet,\n linewidth=0, antialiased=False)\nsavefig('testpdf.pdf')\n\nshow()\n```\n","author":{"url":"https://github.com/aviolov","@type":"Person","name":"aviolov"},"datePublished":"2013-04-22T18:03:00.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/1933/matplotlib/issues/1933"}
| 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:af5fe915-6e2c-08d0-1051-d8a4e1b97d15 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B39E:356616:145AA25:1BBF20C:6A545DFE |
| html-safe-nonce | f7430541e57b9e419d2664546bb08fbb9fdd84cfa08f1117e05ef5b1916e51a4 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMzlFOjM1NjYxNjoxNDVBQTI1OjFCQkYyMEM6NkE1NDVERkUiLCJ2aXNpdG9yX2lkIjoiNzA3OTE3MDcyMDYxMDQwOTk4MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 17ae4c710e61678364deccf2c32b982ac5aed58716f63cac686e3780a3d9b836 |
| hovercard-subject-tag | issue:13496905 |
| 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/1933/issue_layout |
| twitter:image | https://opengraph.githubassets.com/29d66d1ee7882bf8263474719d8e7bb4aa940117e30717dac4da57980d03e9dd/matplotlib/matplotlib/issues/1933 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/29d66d1ee7882bf8263474719d8e7bb4aa940117e30717dac4da57980d03e9dd/matplotlib/matplotlib/issues/1933 |
| og:image:alt | Hi I just github'd matplotlib's (1.3.x) version using git clone git://github.com/matplotlib/matplotlib.git and I noted an issue with the backend_pdf.py script In particular the following code else:... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | aviolov |
| 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 | 6d28624802c2f7d9500239dd6870ed7031b7353b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width