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
Changes from1 commit
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
- Loading branch information
Uh oh!
There was an error while loading.Please reload this page.
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,20 @@ | ||
import numpy as np | ||
import matplotlib.pyplot as plt | ||
Check failure on line 2 in lib/matplotlib/tests/test_axes/test_polar_log_rorigin.py
| ||
from matplotlib.testing.decorators import check_figures_equal | ||
@check_figures_equal() | ||
Check failure on line 5 in lib/matplotlib/tests/test_axes/test_polar_log_rorigin.py
| ||
def test_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.