Title: [BUG] Aliasing and filling defects · Issue #366 · plotters-rs/plotters · GitHub
Open Graph Title: [BUG] Aliasing and filling defects · Issue #366 · plotters-rs/plotters
X Title: [BUG] Aliasing and filling defects · Issue #366 · plotters-rs/plotters
Description: Describe the bug The anti-alias algorithm seems to be wrapping in the horizontal direction. As a consequence, the images below show artifacts. Additionally, the antialias pixels do not cover the circles uniformly. They are even absent at...
Open Graph Description: Describe the bug The anti-alias algorithm seems to be wrapping in the horizontal direction. As a consequence, the images below show artifacts. Additionally, the antialias pixels do not cover the ci...
X Description: Describe the bug The anti-alias algorithm seems to be wrapping in the horizontal direction. As a consequence, the images below show artifacts. Additionally, the antialias pixels do not cover the ci...
Opengraph URL: https://github.com/plotters-rs/plotters/issues/366
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[BUG] Aliasing and filling defects","articleBody":"**Describe the bug**\r\nThe anti-alias algorithm seems to be wrapping in the horizontal direction. As a consequence, the images below show artifacts.\r\n\r\nAdditionally, the antialias pixels do not cover the circles uniformly. They are even absent at some angles.\r\n\r\nFinally, there are additional lines on the filled circle to the right.\r\n\r\n**To Reproduce**\r\nThe following two examples come from 0f2d3d8:\r\n\r\n```rust\r\nuse plotters::prelude::*;\r\nlet drawing_area = BitMapBackend::new(\"shape_style_filled.png\", (400, 200)).into_drawing_area();\r\nlet original_style = ShapeStyle {\r\n color: GREEN.mix(0.8),\r\n filled: false,\r\n stroke_width: 2,\r\n};\r\nlet filled_style = original_style.filled();\r\ndrawing_area.draw(\u0026Circle::new((100, 100), 120, original_style));\r\ndrawing_area.draw(\u0026Circle::new((300, 100), 120, filled_style));\r\n```\r\n\r\n\r\n\r\n```rust\r\nuse plotters::prelude::*;\r\nlet drawing_area = BitMapBackend::new(\"shape_style_stroke_width.png\", (400, 200)).into_drawing_area();\r\nlet original_style = ShapeStyle {\r\n color: GREEN.mix(0.8),\r\n filled: false,\r\n stroke_width: 2,\r\n};\r\nlet new_style = original_style.stroke_width(5);\r\ndrawing_area.draw(\u0026Circle::new((100, 100), 120, original_style));\r\ndrawing_area.draw(\u0026Circle::new((300, 100), 120, new_style));\r\n```\r\n\r\n\r\n\r\n**Version Information**\r\nUsing Plotters from the GitHub master\r\n\r\nThe examples above use the `BitMapBackend`. The `SVGBackend` seems unaffected.\r\n\r\n**See also**\r\n#128","author":{"url":"https://github.com/facorread","@type":"Person","name":"facorread"},"datePublished":"2022-06-14T04:29:31.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/366/plotters/issues/366"}
| 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:021dbd8b-d717-0dc4-000c-7df0f0dee867 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C24A:3265A:39DE98:4C5012:6A595B28 |
| html-safe-nonce | 3863020b875f480ee00a80afaab0d82c5c0ccb3a32f19eb6cdf138e06aa5f395 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMjRBOjMyNjVBOjM5REU5ODo0QzUwMTI6NkE1OTVCMjgiLCJ2aXNpdG9yX2lkIjoiMjI5NTUyMTg0ODEwMzM2MTMyMCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 20646fce8c41d1e0cc828ff3252382cff8901520b2ca87ac3bd8750561b52c6f |
| hovercard-subject-tag | issue:1270233895 |
| 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/plotters-rs/plotters/366/issue_layout |
| twitter:image | https://opengraph.githubassets.com/88dccc2b336a212b93f47501c48404fa95fbd4026dfe79d450250ee27d46f0ed/plotters-rs/plotters/issues/366 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/88dccc2b336a212b93f47501c48404fa95fbd4026dfe79d450250ee27d46f0ed/plotters-rs/plotters/issues/366 |
| og:image:alt | Describe the bug The anti-alias algorithm seems to be wrapping in the horizontal direction. As a consequence, the images below show artifacts. Additionally, the antialias pixels do not cover the ci... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | facorread |
| hostname | github.com |
| expected-hostname | github.com |
| None | a540949572872b935b393b36db38922db390ae71c859537d741b8f3eb7e545b5 |
| turbo-cache-control | no-preview |
| go-import | github.com/plotters-rs/plotters git https://github.com/plotters-rs/plotters.git |
| octolytics-dimension-user_id | 51801576 |
| octolytics-dimension-user_login | plotters-rs |
| octolytics-dimension-repository_id | 183275571 |
| octolytics-dimension-repository_nwo | plotters-rs/plotters |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 183275571 |
| octolytics-dimension-repository_network_root_nwo | plotters-rs/plotters |
| 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 | f4669eb12cd81bf213b8907a42667725d1583c79 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width