Title: Arrow annotations behave differently between 1.3.1 and 1.4.2 · Issue #4012 · matplotlib/matplotlib · GitHub
Open Graph Title: Arrow annotations behave differently between 1.3.1 and 1.4.2 · Issue #4012 · matplotlib/matplotlib
X Title: Arrow annotations behave differently between 1.3.1 and 1.4.2 · Issue #4012 · matplotlib/matplotlib
Description: Sorry, here's another one without a simplified test case. I will try and get to that tomorrow. For this, you will need matplotlib 1.4.2 and the development version of ObsPy. Then run obspy3-runtests -d obspy.station.tests.test_station.St...
Open Graph Description: Sorry, here's another one without a simplified test case. I will try and get to that tomorrow. For this, you will need matplotlib 1.4.2 and the development version of ObsPy. Then run obspy3-runtest...
X Description: Sorry, here's another one without a simplified test case. I will try and get to that tomorrow. For this, you will need matplotlib 1.4.2 and the development version of ObsPy. Then run obspy3-run...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/4012
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Arrow annotations behave differently between 1.3.1 and 1.4.2","articleBody":"~~Sorry, here's another one without a simplified test case. I will try and get to that tomorrow. For this, you will need matplotlib 1.4.2 and the development version of [ObsPy](https://github.com/obspy/obspy). Then run `obspy3-runtests -d obspy.station.tests.test_station.StationTest.test_response_plot`.~~ Test case is below.\n\nWith mpl 1.3.1, the plot is as so:\n\n\nWith mpl 1.4.2 (and master), the plot is as so:\n\n\n\n\nYou can see that the arrows are thinner and shifted a bit.\n\nI believe the relevant bit of code is the following, but I will try to simplify it later:\n\n```\n trans_above = blended_transform_factory(ax1.transData,\n ax1.transAxes)\n trans_right = blended_transform_factory(ax1.transAxes,\n ax1.transData)\n arrowprops = dict(\n arrowstyle=\"wedge,tail_width=1.4,shrink_factor=0.8\", fc=color)\n bbox = dict(boxstyle=\"round\", fc=\"w\")\n ax1.annotate(\"%.1g\" % self.instrument_sensitivity.frequency,\n (self.instrument_sensitivity.frequency, 1.0),\n xytext=(self.instrument_sensitivity.frequency, 1.1),\n xycoords=trans_above, textcoords=trans_above,\n ha=\"center\", va=\"bottom\",\n arrowprops=arrowprops, bbox=bbox)\n ax1.annotate(\"%.1e\" % self.instrument_sensitivity.value,\n (1.0, self.instrument_sensitivity.value),\n xytext=(1.05, self.instrument_sensitivity.value),\n xycoords=trans_right, textcoords=trans_right,\n ha=\"left\", va=\"center\",\n arrowprops=arrowprops, bbox=bbox)\n```\n\nI did a bisect and the bad commit was:\n\n```\n3363b125715724ad89d4b33cbddb23e31e7277d5 is the first bad commit\ncommit 3363b125715724ad89d4b33cbddb23e31e7277d5\nAuthor: Thomas A Caswell \u003ctcaswell@gmail.com\u003e\nDate: Tue Aug 27 17:07:58 2013 -0500\n\n re factored `_AnnoationBase` to push keeping track of there the\n secondary object is to the sub-classes.\n\n Added properties to maintain back-compatibility\n\n added properties to replace xytext and textcoords (xyann, anncoords)\n\n properly deprecated `textcoord` and `xytext` in favor of `anncoords`\n and `xyann`.\n\n:040000 040000 f17d8e1a70232471435f96b1faa8550bc697ec32 567d4a0a86bb3d1fb7ec55dc0fa98e86c1dec71a M doc\n:040000 040000 34339e9d0d9f49477908fc3c3227b1b7b55735b4 4dc225e1358d422aa86f9361672c36e127955bee M lib\n```\n","author":{"url":"https://github.com/QuLogic","@type":"Person","name":"QuLogic"},"datePublished":"2015-01-19T10:13:33.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":22},"url":"https://github.com/4012/matplotlib/issues/4012"}
| 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:460bff4c-f181-9ed4-e00f-2b3ed583a822 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D938:238281:1D51876:277F5C5:6A5371F0 |
| html-safe-nonce | edca329acbd4a3957e0c2f67ab7d6be70008ed6668cb24b1c92fcc51f7b0a3cc |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEOTM4OjIzODI4MToxRDUxODc2OjI3N0Y1QzU6NkE1MzcxRjAiLCJ2aXNpdG9yX2lkIjoiODE2MjU2MDM2NzE3Njg3MjgwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | d54cbfe00b77af7ad609a893c515cc0a7775afea23c34c00ef6d221fc52b20bd |
| hovercard-subject-tag | issue:54746007 |
| 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/4012/issue_layout |
| twitter:image | https://opengraph.githubassets.com/6fd03ae334d93dae62e962d4abab35dc5d2c6e99827d297c688899b9446f9cd0/matplotlib/matplotlib/issues/4012 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/6fd03ae334d93dae62e962d4abab35dc5d2c6e99827d297c688899b9446f9cd0/matplotlib/matplotlib/issues/4012 |
| og:image:alt | Sorry, here's another one without a simplified test case. I will try and get to that tomorrow. For this, you will need matplotlib 1.4.2 and the development version of ObsPy. Then run obspy3-runtest... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | QuLogic |
| 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