Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 907067a

Browse filesBrowse files
committed
TST: add test for rlim
1 parent fd68836 commit 907067a
Copy full SHA for 907067a

File tree

Expand file treeCollapse file tree

1 file changed

+21
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+21
-0
lines changed

‎lib/matplotlib/tests/test_axes.py

Copy file name to clipboardExpand all lines: lib/matplotlib/tests/test_axes.py
+21Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -794,6 +794,27 @@ def test_polar_theta_limits():
794794
ax.yaxis.set_tick_params(label2On=True, rotation='auto')
795795

796796

797+
@check_figures_equal(extensions=["png"])
798+
def test_polar_rlim(fig_test, fig_ref):
799+
ax = fig_test.subplots(subplot_kw={'polar': True})
800+
ax.set_rlim(top=10)
801+
ax.set_rlim(bottom=.5)
802+
803+
ax = fig_ref.subplots(subplot_kw={'polar': True})
804+
ax.set_rmax(10.)
805+
ax.set_rmin(.5)
806+
807+
808+
@check_figures_equal(extensions=["png"])
809+
def test_polar_rlim_bottom(fig_test, fig_ref):
810+
ax = fig_test.subplots(subplot_kw={'polar': True})
811+
ax.set_rlim(bottom=[.5, 10])
812+
813+
ax = fig_ref.subplots(subplot_kw={'polar': True})
814+
ax.set_rmax(10.)
815+
ax.set_rmin(.5)
816+
817+
797818
@image_comparison(baseline_images=['axvspan_epoch'])
798819
def test_axvspan_epoch():
799820
from datetime import datetime

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.