(fig_ref, fig_test)
| 511 | |
| 512 | @check_figures_equal() |
| 513 | def test_polar_log_rorigin(fig_ref, fig_test): |
| 514 | # Test that equivalent linear and log radial settings give the same axes patch |
| 515 | # and spines. |
| 516 | ax_ref = fig_ref.add_subplot(projection='polar', facecolor='red') |
| 517 | ax_ref.set_rlim(0, 2) |
| 518 | ax_ref.set_rorigin(-3) |
| 519 | ax_ref.set_rticks(np.linspace(0, 2, 5)) |
| 520 | |
| 521 | ax_test = fig_test.add_subplot(projection='polar', facecolor='red') |
| 522 | ax_test.set_rscale('log') |
| 523 | ax_test.set_rlim(1, 100) |
| 524 | ax_test.set_rorigin(10**-3) |
| 525 | ax_test.set_rticks(np.logspace(0, 2, 5)) |
| 526 | |
| 527 | for ax in ax_ref, ax_test: |
| 528 | # Radial tick labels should be the only difference, so turn them off. |
| 529 | ax.tick_params(labelleft=False) |
| 530 | |
| 531 | |
| 532 | def test_polar_neg_theta_lims(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…