Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork8.2k
Open
Description
When creating a polar plot with inverted theta direction and modifying the location of zero, the radial grid and outer boundary are missing for some locations of zero.
importnumpyasnpimportmatplotlib.pyplotaspltr=np.arange(0,2,0.01)theta=2*np.pi*rfig,ax=plt.subplots(subplot_kw={'projection':'polar'})ax.plot(theta,r)ax.set_theta_direction(-1)angle=10# 20 is not working, 10 is workingax.set_theta_zero_location("N",angle)plt.savefig('expected-outcome.png')angle=20# 20 is not working, 10 is workingax.set_theta_zero_location("N",angle)plt.savefig('actual-outcome.png')
This is the outcome (can be reproduced with angle=20):
And this is what it should look like (can be reproduced with angle=10):
importmatplotlibprint(matplotlib.__version__)importplatformprint(platform.python_version())3.4.23.9.2
When I go back to matplotlib release v3.2.2 I don't have this issue.