Title: Nested calls to rc.context() fail · Issue #80 · proplot-dev/proplot · GitHub
Open Graph Title: Nested calls to rc.context() fail · Issue #80 · proplot-dev/proplot
X Title: Nested calls to rc.context() fail · Issue #80 · proplot-dev/proplot
Description: You can end up with persistent changes to the rc object if rc.context() statements are nested. Most notably import proplot as plot with plot.rc.context(...): f, ax = plot.subplots() ax.format(...) fails because ax.format calls rc.context...
Open Graph Description: You can end up with persistent changes to the rc object if rc.context() statements are nested. Most notably import proplot as plot with plot.rc.context(...): f, ax = plot.subplots() ax.format(...) ...
X Description: You can end up with persistent changes to the rc object if rc.context() statements are nested. Most notably import proplot as plot with plot.rc.context(...): f, ax = plot.subplots() ax.format(...) ...
Opengraph URL: https://github.com/proplot-dev/proplot/issues/80
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Nested calls to rc.context() fail","articleBody":"You can end up with persistent changes to the `rc` object if `rc.context()` statements are nested. Most notably\r\n\r\n```python\r\nimport proplot as plot\r\nwith plot.rc.context(...):\r\n f, ax = plot.subplots()\r\n ax.format(...)\r\n```\r\n\r\nfails because `ax.format` calls `rc.context(...)` *internally*. #50 will fix this (I ended up putting some quite tangentially related stuff in that PR... will try to avoid this in the future).","author":{"url":"https://github.com/lukelbd","@type":"Person","name":"lukelbd"},"datePublished":"2019-12-04T14:48:00.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/80/proplot/issues/80"}
| 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:761ba730-a318-492a-4fb1-290e012826e5 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E05A:3F7FF2:177217C:206FA58:697C8E21 |
| html-safe-nonce | 696f566533f934a3e1058f2032b9efd75f1b1392819c1524f82e591a1f3c30d0 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMDVBOjNGN0ZGMjoxNzcyMTdDOjIwNkZBNTg6Njk3QzhFMjEiLCJ2aXNpdG9yX2lkIjoiNjQwMjY2OTA5NDY1ODQxMjA2NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | ebece5c1ed9050ce1c6b0adf03b6dd8bcaca7ce3ff9a13936e87b1dd3effa377 |
| hovercard-subject-tag | issue:532731881 |
| 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/proplot-dev/proplot/80/issue_layout |
| twitter:image | https://opengraph.githubassets.com/1c4e5704b54ad4637e222335ec38ce1da77ba1591e89bf19e924267bbc54767e/proplot-dev/proplot/issues/80 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/1c4e5704b54ad4637e222335ec38ce1da77ba1591e89bf19e924267bbc54767e/proplot-dev/proplot/issues/80 |
| og:image:alt | You can end up with persistent changes to the rc object if rc.context() statements are nested. Most notably import proplot as plot with plot.rc.context(...): f, ax = plot.subplots() ax.format(...) ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | lukelbd |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5bdfd06d077d4bc79a8063f7549f208cda3158f1322903029653dc97f57b937a |
| turbo-cache-control | no-preview |
| go-import | github.com/proplot-dev/proplot git https://github.com/proplot-dev/proplot.git |
| octolytics-dimension-user_id | 108025793 |
| octolytics-dimension-user_login | proplot-dev |
| octolytics-dimension-repository_id | 113293661 |
| octolytics-dimension-repository_nwo | proplot-dev/proplot |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 113293661 |
| octolytics-dimension-repository_network_root_nwo | proplot-dev/proplot |
| 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 | 8c3b5bc6692aa647cb0715885eb2a385b4e8afc8 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width