Title: Fix: Inner circle rendering with log-scale + rorigin in polar plots (Fixes #30179) by bharshavardhanreddy924 · Pull Request #30185 · matplotlib/matplotlib · GitHub
Open Graph Title: Fix: Inner circle rendering with log-scale + rorigin in polar plots (Fixes #30179) by bharshavardhanreddy924 · Pull Request #30185 · matplotlib/matplotlib
X Title: Fix: Inner circle rendering with log-scale + rorigin in polar plots (Fixes #30179) by bharshavardhanreddy924 · Pull Request #30185 · matplotlib/matplotlib
Description: ✅ Summary Fixes: #30179 This pull request resolves a rendering issue in polar plots when using set_yscale("log") together with set_rorigin(...). Previously, when setting a custom radial origin in log scale, the inner circular gridline (representing the minimum radial value) would still be rendered at the center of the polar plot, rather than at the specified origin. This fix ensures correct rendering of the inner border with proper alignment to the configured rorigin, even under logarithmic radial scaling. 🔧 What Was Changed? Fixed incorrect rendering logic in projections/polar.py by updating how rorigin is applied when log scale is used. Adjusted transform computation to handle non-zero origins in log scale. 📸 Visual Comparison 🔁 Replace the image link above with the actual URL GitHub gives you when you drag-and-drop your image into the PR box. 🧪 Minimal Code to Reproduce import numpy as np import matplotlib.pyplot as plt r = np.logspace(-1, 1, 500) theta = np.linspace(0, 2*np.pi, 500) fig, axs = plt.subplots(1, 2, subplot_kw={'projection': 'polar'}, figsize=(12, 6)) axs[0].set_title("Before Fix (log + rorigin)") axs[0].set_rscale('log') axs[0].set_rorigin(-0.5) axs[0].plot(theta, r) axs[1].set_title("After Fix (log + rorigin)") axs[1].set_rscale('log') axs[1].set_rorigin(-0.5) axs[1].plot(theta, r) plt.tight_layout() plt.show()
Open Graph Description: ✅ Summary Fixes: #30179 This pull request resolves a rendering issue in polar plots when using set_yscale("log") together with set_rorigin(...). Previously, when setting a custom radial o...
X Description: ✅ Summary Fixes: #30179 This pull request resolves a rendering issue in polar plots when using set_yscale("log") together with set_rorigin(...). Previously, when setting a custom ...
Opengraph URL: https://github.com/matplotlib/matplotlib/pull/30185
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:e710e197-fc40-3ba3-3c15-aabfc8cafd4a |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | E36A:2052BE:85C9D:BB33E:6A536324 |
| html-safe-nonce | c73ef6397066ad5c703836795e082e0b4b34a8a6f459c0cae83557361785639e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMzZBOjIwNTJCRTo4NUM5RDpCQjMzRTo2QTUzNjMyNCIsInZpc2l0b3JfaWQiOiI1MTAyMTk5MzY1OTEwNjE4OTE2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 26675ff8b55a26070ea22207068edea82e965493e6254e342948ed5b952d5add |
| hovercard-subject-tag | pull_request:2602734043 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,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/matplotlib/matplotlib/pull/30185/files |
| twitter:image | https://avatars.githubusercontent.com/u/151720877?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/151720877?s=400&v=4 |
| og:image:alt | ✅ Summary Fixes: #30179 This pull request resolves a rendering issue in polar plots when using set_yscale("log") together with set_rorigin(...). Previously, when setting a custom radial o... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-preview |
| diff-view | unified |
| 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 full-width |
| disable-turbo | true |
| 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