Skip to content

Commit f4d0101

Browse files
committed
polar image test
1 parent 217b78a commit f4d0101

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
def test_inset_polar():
66186619
from matplotlib.projections.polar import PolarAxes
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
assert isinstance(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
def test_inset_projection():

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy