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

[Bug]: quiver plotting behaves bizarrely with polar plots #26750

Open
@johncoxon

Description

@johncoxon

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

Unknown-2

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp