You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: polygon from axvspan not correct in polar plot after set_xy #27824
When updating vertices of polygon produced with axvspan on polar axes, the resultant polygon does not seem to follow the polar projection.
Code for reproduction
importmatplotlib.pyplotaspltfig, axs=plt.subplots(1, 2, subplot_kw={'projection': 'polar'})
# What I expectpolygon1=axs[0].axvspan(0,np.pi/2)
axs[0].set_title("What I expect")
# What I getpolygon2=axs[1].axvspan(0,np.pi/2)
polygon2.set_xy(polygon2.get_xy()) #this should not change the polygon dataaxs[1].set_title("What I get")
plt.show()
Actual outcome
Expected outcome
I expect that polygon2.set_xy(polygon2.get_xy()) should not change the polygon.
Activity
QuLogic commentedon Mar 12, 2024
I believe this was fixed by #26788, and should be working in 3.9.0