Title: First item not displayed with FixedFormatter · Issue #7122 · matplotlib/matplotlib · GitHub
Open Graph Title: First item not displayed with FixedFormatter · Issue #7122 · matplotlib/matplotlib
X Title: First item not displayed with FixedFormatter · Issue #7122 · matplotlib/matplotlib
Description: Tested on matplotib 1.5.1 on OSX, pip installation. Not sure about regression but I never noticed this behavior before. Expected behavior: plt.figure(figsize=(6, 4)) ax = plt.subplot(1, 1, 1) ax.set_xlim(0, 2) plt.show() Bad: Extends the...
Open Graph Description: Tested on matplotib 1.5.1 on OSX, pip installation. Not sure about regression but I never noticed this behavior before. Expected behavior: plt.figure(figsize=(6, 4)) ax = plt.subplot(1, 1, 1) ax.se...
X Description: Tested on matplotib 1.5.1 on OSX, pip installation. Not sure about regression but I never noticed this behavior before. Expected behavior: plt.figure(figsize=(6, 4)) ax = plt.subplot(1, 1, 1) ax.se...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/7122
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"First item not displayed with FixedFormatter","articleBody":"Tested on matplotib 1.5.1 on OSX, pip installation. Not sure about regression but I never noticed this behavior before.\n\n**Expected behavior**:\n\n```\nplt.figure(figsize=(6, 4))\nax = plt.subplot(1, 1, 1)\nax.set_xlim(0, 2)\nplt.show()\n```\n\n\n\n**Bad**: Extends the x limit for unknown reason\n\n```\nmajors = [\"0\", \"1\", \"2\"]\nplt.figure(figsize=(6, 4))\nax = plt.subplot(1, 1, 1)\nax.xaxis.set_major_formatter(ticker.FixedFormatter(majors))\nax.set_xlim(0, 2)\nplt.show()\n```\n\n\n\n**Bad**: First item is not displayed\n\n```\nmajors = [\"0\", \"1\", \"2\"]\nplt.figure(figsize=(6, 4))\nax = plt.subplot(1, 1, 1)\nax.xaxis.set_major_locator(ticker.MultipleLocator(1.0))\nax.xaxis.set_major_formatter(ticker.FixedFormatter(majors))\nax.set_xlim(0, 2)\nplt.show()\n```\n\n\n","author":{"url":"https://github.com/rougier","@type":"Person","name":"rougier"},"datePublished":"2016-09-16T17:37:05.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":11},"url":"https://github.com/7122/matplotlib/issues/7122"}
| 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:3b9542d5-289c-6731-55da-dc28a6ad9bba |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B0D4:234E06:164FE15:1DA74DB:6A52B5A9 |
| html-safe-nonce | f6a4d92bfd453068e9618a789e1f386272e09cf2b56ce57a9591b62712348a78 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMEQ0OjIzNEUwNjoxNjRGRTE1OjFEQTc0REI6NkE1MkI1QTkiLCJ2aXNpdG9yX2lkIjoiNzU5MDk0MDk5NzYyMzkyMDA0MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 2c2fce84468a2ecf9f94525a2d22fb1aec7b47c51414737be3d126c59c2fc0fd |
| hovercard-subject-tag | issue:177480246 |
| 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/7122/issue_layout |
| twitter:image | https://opengraph.githubassets.com/5f565cd2d9c9df51761a767a1342e685691daa0973600f81f2624d0fba943068/matplotlib/matplotlib/issues/7122 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/5f565cd2d9c9df51761a767a1342e685691daa0973600f81f2624d0fba943068/matplotlib/matplotlib/issues/7122 |
| og:image:alt | Tested on matplotib 1.5.1 on OSX, pip installation. Not sure about regression but I never noticed this behavior before. Expected behavior: plt.figure(figsize=(6, 4)) ax = plt.subplot(1, 1, 1) ax.se... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | rougier |
| 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