Title: Document how to distribute style files in python packages · Issue #17978 · matplotlib/matplotlib · GitHub
Open Graph Title: Document how to distribute style files in python packages · Issue #17978 · matplotlib/matplotlib
X Title: Document how to distribute style files in python packages · Issue #17978 · matplotlib/matplotlib
Description: Bug report Style files (actually, style dicts) can be distributed as python packages, as discussed e.g. in #14943 (comment). This has the advantage of being relatively easy to do and that it works "as is" for essentially all versions of ...
Open Graph Description: Bug report Style files (actually, style dicts) can be distributed as python packages, as discussed e.g. in #14943 (comment). This has the advantage of being relatively easy to do and that it works ...
X Description: Bug report Style files (actually, style dicts) can be distributed as python packages, as discussed e.g. in #14943 (comment). This has the advantage of being relatively easy to do and that it works ...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/17978
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Document how to distribute style files in python packages","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\nStyle files (actually, style *dicts*) can be distributed as python packages, as discussed e.g. in https://github.com/matplotlib/matplotlib/pull/14943#issuecomment-517321236. This has the advantage of being relatively easy to do and that it works \"as is\" for essentially all versions of matplotlib (if your matplotlib is too old to have `matplotlib.style.use` (pre 1.5...) you can still use `rcParams.update(style_dict)`).\r\n\r\nIn today's call we agreed that this approach should be documented and that a template package (similar to https://github.com/matplotlib/matplotlib-cmap-template) could be created.\r\n\r\nIt was also pointed out during the call that this approach makes it easy to distribute colormaps together with the style, or add any additional custom logic; this may be worth documenting too.","author":{"url":"https://github.com/anntzer","@type":"Person","name":"anntzer"},"datePublished":"2020-07-20T20:33:30.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/17978/matplotlib/issues/17978"}
| 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:d5d79d70-9e21-c068-a5aa-b88e7561dfef |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 878E:18EF60:6B43BE:8FDEF1:6A52A24F |
| html-safe-nonce | 53d6e709bff6d98c77f8b2dd9b80f28ae5adffd49a7dfabf5eaf547a2e24bbd4 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NzhFOjE4RUY2MDo2QjQzQkU6OEZERUYxOjZBNTJBMjRGIiwidmlzaXRvcl9pZCI6IjMwOTEzNTcxNDc0OTUzMDk5MDMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | c4618026c23222f0de8d773977c4ec435df4c61d0f2f2782a1555a15412c3bbc |
| hovercard-subject-tag | issue:662235763 |
| 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/17978/issue_layout |
| twitter:image | https://opengraph.githubassets.com/5eaef02f4766da23fef614b2e5fd4d83fff8790e8de823ae06f105738a6cd201/matplotlib/matplotlib/issues/17978 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/5eaef02f4766da23fef614b2e5fd4d83fff8790e8de823ae06f105738a6cd201/matplotlib/matplotlib/issues/17978 |
| og:image:alt | Bug report Style files (actually, style dicts) can be distributed as python packages, as discussed e.g. in #14943 (comment). This has the advantage of being relatively easy to do and that it works ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | anntzer |
| 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