Title: Vertices clipped for certain markers when plotting more than two points and saving as pdf · Issue #9829 · matplotlib/matplotlib · GitHub
Open Graph Title: Vertices clipped for certain markers when plotting more than two points and saving as pdf · Issue #9829 · matplotlib/matplotlib
X Title: Vertices clipped for certain markers when plotting more than two points and saving as pdf · Issue #9829 · matplotlib/matplotlib
Description: Bug report Bug summary The vertices on certain markers ('^', 'D', 'v') are clipped when using plot() to plot data with more than two points and saving the plot as a PDF. Code for reproduction import matplotlib.pyplot as plt size = 256, 1...
Open Graph Description: Bug report Bug summary The vertices on certain markers ('^', 'D', 'v') are clipped when using plot() to plot data with more than two points and saving the plot as a PDF. Code for reproduction impor...
X Description: Bug report Bug summary The vertices on certain markers ('^', 'D', 'v') are clipped when using plot() to plot data with more than two points and saving the plot as a PDF. Cod...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/9829
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Vertices clipped for certain markers when plotting more than two points and saving as pdf","articleBody":"\u003c!--To help us understand and resolve your issue, please fill out the form to the best of your ability.--\u003e\r\n\u003c!--You can feel free to delete the sections that do not apply.--\u003e\r\n\r\n### Bug report\r\n\r\n**Bug summary**\r\nThe vertices on certain markers ('^', 'D', 'v') are clipped when using `plot()` to plot data with more than two points and saving the plot as a PDF.\r\n\r\n**Code for reproduction**\r\n\r\n\u003c!--A minimum code snippet required to reproduce the bug, also minimizing the number of dependencies required--\u003e\r\n\r\n```python\r\nimport matplotlib.pyplot as plt\r\nsize = 256, 16\r\nfig,ax = plt.subplots()\r\nnum = 3\r\n\r\nfig,ax = plt.subplots()\r\nax.plot([i+1 for i in range(num)],[1 for i in range(num)], '^', markersize=3, markeredgewidth=0.7, color='green', markeredgecolor='black')\r\nax.set_xlim(0, num +1)\r\nax.set_xticks(())\r\nax.set_yticks(())\r\nfig.savefig('test.pdf') # This doesn't work properly.\r\nfig.savefig('test.svg')\r\n```\r\n\r\n**Actual outcome**\r\n\r\n\u003c!--The output produced by the above code, which may be a screenshot, console output, etc.--\u003e\r\n\r\n\r\n\r\n\r\nThe top image is of the marker from the .pdf file. The bottom image is of the marker from the .svg file.\r\n\r\n\r\n**Expected outcome**\r\n\r\n\u003c!--A description of the expected outcome from the code snippet--\u003e\r\n\u003c!--If this used to work in an earlier version of Matplotlib, please note the version it used to work on--\u003e\r\nThe marker in the .pdf file should look like the marker in the .svg file.\r\n\r\n**Matplotlib version**\r\n\u003c!--Please specify your platform and versions of the relevant libraries you are using:--\u003e\r\n * Operating system: Ubuntu 17.04\r\n * Matplotlib version: 2.1.0\r\n * Matplotlib backend (`print(matplotlib.get_backend())`): TkAgg\r\n * Python version: Python 3.5.3\r\n * Jupyter version (if applicable):\r\n * Other libraries: \r\n\r\nI installed matplotlib via pip.\r\n\u003c!--Please tell us how you installed matplotlib and python e.g., from source, pip, conda--\u003e\r\n\u003c!--If you installed from conda, please specify which channel you used if not the default--\u003e\r\n\r\n","author":{"url":"https://github.com/nscottnichols","@type":"Person","name":"nscottnichols"},"datePublished":"2017-11-22T01:37:05.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/9829/matplotlib/issues/9829"}
| 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:15f851e9-9842-357d-7671-49b39676f7e7 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D91C:DFAF2:E4EEC7:138805D:6A5200B5 |
| html-safe-nonce | 4b0cba3196e16939ca929cccfae0d6db8111269cfc0bb46faa2ca6aac0660b1a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEOTFDOkRGQUYyOkU0RUVDNzoxMzg4MDVEOjZBNTIwMEI1IiwidmlzaXRvcl9pZCI6Ijk2MDQxMTQ3NzIyNjk0Njc0MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | fbf5ec76481ca6a67de825785ce8de2cd08cea14b348b1246f97bf6f246a8955 |
| hovercard-subject-tag | issue:275916641 |
| 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/9829/issue_layout |
| twitter:image | https://opengraph.githubassets.com/02a4f1431b992b40dcbb08bb6dc3398ebd0dcb86907ee2487826366dbdbd72c0/matplotlib/matplotlib/issues/9829 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/02a4f1431b992b40dcbb08bb6dc3398ebd0dcb86907ee2487826366dbdbd72c0/matplotlib/matplotlib/issues/9829 |
| og:image:alt | Bug report Bug summary The vertices on certain markers ('^', 'D', 'v') are clipped when using plot() to plot data with more than two points and saving the plot as a PDF. Code for reproduction impor... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | nscottnichols |
| 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 |
Links:
Viewport: width=device-width