Title: Sketch params ignored when using PGF backend · Issue #20516 · matplotlib/matplotlib · GitHub
Open Graph Title: Sketch params ignored when using PGF backend · Issue #20516 · matplotlib/matplotlib
X Title: Sketch params ignored when using PGF backend · Issue #20516 · matplotlib/matplotlib
Description: Bug report Bug summary Calls to set_sketch_params() are ignored by the PGF backend and do not have any influence in the resulting pgf or pdf file. Code for reproduction #!/usr/bin/env python3 import matplotlib as mpl import matplotlib.py...
Open Graph Description: Bug report Bug summary Calls to set_sketch_params() are ignored by the PGF backend and do not have any influence in the resulting pgf or pdf file. Code for reproduction #!/usr/bin/env python3 impor...
X Description: Bug report Bug summary Calls to set_sketch_params() are ignored by the PGF backend and do not have any influence in the resulting pgf or pdf file. Code for reproduction #!/usr/bin/env python3 impor...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/20516
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Sketch params ignored when using PGF backend","articleBody":"### Bug report\r\n\r\n**Bug summary**\r\nCalls to `set_sketch_params()` are ignored by the PGF backend and do not have any influence in the resulting pgf or pdf file.\r\n\r\n**Code for reproduction**\r\n\r\n```python\r\n#!/usr/bin/env python3\r\nimport matplotlib as mpl\r\nimport matplotlib.pyplot as plt\r\nmpl.use(\"pgf\")\r\n\r\nmpl.rcParams.update({\r\n 'font.family': 'serif',\r\n 'text.usetex': True,\r\n 'pgf.rcfonts': False,\r\n 'pgf.preamble': [ \r\n # enable this when using PGF backend with pdf output:\r\n #r\"\\usepackage{pgf}\",\r\n #r\"\\usepgfmodule{decorations}\",\r\n #r\"\\usepgflibrary{decorations.pathmorphing}\",\r\n ],\r\n})\r\n\r\nfig = plt.figure()\r\nax = fig.add_subplot(111)\r\nax.plot(range(10))\r\n\r\nax.spines[\"bottom\"].set_sketch_params(scale=5, length=10, randomness=42)\r\n\r\nfig.savefig(f\"foo.pgf\")\r\n#fig.savefig(f\"foo.pdf\")\r\n```\r\n\r\n**Actual outcome**\r\n\r\n\r\n**Expected outcome**\r\n\r\n\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 * Matplotlib version: '3.0.2'\r\n\r\nI am working on a fix for this.","author":{"url":"https://github.com/takimata","@type":"Person","name":"takimata"},"datePublished":"2021-06-25T09:03:26.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/20516/matplotlib/issues/20516"}
| 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:d230f811-c9e8-431d-ef40-9af0894afaff |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9D12:22A568:9000B9:C03B60:6A52909C |
| html-safe-nonce | e2a0b6c4ed088da2fabd008675651c487e4e5f2cbfded2f4ab7bd0feaffb8295 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RDEyOjIyQTU2ODo5MDAwQjk6QzAzQjYwOjZBNTI5MDlDIiwidmlzaXRvcl9pZCI6Ijc1MjU2MjAxMjg1MDkyMzUzNTYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | da000503c360a8fbdf56883cae9df24b8c3764c40ce2bc671b3e5466e58e06f2 |
| hovercard-subject-tag | issue:929984369 |
| 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/20516/issue_layout |
| twitter:image | https://opengraph.githubassets.com/fc7705228d09cb081fe931ad0e32b69e6bc666522e0b4337f5a96e5cb579bdb8/matplotlib/matplotlib/issues/20516 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/fc7705228d09cb081fe931ad0e32b69e6bc666522e0b4337f5a96e5cb579bdb8/matplotlib/matplotlib/issues/20516 |
| og:image:alt | Bug report Bug summary Calls to set_sketch_params() are ignored by the PGF backend and do not have any influence in the resulting pgf or pdf file. Code for reproduction #!/usr/bin/env python3 impor... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | takimata |
| 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