MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / test_polar_log_rorigin

Function test_polar_log_rorigin

lib/matplotlib/tests/test_polar.py:513–529  ·  view source on GitHub ↗
(fig_ref, fig_test)

Source from the content-addressed store, hash-verified

511
512@check_figures_equal()
513def 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
532def test_polar_neg_theta_lims():

Callers

nothing calls this directly

Calls 6

add_subplotMethod · 0.80
set_rlimMethod · 0.80
set_roriginMethod · 0.80
set_rticksMethod · 0.80
set_rscaleMethod · 0.80
tick_paramsMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…