Title: Rasterized points not rendering when markeredgecolor is none · Issue #3711 · matplotlib/matplotlib · GitHub
Open Graph Title: Rasterized points not rendering when markeredgecolor is none · Issue #3711 · matplotlib/matplotlib
X Title: Rasterized points not rendering when markeredgecolor is none · Issue #3711 · matplotlib/matplotlib
Description: Points can be rasterized by setting their zorder attribute to a value less than the rasterization_zorder value of the current axes. However, I cannot get this to work if I set markeredgecolor to 'none'. Here is an example: import matplot...
Open Graph Description: Points can be rasterized by setting their zorder attribute to a value less than the rasterization_zorder value of the current axes. However, I cannot get this to work if I set markeredgecolor to 'n...
X Description: Points can be rasterized by setting their zorder attribute to a value less than the rasterization_zorder value of the current axes. However, I cannot get this to work if I set markeredgecolor to ...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/3711
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Rasterized points not rendering when markeredgecolor is none","articleBody":"Points can be rasterized by setting their `zorder` attribute to a value less than the `rasterization_zorder` value of the current axes. However, I cannot get this to work if I set `markeredgecolor` to `'none'`. Here is an example:\n\n``` python\nimport matplotlib.pyplot as plt\nax = plt.subplot(1, 1, 1)\nax.set_rasterization_zorder(0)\n\n# red point, no border\nax.plot(0, 0, linestyle='none', marker='o', markersize=100,\n markerfacecolor='r', markeredgecolor='none', zorder=1)\n\n# rasterized green point, black border\nax.plot(1, 0, linestyle='none', marker='o', markersize=100,\n markerfacecolor='g', markeredgecolor='k', zorder=-1)\n\n# rasterized blue point, no border\nax.plot(2, 0, linestyle='none', marker='o', markersize=100,\n markerfacecolor='b', markeredgecolor='none', zorder=-1)\n\nax.axis([-0.5, 2.5, -1, 1])\nplt.savefig('test.pdf')\n```\n\nEverything works as expected in an interactive window, but the blue point is invisible in the pdf. The only difference between the red point and the blue point is `zorder`, and the only difference between the green point and the blue point is `markeredgecolor`. The invisibility of the blue point in the pdf therefore seems to be caused by a combination of rasterization and not having an edge.\n\nI discovered this while running some old plotting scripts I wrote when I was using matplotlib 1.3 installed via pip for homebrew python on Mac OS 10.6.8. I'm now using anaconda python for Mac OS 10.9, which comes with matplotlib 1.4.1. I feel like there must be some connection with either the updated matplotlib or the anaconda python distribution (after all, my old scripts used to produce the correct output), but I cannot test this without reverting my entire python installation.\n\nDoes anyone know what could be going on here?\n","author":{"url":"https://github.com/jesaerys","@type":"Person","name":"jesaerys"},"datePublished":"2014-10-23T22:07:49Z","url":"https://github.com/matplotlib/matplotlib/issues/3711"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:7de42477-872c-be24-3f46-a4ce9339659c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CB20:2779DA:6A9B54:938E3C:6B06932E |
| html-safe-nonce | ab949d56ab8be0ac91fa834327f7033bc749f926878b9ef41811473540251fb8 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQjIwOjI3NzlEQTo2QTlCNTQ6OTM4RTNDOjZCMDY5MzJFIiwidmlzaXRvcl9pZCI6IjE0ODE1OTM3MTk4MTUwNTAwMzAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | f10c581c137d146c8da303b5ced910a3d20aad5212a023c83e476b24f062e00a |
| hovercard-subject-tag | issue:46683239 |
| 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/3711/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a218457063c0c7f04f0caf6f7d8728f7682b4f7cb9a8f7e5177f961a0bcd62c7/matplotlib/matplotlib/issues/3711 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a218457063c0c7f04f0caf6f7d8728f7682b4f7cb9a8f7e5177f961a0bcd62c7/matplotlib/matplotlib/issues/3711 |
| og:image:alt | Points can be rasterized by setting their zorder attribute to a value less than the rasterization_zorder value of the current axes. However, I cannot get this to work if I set markeredgecolor to 'n... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jesaerys |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4462ff7ebfd3d551f202659f2423dae617b6849d23b1df6465dc504ef497d14a |
| 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 | 6d3909414814ff86ce7da4c51a0f4918a13fb41b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width