Title: ticklabels empty when not interactive · Issue #6103 · matplotlib/matplotlib · GitHub
Open Graph Title: ticklabels empty when not interactive · Issue #6103 · matplotlib/matplotlib
X Title: ticklabels empty when not interactive · Issue #6103 · matplotlib/matplotlib
Description: [1.5.1,3.5.1,OSX] Matplotlib version, Python version and Platform (Windows, OSX, Linux ...) [pip ] How did you install Matplotlib and Python (pip, anaconda, from source ...) from matplotlib.pyplot import subplots,gca fig,ax = subplots() ...
Open Graph Description: [1.5.1,3.5.1,OSX] Matplotlib version, Python version and Platform (Windows, OSX, Linux ...) [pip ] How did you install Matplotlib and Python (pip, anaconda, from source ...) from matplotlib.pyplot ...
X Description: [1.5.1,3.5.1,OSX] Matplotlib version, Python version and Platform (Windows, OSX, Linux ...) [pip ] How did you install Matplotlib and Python (pip, anaconda, from source ...) from matplotlib.pyplot ...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/6103
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"ticklabels empty when not interactive","articleBody":"- [1.5.1,3.5.1,OSX] Matplotlib version, Python version and Platform (Windows, OSX, Linux ...)\n- [pip ] How did you install Matplotlib and Python (pip, anaconda, from source ...)\n\n```\nfrom matplotlib.pyplot import subplots,gca\n\nfig,ax = subplots()\nax.plot(range(0,10),range(0,10))\nlabel_list = list(ax.xaxis.get_ticklabels())\nprint('First label is :',label_list[0].get_text())\nlabel_list = list(ax.get_xaxis().get_ticklabels())\nprint('First label is :',label_list[0].get_text())\nlabel_list = list(gca().xaxis.get_ticklabels())\nprint('First label is :',label_list[0].get_text())\nlabel_list = list(gca().get_xaxis().get_ticklabels())\nprint('First label is :',label_list[0].get_text())\n```\n\nReturns empty for all calls.\n\nI found quite frustating since testing the code manually in ipython _works_. While running the source from the shell or with %run in ipython it doesn't. Am I missing some update command before getting the tick labels or mpl is wrongly configured somehow?\n","author":{"url":"https://github.com/ocehugo","@type":"Person","name":"ocehugo"},"datePublished":"2016-03-03T01:53:46.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":28},"url":"https://github.com/6103/matplotlib/issues/6103"}
| 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:25bfb267-65a6-51df-7f88-637dae8a2971 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DE66:185B29:22073:2C019:6A525EC7 |
| html-safe-nonce | dda17f78a0b9163932807a141d11dce03377539d718bcc49848d2bdb85f3bada |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERTY2OjE4NUIyOToyMjA3MzoyQzAxOTo2QTUyNUVDNyIsInZpc2l0b3JfaWQiOiI0OTE0MTIxMjc0ODQ0OTI5NzM1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 166a87e8e2d991fea4fb39a52462b10af043b3f187aec7854bf837f715ff7b68 |
| hovercard-subject-tag | issue:138050051 |
| 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/6103/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f84e13164bf6777126441f88482839fe5b7baa094be489a255c88d29fbe84003/matplotlib/matplotlib/issues/6103 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f84e13164bf6777126441f88482839fe5b7baa094be489a255c88d29fbe84003/matplotlib/matplotlib/issues/6103 |
| og:image:alt | [1.5.1,3.5.1,OSX] Matplotlib version, Python version and Platform (Windows, OSX, Linux ...) [pip ] How did you install Matplotlib and Python (pip, anaconda, from source ...) from matplotlib.pyplot ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ocehugo |
| 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 | 7aed05249554b889eb33d002851a973eebcc7e91 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width