Title: Figure linewidth not documented and not visible when saved · Issue #9370 · matplotlib/matplotlib · GitHub
Open Graph Title: Figure linewidth not documented and not visible when saved · Issue #9370 · matplotlib/matplotlib
X Title: Figure linewidth not documented and not visible when saved · Issue #9370 · matplotlib/matplotlib
Description: Bug report Bug summary When creating a figure it is possible to use linewidth along with edgecolor to create a border around the figure. The linewidth parameter is not shown in the documentation. There is no corresponding set_linewidth f...
Open Graph Description: Bug report Bug summary When creating a figure it is possible to use linewidth along with edgecolor to create a border around the figure. The linewidth parameter is not shown in the documentation. T...
X Description: Bug report Bug summary When creating a figure it is possible to use linewidth along with edgecolor to create a border around the figure. The linewidth parameter is not shown in the documentation. T...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/9370
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Figure linewidth not documented and not visible when saved","articleBody":"### Bug report\r\n\r\n**Bug summary**\r\n\r\nWhen creating a figure it is possible to use `linewidth` along with `edgecolor` to create a border around the figure. The linewidth parameter is not shown [in the documentation](https://matplotlib.org/api/_as_gen/matplotlib.pyplot.figure.html#matplotlib.pyplot.figure). There is no corresponding `set_linewidth` figure method.\r\n\r\nAlso, when saving to a file, this border is missing.\r\n\r\nI am using Jupyter notebook.\r\n\r\n**Code for reproduction**\r\n```python\r\nfig = plt.figure(linewidth=20, edgecolor='r')\r\nplt.plot([5,6])\r\nplt.savefig('/Users/Ted/Desktop/figlw.png')\r\n```\r\n\r\n**Actual outcome (in notebook)**\r\n\r\n\u003cimg width=\"394\" alt=\"screen shot 2017-10-11 at 11 32 37 am\" src=\"https://user-images.githubusercontent.com/7226751/31450707-1b68a7a6-ae78-11e7-83cb-e0d57d28abb2.png\"\u003e\r\n\r\n\r\n**Expected outcome**\r\n\r\n\u003c!--A description of the expected outcome from the code snippet--\u003e\r\n\u003c!--If this used to work in an earlier version of Matplotlib, please note the version it used to work on--\u003e\r\n\r\n**Matplotlib version**\r\n\u003c!--Please specify your platform and versions of the relevant libraries you are using:--\u003e\r\n * Operating system: OSX\r\n * Matplotlib version: 2.1\r\n * Matplotlib backend (`module://ipykernel.pylab.backend_inline`):\r\n * Python version: 3.6\r\n * Jupyter version (if applicable): 5.0\r\n * Other libraries: \r\n\r\n\u003c!--Please tell us how you installed matplotlib and python e.g., from source, pip, conda--\u003e\r\nUpdated through conda\r\n\u003c!--If you installed from conda, please specify which channel you used if not the default--\u003e\r\n\r\n","author":{"url":"https://github.com/tdpetrou","@type":"Person","name":"tdpetrou"},"datePublished":"2017-10-11T15:37:29.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":8},"url":"https://github.com/9370/matplotlib/issues/9370"}
| 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:bd5f51fb-8c71-500d-b990-91e80636d829 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | EBDC:163D9C:1A60B9B:22D477B:6A51D552 |
| html-safe-nonce | a27952656006892ab78ee99eaa9957d2d37810084b228b950d67895beb25773e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQkRDOjE2M0Q5QzoxQTYwQjlCOjIyRDQ3N0I6NkE1MUQ1NTIiLCJ2aXNpdG9yX2lkIjoiMzY1NDkxMzAwNDgzNzkxODAzNCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | a84b75c905865912cbf4726d60cab535390a8788951118d2b4e1311cc91d3ade |
| hovercard-subject-tag | issue:264635946 |
| 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/9370/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e911092085f5ba0d64f4d9d0f461d9291c487bfd0455fa2eaf52ce2b27b02f39/matplotlib/matplotlib/issues/9370 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e911092085f5ba0d64f4d9d0f461d9291c487bfd0455fa2eaf52ce2b27b02f39/matplotlib/matplotlib/issues/9370 |
| og:image:alt | Bug report Bug summary When creating a figure it is possible to use linewidth along with edgecolor to create a border around the figure. The linewidth parameter is not shown in the documentation. T... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | tdpetrou |
| 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