Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
Fix: Inner circle rendering with log-scale + rorigin in polar plots (Fixes #30179)#30185
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:main
Are you sure you want to change the base?
Changes fromall commits
1db6842
acac015
ac2a90d
17847d6
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
importnumpyasnp | ||
importmatplotlib.pyplotasplt | ||
Check failure on line 2 in lib/matplotlib/tests/test_axes/test_polar_log_rorigin.py
| ||
frommatplotlib.testing.decoratorsimportcheck_figures_equal | ||
@check_figures_equal() | ||
Check failure on line 5 in lib/matplotlib/tests/test_axes/test_polar_log_rorigin.py
| ||
deftest_polar_log_rorigin_rendering(fig_test,fig_ref): | ||
r=np.logspace(-1,1,500) | ||
theta=np.linspace(0,2*np.pi,500) | ||
# Reference (correct rendering after fix) | ||
ax_ref=fig_ref.add_subplot(1,1,1,projection='polar') | ||
ax_ref.set_rscale('log') | ||
ax_ref.set_rorigin(-0.5) | ||
ax_ref.plot(theta,r) | ||
# Test output (same code, expected to match) | ||
ax_test=fig_test.add_subplot(1,1,1,projection='polar') | ||
ax_test.set_rscale('log') | ||
ax_test.set_rorigin(-0.5) | ||
ax_test.plot(theta,r) | ||
Uh oh!
There was an error while loading.Please reload this page.