Title: Regression: undocumented change of behaviour in mpl 3.4.2 with axis ticks direction · Issue #20219 · matplotlib/matplotlib · GitHub
Open Graph Title: Regression: undocumented change of behaviour in mpl 3.4.2 with axis ticks direction · Issue #20219 · matplotlib/matplotlib
X Title: Regression: undocumented change of behaviour in mpl 3.4.2 with axis ticks direction · Issue #20219 · matplotlib/matplotlib
Description: Bug report Bug summary Ticks direction set with Axes.tick_params used to be persistent but is now erased by Axes.cla(). Maybe this change is actually intended ? in any case I couldn't find a mention of it in your release notes so I'm con...
Open Graph Description: Bug report Bug summary Ticks direction set with Axes.tick_params used to be persistent but is now erased by Axes.cla(). Maybe this change is actually intended ? in any case I couldn't find a mentio...
X Description: Bug report Bug summary Ticks direction set with Axes.tick_params used to be persistent but is now erased by Axes.cla(). Maybe this change is actually intended ? in any case I couldn't find a me...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/20219
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Regression: undocumented change of behaviour in mpl 3.4.2 with axis ticks direction","articleBody":"### Bug report\r\n\r\n**Bug summary**\r\n\r\nTicks direction set with `Axes.tick_params` used to be persistent but is now erased by `Axes.cla()`.\r\nMaybe this change is actually intended ? in any case I couldn't find a mention of it in your release notes so I'm considering it a bug for now.\r\n\r\n**Code for reproduction**\r\n\r\nI originally detected a regression in yt, see https://github.com/yt-project/yt/issues/3256\r\nI was able to reproduce the change of behaviour with the following minimal script\r\n\r\n```python\r\nimport matplotlib.pyplot as plt\r\n\r\nfrom matplotlib import __version__ as mplver\r\n\r\nfig, ax = plt.subplots()\r\nax.tick_params(direction=\"in\")\r\nax.cla()\r\nfig.savefig(f\"/tmp/mpl_{mplver}_regr.jpg\")\r\n```\r\n\r\n**Actual outcome**\r\n\r\nThis is with matplotlib 3.4.2\r\n\r\n\r\n\r\n**Expected outcome**\r\n\r\nThis is with matplotlib 3.4.1\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 * Operating system: OSX\r\n * Matplotlib version (`import matplotlib; print(matplotlib.__version__)`): see above\r\n * Matplotlib backend (`print(matplotlib.get_backend())`): MaxOSX\r\n * Python version: 3.9\r\n\r\ninstalled from pypi with pip","author":{"url":"https://github.com/neutrinoceros","@type":"Person","name":"neutrinoceros"},"datePublished":"2021-05-13T12:37:36.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":11},"url":"https://github.com/20219/matplotlib/issues/20219"}
| 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:6a10c6a5-35d0-52be-10b7-ee1bd09678c6 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 91BE:1EFAFB:86CB4D:B5B5B9:6A52AC0F |
| html-safe-nonce | 50836fd2252c39548060fac2c95fbf82a3812d5e9c6a3a94f795c1f13d0e0721 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MUJFOjFFRkFGQjo4NkNCNEQ6QjVCNUI5OjZBNTJBQzBGIiwidmlzaXRvcl9pZCI6IjU3MjkwNjU4NjcyODQ3NTM0MjMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 9f07c0246f8f948e6a34180031e8e6b499c8081a5ed159427ff0dbe2646ec0cc |
| hovercard-subject-tag | issue:891004014 |
| 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/20219/issue_layout |
| twitter:image | https://opengraph.githubassets.com/45c78cbb84fbb2d8c58728a01deefddd2f8ab592689ca43253d63772672610d7/matplotlib/matplotlib/issues/20219 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/45c78cbb84fbb2d8c58728a01deefddd2f8ab592689ca43253d63772672610d7/matplotlib/matplotlib/issues/20219 |
| og:image:alt | Bug report Bug summary Ticks direction set with Axes.tick_params used to be persistent but is now erased by Axes.cla(). Maybe this change is actually intended ? in any case I couldn't find a mentio... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | neutrinoceros |
| 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