Title: Non-sensical negative radial scale minimum autoset in polar plot · Issue #13292 · matplotlib/matplotlib · GitHub
Open Graph Title: Non-sensical negative radial scale minimum autoset in polar plot · Issue #13292 · matplotlib/matplotlib
X Title: Non-sensical negative radial scale minimum autoset in polar plot · Issue #13292 · matplotlib/matplotlib
Description: When plotting a set of data on a polar plot, the default bottom y_limit might not be zero unexpectedly from the perspective of the user, resulting in confusion about the meaning of the plot, especially for a person (like me) unfamiliar w...
Open Graph Description: When plotting a set of data on a polar plot, the default bottom y_limit might not be zero unexpectedly from the perspective of the user, resulting in confusion about the meaning of the plot, especi...
X Description: When plotting a set of data on a polar plot, the default bottom y_limit might not be zero unexpectedly from the perspective of the user, resulting in confusion about the meaning of the plot, especi...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/13292
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Non-sensical negative radial scale minimum autoset in polar plot","articleBody":"When plotting a set of data on a polar plot, the default bottom y_limit might not be zero unexpectedly from the perspective of the user, resulting in confusion about the meaning of the plot, especially for a person (like me) unfamiliar with the concept of a polar plot where r=0 is not at the very center point of the plot.\r\n\r\n**In a Jupyter Notebook**\r\n\r\n```python\r\n%pylab inline\r\nnpoints = 10_000\r\ntheta = 360 * random.random(npoints)\r\nr = random.random(npoints)\r\n\r\nfig, (ax1, ax2) = subplots(1, 2, figsize=(8, 4), dpi=120, facecolor='white', subplot_kw=dict(projection='polar'))\r\nax1.plot(radians(theta), r, 'o', markersize=1)\r\nax1.set_title('expected', pad=12)\r\nax2.plot(radians(theta), r, 'o', markersize=1)\r\nax2.set_title('unexpected', pad=12)\r\nax1.set_ylim(bottom=0)\r\n# ax2.set_ylim(bottom=0)\r\nprint(ax2.get_ylim())\r\n```\r\n \u003e\u003e\u003e (-0.04989219852580686, 1.0497180912808268)\r\n\r\n\r\n\r\n\r\nI ran across this when plotting data and wondering if I had a bug in my analysis somewhere that was giving me a hole around the origin. It took me some time to figure out that the problem was simply in the axis scaling as I expected the version on the left (which seems sensible to me as the default) and not the version on the right which has a hole in the middle.\r\n\r\n**Matplotlib version**\r\n\r\n * Operating system: Windows 10, also Ubuntu Linux\r\n * Matplotlib version: 3.0.2 from pip\r\n * Matplotlib backend (`print(matplotlib.get_backend())`): inline\r\n * Python version: 3.7, 3.6\r\n * Jupyter version (if applicable): JupyterLab 0.35.4","author":{"url":"https://github.com/dvincentwest","@type":"Person","name":"dvincentwest"},"datePublished":"2019-01-26T19:51:21.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":6},"url":"https://github.com/13292/matplotlib/issues/13292"}
| 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:8950aa57-4bb3-be92-a3bb-5dbf5d8c7bd3 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9EDA:193149:787BEF:A047CD:6A52A721 |
| html-safe-nonce | 9f964531b19f87db3bf8c5a59922e55d2d718c36b064d58bfe63a72d6c8864eb |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RURBOjE5MzE0OTo3ODdCRUY6QTA0N0NEOjZBNTJBNzIxIiwidmlzaXRvcl9pZCI6Ijk5OTE3NTgzMzQwNjA1NjIyNSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | a90b3de247de30c7c931e1b6e2b3519cbd472a041a858328e5e0f34fa4f43c52 |
| hovercard-subject-tag | issue:403476392 |
| 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/13292/issue_layout |
| twitter:image | https://opengraph.githubassets.com/02b48b909220c142a02a51dfe980e18653d28ee7dfd1ff27ed68bec32d94f20e/matplotlib/matplotlib/issues/13292 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/02b48b909220c142a02a51dfe980e18653d28ee7dfd1ff27ed68bec32d94f20e/matplotlib/matplotlib/issues/13292 |
| og:image:alt | When plotting a set of data on a polar plot, the default bottom y_limit might not be zero unexpectedly from the perspective of the user, resulting in confusion about the meaning of the plot, especi... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dvincentwest |
| 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