Title: Path effects applied to annotation text containing \n · Issue #4024 · matplotlib/matplotlib · GitHub
Open Graph Title: Path effects applied to annotation text containing \n · Issue #4024 · matplotlib/matplotlib
X Title: Path effects applied to annotation text containing \n · Issue #4024 · matplotlib/matplotlib
Description: I am using the following test program with mathplotlib 1.4.0 (via anaconda) on OS X 10.10.1: import matplotlib.pyplot as plt import matplotlib.patheffects as pe plt.subplot(1,1,1) plt.annotate('line1\nline2',xy=(0.5,0.5),xycoords='axes f...
Open Graph Description: I am using the following test program with mathplotlib 1.4.0 (via anaconda) on OS X 10.10.1: import matplotlib.pyplot as plt import matplotlib.patheffects as pe plt.subplot(1,1,1) plt.annotate('lin...
X Description: I am using the following test program with mathplotlib 1.4.0 (via anaconda) on OS X 10.10.1: import matplotlib.pyplot as plt import matplotlib.patheffects as pe plt.subplot(1,1,1) plt.annotate('...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/4024
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Path effects applied to annotation text containing \\n","articleBody":"I am using the following test program with mathplotlib 1.4.0 (via anaconda) on OS X 10.10.1:\n\n```\nimport matplotlib.pyplot as plt\nimport matplotlib.patheffects as pe\n\nplt.subplot(1,1,1)\nplt.annotate('line1\\nline2',xy=(0.5,0.5),xycoords='axes fraction',fontsize='x-large',\n path_effects=[pe.withStroke(linewidth=1,foreground='r')])\nplt.show()\n```\n\nThis fails with:\n\n```\nAttributeError: GraphicsContextBase instance has no attribute 'draw_path'\n```\n\nRemoving the \\n from the text or removing the path_effects option both run as expected. Any workarounds you can suggest are appreciated.\n","author":{"url":"https://github.com/dkirkby","@type":"Person","name":"dkirkby"},"datePublished":"2015-01-21T22:11:54.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/4024/matplotlib/issues/4024"}
| 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:d5672f47-89e3-1972-99fd-d2a3fecd722c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CC46:31BD6B:1ED5C6:295EED:6A52718B |
| html-safe-nonce | 9352c65d3592f56087de4fd077d336288f6fe25e0023488d0e8e5dc604fea828 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQzQ2OjMxQkQ2QjoxRUQ1QzY6Mjk1RUVEOjZBNTI3MThCIiwidmlzaXRvcl9pZCI6IjQwMTg0MjkzMjU4NTAzNDE3NzEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 502e7079f56f321ac5dc7cc8d1a915defb4e2531dbb3727d1b897a64457dad5f |
| hovercard-subject-tag | issue:55085086 |
| 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/4024/issue_layout |
| twitter:image | https://opengraph.githubassets.com/14f4e5b7e073b47e140d90547bdc37c18bd2b8dfe98538b6288fc336621da328/matplotlib/matplotlib/issues/4024 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/14f4e5b7e073b47e140d90547bdc37c18bd2b8dfe98538b6288fc336621da328/matplotlib/matplotlib/issues/4024 |
| og:image:alt | I am using the following test program with mathplotlib 1.4.0 (via anaconda) on OS X 10.10.1: import matplotlib.pyplot as plt import matplotlib.patheffects as pe plt.subplot(1,1,1) plt.annotate('lin... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dkirkby |
| 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 | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width