Title: ticklabels on log axes sometimes adds overwritten labels on top of existing ones · Issue #8622 · matplotlib/matplotlib · GitHub
Open Graph Title: ticklabels on log axes sometimes adds overwritten labels on top of existing ones · Issue #8622 · matplotlib/matplotlib
X Title: ticklabels on log axes sometimes adds overwritten labels on top of existing ones · Issue #8622 · matplotlib/matplotlib
Description: Bug report For log axes setting the tick labels sometimes just adds new labels on top of the existing ones. Code for reproduction # Paste your code here #Demonstration using the Agg backend, but this also happened for me with others. imp...
Open Graph Description: Bug report For log axes setting the tick labels sometimes just adds new labels on top of the existing ones. Code for reproduction # Paste your code here #Demonstration using the Agg backend, but th...
X Description: Bug report For log axes setting the tick labels sometimes just adds new labels on top of the existing ones. Code for reproduction # Paste your code here #Demonstration using the Agg backend, but th...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/8622
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"ticklabels on log axes sometimes adds overwritten labels on top of existing ones ","articleBody":"### Bug report\r\n\r\nFor log axes setting the tick labels sometimes just adds new labels on top of the existing ones.\r\n\r\n**Code for reproduction**\r\n\r\n\r\n```python\r\n# Paste your code here\r\n#Demonstration using the Agg backend, but this also happened for me with others.\r\nimport matplotlib\r\nmatplotlib.use('agg')\r\nfrom matplotlib import pyplot as plt\r\n\r\n# Some data I found that triggered this bug\r\nx = [100,200,300,400,500,600,700,800,900,1000]\r\ny = [ 1.7, 1.2, 0.98, 0.87, 0.76, 0.69, 0.62, 0.59, 0.56, 0.51]\r\n\r\n#Only seems to happen for a log axis. Same error if you do semilogy\r\nplt.loglog(x, y)\r\n#This does not seem to replace the old tick labels, just add new ones\r\nplt.yticks([0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 2.0], [\"0.5\", \"0.6\", \"0.7\", \"0.8\", \"0.9\", \"1.0\", \"2.0\"])\r\nplt.savefig(\"test.png\")\r\n```\r\n\r\n**Actual outcome**\r\n\r\n\r\n\r\n\r\n**Expected outcome**\r\nRemoval of the old tick labels as well as adding the new ones.\r\n\r\n**Matplotlib version**\r\n\r\n * Operating System: MacOS Sierra 10.12.4\r\n * Matplotlib Version: 2.0.2\r\n * Python Version: 2.7.13\r\n * Jupyter Version (if applicable): N/A \r\n * Other Libraries: N/a\r\n\r\nI used pip to install matplotlib and it downloaded `matplotlib-2.0.2-cp27-cp27m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl`\r\n\r\n\r\n","author":{"url":"https://github.com/joezuntz","@type":"Person","name":"joezuntz"},"datePublished":"2017-05-15T13:58:07.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/8622/matplotlib/issues/8622"}
| 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:e7a34626-b006-e3fd-4113-e92e5831afa9 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BEFE:200B2E:408B26:55C6D0:6A52F076 |
| html-safe-nonce | eb6b865e6fea21be98bc240098f51cdf1ecf5e40c0235747ccc44eebac6140f6 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRUZFOjIwMEIyRTo0MDhCMjY6NTVDNkQwOjZBNTJGMDc2IiwidmlzaXRvcl9pZCI6IjM0NjI0MjU4ODkzMjQ4NTU0MTQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 09479cc42cb3cd8d8482b9ffd67d9e8d56fc51de1e7c879ba21e85e5ecda0ad0 |
| hovercard-subject-tag | issue:228723899 |
| 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/8622/issue_layout |
| twitter:image | https://opengraph.githubassets.com/cfb7d4e18b7e8aed2e8a2af28b2fc4935713c7fbc96a4b72394cf7d1ca378095/matplotlib/matplotlib/issues/8622 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/cfb7d4e18b7e8aed2e8a2af28b2fc4935713c7fbc96a4b72394cf7d1ca378095/matplotlib/matplotlib/issues/8622 |
| og:image:alt | Bug report For log axes setting the tick labels sometimes just adds new labels on top of the existing ones. Code for reproduction # Paste your code here #Demonstration using the Agg backend, but th... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | joezuntz |
| 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