Title: Delete vertical lines (or vertical rules) in plt.table? How to remove cell boundaries and shows table as scientific tables? · Issue #4044 · matplotlib/matplotlib · GitHub
Open Graph Title: Delete vertical lines (or vertical rules) in plt.table? How to remove cell boundaries and shows table as scientific tables? · Issue #4044 · matplotlib/matplotlib
X Title: Delete vertical lines (or vertical rules) in plt.table? How to remove cell boundaries and shows table as scientific tables? · Issue #4044 · matplotlib/matplotlib
Description: Is there any way to remove the vertical lines in a matplotlib table? Or even using text.usetex=True obtain a plot (using Arial for all texts and numbers) and append a table without vertical lines? My code is this: import matplotlib.pyplo...
Open Graph Description: Is there any way to remove the vertical lines in a matplotlib table? Or even using text.usetex=True obtain a plot (using Arial for all texts and numbers) and append a table without vertical lines? ...
X Description: Is there any way to remove the vertical lines in a matplotlib table? Or even using text.usetex=True obtain a plot (using Arial for all texts and numbers) and append a table without vertical lines? ...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/4044
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Delete vertical lines (or vertical rules) in plt.table? How to remove cell boundaries and shows table as scientific tables?","articleBody":"Is there any way to remove the vertical lines in a matplotlib table?\nOr even using `text.usetex=True` obtain a plot (using Arial for all texts and numbers) and append a table without vertical lines?\n\nMy code is this:\n\n```\nimport matplotlib.pyplot as plt\nimport seaborn as sns\n\nsns.set_style(\"ticks\")\nplt.rcParams.update({'xtick.labelsize' : 9,\n 'ytick.labelsize' : 9,\n 'mathtext.fontset' : 'stixsans',\n 'mathtext.default': 'regular'\n })\n\nplt.subplots_adjust(left=0.17, right=0.96, top=0.97, bottom=0.09)\n\nfig = plt.figure(figsize=(5.5, 3.4))\nax = fig.add_subplot(111)\n\nax.plot([1, 2, 3, 4, 5, 6])\nax.set_xlabel('X Label')\nax.set_ylabel('Unit ('+u'μ'+r'velocity $\\cdot$ m$^{-2}$ s$^{-1}$)',\n size=10)\n\nl1 = [\"\",\"t0\", \"t1\", \"t2\", \"t3 \", \"t4\", \"t5\", \"t6\"]\nl2 = [\"DLI\", 35, 38, 10, 22, 25, 85, 22]\nt = ax.table(\n colWidths=[0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1],\n cellText = [l1, l2],\n loc=\"upper center\",\n colLoc=\"center\",\n rowLoc=\"center\",\n )\nplt.savefig('mpl_table.png')\nplt.show()\n```\n\nI tried to include some LaTeX stuff in another plot, which preserves Arial font, but does not render the table with horizontal lines [Table correct](http://imgur.com/4TckUyb). When I get the table as I want, the fonts can not be setted to Arial.\n\n[Here](https://gist.github.com/arnaldorusso/e542b04245560300d4f7) the codes show the plots in two steps. First generating the [first plot](http://imgur.com/J1A01h5) and after running in a new session the [second plot](http://imgur.com/4TckUyb).\n\nMy main problem is to maintain the Arial font (mandatory rules in the guide for authors) and tables should be without vertical rules, as stated on [first plot](http://imgur.com/J1A01h5).\n\nI have here three approachs and no one satisfy those recquirements (e.g. Arial font and table with no vertical lines)\n\nI could not figure it out. Any clues?\n\nCheers,\nArnaldo.\n","author":{"url":"https://github.com/arnaldorusso","@type":"Person","name":"arnaldorusso"},"datePublished":"2015-01-28T00:53:25.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":8},"url":"https://github.com/4044/matplotlib/issues/4044"}
| 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:59cb6627-41f2-a141-7e28-765dccaacb33 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A872:1187B3:2507BFA:32A7DC8:6A53ACF3 |
| html-safe-nonce | a0fa92573834795f76df6afd0ed565757819a7e8812b854f3f39d6c1e1192cf1 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBODcyOjExODdCMzoyNTA3QkZBOjMyQTdEQzg6NkE1M0FDRjMiLCJ2aXNpdG9yX2lkIjoiODAzNjAxMDgzMDgzNzYyOTMxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 40c88bd1001e248445392da1eb7ad56b169c8c56f3c0dc12ffae645f56bcbab1 |
| hovercard-subject-tag | issue:55698801 |
| 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/4044/issue_layout |
| twitter:image | https://opengraph.githubassets.com/eb1f9a87d3522f6c8908e28635bf6a94225269fa7c5d355492ad0350ec3e08e4/matplotlib/matplotlib/issues/4044 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/eb1f9a87d3522f6c8908e28635bf6a94225269fa7c5d355492ad0350ec3e08e4/matplotlib/matplotlib/issues/4044 |
| og:image:alt | Is there any way to remove the vertical lines in a matplotlib table? Or even using text.usetex=True obtain a plot (using Arial for all texts and numbers) and append a table without vertical lines? ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | arnaldorusso |
| 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