Title: [Bug]: ax.text() Is Not Rendered If X Specified With ax.plot() · Issue #25127 · matplotlib/matplotlib · GitHub
Open Graph Title: [Bug]: ax.text() Is Not Rendered If X Specified With ax.plot() · Issue #25127 · matplotlib/matplotlib
X Title: [Bug]: ax.text() Is Not Rendered If X Specified With ax.plot() · Issue #25127 · matplotlib/matplotlib
Description: Bug summary ax.text() is not rendered if x values are supplied to ax.plot() Code for reproduction # Straight from the example : https://matplotlib.org/stable/users/explain/api_interfaces.html#api-interfaces import matplotlib.pyplot as pl...
Open Graph Description: Bug summary ax.text() is not rendered if x values are supplied to ax.plot() Code for reproduction # Straight from the example : https://matplotlib.org/stable/users/explain/api_interfaces.html#api-i...
X Description: Bug summary ax.text() is not rendered if x values are supplied to ax.plot() Code for reproduction # Straight from the example : https://matplotlib.org/stable/users/explain/api_interfaces.html#api-i...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/25127
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Bug]: ax.text() Is Not Rendered If X Specified With ax.plot()","articleBody":"### Bug summary\r\n\r\nax.text() is not rendered if x values are supplied to ax.plot()\r\n\r\n### Code for reproduction\r\n\r\n```python\r\n# Straight from the example : https://matplotlib.org/stable/users/explain/api_interfaces.html#api-interfaces\r\n\r\nimport matplotlib.pyplot as plt\r\n\r\nfig = plt.figure()\r\nax = fig.subplots()\r\n\r\n# Text works!\r\n#ax.plot([0, 0.5, 1, 0.2])\r\n\r\n# Text no works!\r\nax.plot([1, 2, 3, 4], [0, 0.5, 1, 0.2])\r\n\r\n# Text drawing.\r\nax.text(0, 0, 'Hello!')\r\n\r\nplt.show()\r\n```\r\n\r\n\r\n### Actual outcome\r\n\r\nText is not displayed.\r\n\r\n### Expected outcome\r\n\r\nText is displayed.\r\n\r\n### Additional information\r\n\r\nI narrowed it down to plot with x values means text is not displayed.\r\n\r\n### Operating system\r\n\r\nWindows\r\n\r\n### Matplotlib Version\r\n\r\n3.6.3\r\n\r\n### Matplotlib Backend\r\n\r\nTkAgg\r\n\r\n### Python version\r\n\r\n3.9.7\r\n\r\n### Jupyter version\r\n\r\nN/A\r\n\r\n### Installation\r\n\r\npip","author":{"url":"https://github.com/Matthew1471","@type":"Person","name":"Matthew1471"},"datePublished":"2023-02-01T23:50:00.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":6},"url":"https://github.com/25127/matplotlib/issues/25127"}
| 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:9de227ce-2371-1ee1-ef56-39f64f0d776b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DE48:3DB355:487E6:613E8:6A52D83C |
| html-safe-nonce | 5db26abca98a5bc69b99607b1c53619f232f9532fa19365fccd0c67d16e7870f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERTQ4OjNEQjM1NTo0ODdFNjo2MTNFODo2QTUyRDgzQyIsInZpc2l0b3JfaWQiOiI3MzA5NDM3MzgyMDcxMzQzMTY0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | d0b3ae2f3eed85f3867d3e3ed35ed29ca8300ef15dbeaf3d091792b51f883bfa |
| hovercard-subject-tag | issue:1567046397 |
| 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/25127/issue_layout |
| twitter:image | https://opengraph.githubassets.com/2f9fa081ad0d4ebde5f0c00bd2dfde4de58744592850d6f66360c8e9749bf1a4/matplotlib/matplotlib/issues/25127 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2f9fa081ad0d4ebde5f0c00bd2dfde4de58744592850d6f66360c8e9749bf1a4/matplotlib/matplotlib/issues/25127 |
| og:image:alt | Bug summary ax.text() is not rendered if x values are supplied to ax.plot() Code for reproduction # Straight from the example : https://matplotlib.org/stable/users/explain/api_interfaces.html#api-i... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Matthew1471 |
| 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