Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commitf4d0101

Browse files
committed
polar image test
1 parent217b78a commitf4d0101

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

‎lib/matplotlib/tests/test_axes.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6614,12 +6614,20 @@ def test_zoom_inset():
66146614
axin1.get_position().get_points(),xx,rtol=1e-4)
66156615

66166616

6617+
@image_comparison(['inset_polar.png'],remove_text=True)
66176618
deftest_inset_polar():
66186619
frommatplotlib.projections.polarimportPolarAxes
66196620

66206621
_,ax=plt.subplots()
6621-
axins=ax.inset_axes([0.2,0.2,0.3,0.3],polar=True)
6622+
axins=ax.inset_axes([0.5,0.1,0.45,0.45],polar=True)
66226623
assertisinstance(axins,PolarAxes)
6624+
6625+
r=np.arange(0,2,0.01)
6626+
theta=2*np.pi*r
6627+
6628+
ax.plot(theta,r)
6629+
axins.plot(theta,r)
6630+
66236631

66246632

66256633
deftest_inset_projection():

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp