Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
Open
Description
Bug summary
There is no documentation, as far as I can tell, explaining how quiver should behave with polar plots, and usingpyplot.quiver
with a polar plot results in odd plotting behaviour.
Code for reproduction
importnumpyasnpfrommatplotlibimportpyplotaspltfig,ax=plt.subplots(subplot_kw={"polar":True})longitude=np.arange(5,365,10)colatitude=90-np.ones_like(longitude)*60sample_x=np.ones_like(longitude)# Northwardsample_y=np.ones_like(longitude)# Eastwardq=ax.quiver(np.radians(longitude),colatitude,sample_x,sample_y,angles="xy")
Actual outcome
Expected outcome
I would expect the code to plot arrows which were vectors pointing all pointing northeast; i.e., I expectsample_x
to be defined as the northward (poleward) vector andsample y
to be defined as the eastward (azimuthal) vector.
Additional information
No response
Operating system
macOS Ventura 13.5
Matplotlib Version
3.7.1
Matplotlib Backend
Installed osx event loop hook. MacOSX
Python version
3.10.11
Jupyter version
4.0.1
Installation
conda