Title: polar plot incorrectly handles units of degrees/radians · Issue #6144 · matplotlib/matplotlib · GitHub
Open Graph Title: polar plot incorrectly handles units of degrees/radians · Issue #6144 · matplotlib/matplotlib
X Title: polar plot incorrectly handles units of degrees/radians · Issue #6144 · matplotlib/matplotlib
Description: Setup matplotlib.__version__= 1.5.1 (installed as part of anaconda distribution) Python 3.4.4 OS X Issue Code from examples/units/radian_demo.py with minor modifications: import numpy as np from basic_units import radians, degrees, cos f...
Open Graph Description: Setup matplotlib.__version__= 1.5.1 (installed as part of anaconda distribution) Python 3.4.4 OS X Issue Code from examples/units/radian_demo.py with minor modifications: import numpy as np from ba...
X Description: Setup matplotlib.__version__= 1.5.1 (installed as part of anaconda distribution) Python 3.4.4 OS X Issue Code from examples/units/radian_demo.py with minor modifications: import numpy as np from ba...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/6144
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"polar plot incorrectly handles units of degrees/radians","articleBody":"# Setup\n\n`matplotlib.__version__`= 1.5.1 (installed as part of anaconda distribution)\nPython 3.4.4\nOS X\n# Issue\n\nCode from `examples/units/radian_demo.py` with minor modifications:\n\n```\nimport numpy as np\nfrom basic_units import radians, degrees, cos\nfrom matplotlib.pyplot import figure, show\n\nx = [val*radians for val in np.arange(0, 15, 0.01)]\n\nfig = figure()\n\nax = fig.add_subplot(121, projection='polar')\nline1, = ax.plot(x, np.array(cos(x))+1, xunits=radians)\n\nax = fig.add_subplot(122, projection='polar')\nline2, = ax.plot(x, np.array(cos(x))+1, xunits=degrees)\n\nshow()\n```\n\n\n# Notes\n\nNote that the plot on the left is correct, but the angular tick labels aren't incrementing correctly. I can't tell if this is an issue with the basic_units.py example implementation or the units interface. \n\nIf it seems like a straightforward fix, I'd be happy to take a look at it: the units interface is really slick and it would be great to get this working with polar coordinates too.\n","author":{"url":"https://github.com/jmdearman","@type":"Person","name":"jmdearman"},"datePublished":"2016-03-11T21:51:54.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/6144/matplotlib/issues/6144"}
| 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:37edffd3-1a66-60be-3d70-a927c4e1da1c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 97C8:20874E:E2736B:12E82E6:6A52CC85 |
| html-safe-nonce | 1c149b2c1bd99cc0bc2e0bbb2f8b6a8dad5255717c0d851f2cb88994062a5c11 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5N0M4OjIwODc0RTpFMjczNkI6MTJFODJFNjo2QTUyQ0M4NSIsInZpc2l0b3JfaWQiOiI1MjM4MTc2MzQ2ODc0NzYwMzI1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | c6565ed45063776c4bae24b8b707d466af84e90061bd077ed03bf1b09e6b388a |
| hovercard-subject-tag | issue:140300844 |
| 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/6144/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d823e3a6041523eb613b0e48db9cb014b5fd3ceab0061372eb535d36ac2741b6/matplotlib/matplotlib/issues/6144 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d823e3a6041523eb613b0e48db9cb014b5fd3ceab0061372eb535d36ac2741b6/matplotlib/matplotlib/issues/6144 |
| og:image:alt | Setup matplotlib.__version__= 1.5.1 (installed as part of anaconda distribution) Python 3.4.4 OS X Issue Code from examples/units/radian_demo.py with minor modifications: import numpy as np from ba... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jmdearman |
| 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