Title: Table: auto_set_column_width not working · Issue #5479 · matplotlib/matplotlib · GitHub
Open Graph Title: Table: auto_set_column_width not working · Issue #5479 · matplotlib/matplotlib
X Title: Table: auto_set_column_width not working · Issue #5479 · matplotlib/matplotlib
Description: fig, axs = plt.subplots(1, 2, figsize=(6, 3)) ax1, ax2 = axs ax1.axis('off') ax2.axis('off') # Table1 use auto_set_column_width tb1 = ax1.table(cellText=[['Long Text', 2],['Long Long text', 1]], rowLabels=["A","B"], colLabels=["Col1","Co...
Open Graph Description: fig, axs = plt.subplots(1, 2, figsize=(6, 3)) ax1, ax2 = axs ax1.axis('off') ax2.axis('off') # Table1 use auto_set_column_width tb1 = ax1.table(cellText=[['Long Text', 2],['Long Long text', 1]], ro...
X Description: fig, axs = plt.subplots(1, 2, figsize=(6, 3)) ax1, ax2 = axs ax1.axis('off') ax2.axis('off') # Table1 use auto_set_column_width tb1 = ax1.table(cellText=[['Long Text', 2],[&...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/5479
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Table: auto_set_column_width not working","articleBody":"``` python\nfig, axs = plt.subplots(1, 2, figsize=(6, 3))\nax1, ax2 = axs\nax1.axis('off')\nax2.axis('off')\n\n# Table1 use auto_set_column_width\ntb1 = ax1.table(cellText=[['Long Text', 2],['Long Long text', 1]],\n rowLabels=[\"A\",\"B\"],\n colLabels=[\"Col1\",\"Col2\"],\n loc=\"center\")\ntb1.auto_set_font_size(False)\ntb1.set_fontsize(12)\ntb1.auto_set_column_width([\"Col1\",\"Col2\"]) # NOT WORKING\ntb1.auto_set_column_width([-1,0,1]) # NOT WORKING\n\n# Table 2 use _autoColumns\ntb2 = ax2.table(cellText=[['Long Text', 2],['Long Long text', 1]],\n rowLabels=[\"A\",\"B\"],\n colLabels=[\"Col1\",\"Col2\"],\n loc=\"center\")\ntb2.auto_set_font_size(False)\ntb2.set_fontsize(12)\ntb2._autoColumns = [-1,0,1]\n```\n\n\n\nMatplotlib 1.5.0\n","author":{"url":"https://github.com/YujiShen","@type":"Person","name":"YujiShen"},"datePublished":"2015-11-13T16:27:13.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/5479/matplotlib/issues/5479"}
| 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:121cc78c-858f-c5a9-c30f-414ec12b1fde |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B822:2D56E3:F2C036:145020E:6A5335D9 |
| html-safe-nonce | ec46bc5973387216c6bbe92ce74a2209d2d45beab3f079c1cfa7a8e0ef789a12 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCODIyOjJENTZFMzpGMkMwMzY6MTQ1MDIwRTo2QTUzMzVEOSIsInZpc2l0b3JfaWQiOiI4MjEwNDQxNzU4OTM0NTEzMTEzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 9827fbde8b003b4337a55cbb9a10e4751a24137804afd09805d50e8042642279 |
| hovercard-subject-tag | issue:116801814 |
| 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/5479/issue_layout |
| twitter:image | https://opengraph.githubassets.com/820e90751aa21a2d2945ce0f9e9b2747ed2147a6485551ac4e7db3ad36074dcd/matplotlib/matplotlib/issues/5479 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/820e90751aa21a2d2945ce0f9e9b2747ed2147a6485551ac4e7db3ad36074dcd/matplotlib/matplotlib/issues/5479 |
| og:image:alt | fig, axs = plt.subplots(1, 2, figsize=(6, 3)) ax1, ax2 = axs ax1.axis('off') ax2.axis('off') # Table1 use auto_set_column_width tb1 = ax1.table(cellText=[['Long Text', 2],['Long Long text', 1]], ro... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | YujiShen |
| 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