Title: Feature request: offset radial origin for polar plots · Issue #4217 · matplotlib/matplotlib · GitHub
Open Graph Title: Feature request: offset radial origin for polar plots · Issue #4217 · matplotlib/matplotlib
X Title: Feature request: offset radial origin for polar plots · Issue #4217 · matplotlib/matplotlib
Description: I'd be really interested in having a nice way to produce polar plots where the origin of the radial axis is offset from the centre, something like this: Having the radial offset is particularly useful for plotting polar histograms, which...
Open Graph Description: I'd be really interested in having a nice way to produce polar plots where the origin of the radial axis is offset from the centre, something like this: Having the radial offset is particularly use...
X Description: I'd be really interested in having a nice way to produce polar plots where the origin of the radial axis is offset from the centre, something like this: Having the radial offset is particularly...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/4217
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Feature request: offset radial origin for polar plots","articleBody":"I'd be really interested in having a nice way to produce polar plots where the origin of the radial axis is offset from the centre, something like this:\n\n\n\nHaving the radial offset is particularly useful for plotting polar histograms, which tend to suffer from the problem that long bars are over-emphasised relative to short bars because their areas being much larger due to the distorting effect of the polar transformation. Adding a radial offset helps to reduce the visual impact of this distortion.\n\nThere are of course hacky ways to achieve this sort of effect, e.g. offsetting the r coordinates of the data, then manually setting the radial ticks. I also came across [this SO question](http://stackoverflow.com/q/16605137/1461210). The accepted answer, using `floating_axes.GridHelperCurveLinear`, is close to what I'm looking for:\n\n\n\nHowever, it's still a bit of a nasty hack, since it requires the radial ticks to be set manually.\n\nHow much work would it be to add a `set_r_offset()` method to allow one to control the relative radial position of the r-axis origin? I imagine it accepting a float between 0 and 1, where 0 would place the r origin exactly at the centre, and 1 would place it exactly at the edge of the plot.\n","author":{"url":"https://github.com/alimuldal","@type":"Person","name":"alimuldal"},"datePublished":"2015-03-13T13:04:08.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/4217/matplotlib/issues/4217"}
| 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:3f667146-e94b-d6ab-3f98-75394b923862 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A770:2BF37F:62EAF6:852EE1:6A523B73 |
| html-safe-nonce | 6027cde9b0210b722894966d5c04ad1069ee49c819eea5491c59ead2e87c7a5a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNzcwOjJCRjM3Rjo2MkVBRjY6ODUyRUUxOjZBNTIzQjczIiwidmlzaXRvcl9pZCI6IjIzMzgyNDU0MDgyMTQ2MjkyMzUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 63b913b0458d430b292b7ab0789dc14da7ae3703d249dbea05e39f701d3d7c30 |
| hovercard-subject-tag | issue:61059562 |
| 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/4217/issue_layout |
| twitter:image | https://opengraph.githubassets.com/2c14e9579c24d83694d011a1d9e821323643606d75ce3f3d7b6d7757ffe71019/matplotlib/matplotlib/issues/4217 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2c14e9579c24d83694d011a1d9e821323643606d75ce3f3d7b6d7757ffe71019/matplotlib/matplotlib/issues/4217 |
| og:image:alt | I'd be really interested in having a nice way to produce polar plots where the origin of the radial axis is offset from the centre, something like this: Having the radial offset is particularly use... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | alimuldal |
| 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