Title: Issue when trying to plot points with transform that requires more/fewer coordinates than it returns · Issue #3983 · matplotlib/matplotlib · GitHub
Open Graph Title: Issue when trying to plot points with transform that requires more/fewer coordinates than it returns · Issue #3983 · matplotlib/matplotlib
X Title: Issue when trying to plot points with transform that requires more/fewer coordinates than it returns · Issue #3983 · matplotlib/matplotlib
Description: Let's say we have a transform tr that takes 2-dimensional input and returns 2-dimensional input. If I do: plt.plot(x, y, transform=tr) x and y will get passed to tr.transform. Now in some cases the transformation may require 3 coordinate...
Open Graph Description: Let's say we have a transform tr that takes 2-dimensional input and returns 2-dimensional input. If I do: plt.plot(x, y, transform=tr) x and y will get passed to tr.transform. Now in some cases the...
X Description: Let's say we have a transform tr that takes 2-dimensional input and returns 2-dimensional input. If I do: plt.plot(x, y, transform=tr) x and y will get passed to tr.transform. Now in some cases...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/3983
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Issue when trying to plot points with transform that requires more/fewer coordinates than it returns","articleBody":"Let's say we have a transform `tr` that takes 2-dimensional input and returns 2-dimensional input. If I do:\n\n```\nplt.plot(x, y, transform=tr)\n```\n\n`x` and `y` will get passed to `tr.transform`. Now in some cases the transformation may require 3 coordinates and return 2 'final' coordinates to be plotted (e.g. https://github.com/astrofrog/wcsaxes/pull/148).\n\nFor example I might have a transformation that takes longitude, latitude, and altitude and translates these into a 2-d position in a satellite image. In this case if I want to plot points I'd like to be able to do:\n\n```\nplt.plot(longitude, latitude, altitude, transform=tr)\n```\n\nHowever this doesn't work (and I tried a few other ways to). Is there a way to get this to work, and if not, could it be considered as a feature request? Just to be clear, the transform would always return two coordinates, but could take any arbitrary number of inputs.\n","author":{"url":"https://github.com/astrofrog","@type":"Person","name":"astrofrog"},"datePublished":"2015-01-08T20:17:01.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/3983/matplotlib/issues/3983"}
| 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:bdc3da05-c16a-29cc-f8b9-2900eed85c03 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 823A:172D3F:80D029:ACD6B9:6A53F8DB |
| html-safe-nonce | 6bf55822225fd978df7c3e60bfa53b9562b77ca7dbde8e7a8a87795242a85b78 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MjNBOjE3MkQzRjo4MEQwMjk6QUNENkI5OjZBNTNGOERCIiwidmlzaXRvcl9pZCI6IjQwNzUxMDc0MjM2ODU0NDE3NTUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 0711d6286bce5c58f27e66c3665417c4c0e689f85cdebd96eec709c4581e58b1 |
| hovercard-subject-tag | issue:53795710 |
| 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/3983/issue_layout |
| twitter:image | https://opengraph.githubassets.com/5f7a4180f26f8a88053cdf41a11a2bc6219e0b0cbff18779a28efffd37005c16/matplotlib/matplotlib/issues/3983 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/5f7a4180f26f8a88053cdf41a11a2bc6219e0b0cbff18779a28efffd37005c16/matplotlib/matplotlib/issues/3983 |
| og:image:alt | Let's say we have a transform tr that takes 2-dimensional input and returns 2-dimensional input. If I do: plt.plot(x, y, transform=tr) x and y will get passed to tr.transform. Now in some cases the... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | astrofrog |
| 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-1 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width