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

Inconsistent use of angle units (degrees vs radians) in polar axes #4986

Open
Labels
@dww100

Description

@dww100

When making a polar plot the units used for input data are radians, however the axes produced for the plot are in degrees. This seems unnecessarily confusing. A short illustrative example is provided below:

import matplotlib.pyplot as plttheta = [1.5, 3, 10, 90, 180]r = range(1,6)ax = plt.subplot(111,polar=True)ax.scatter(theta,r)plt.show()

polar-rad-deg-issue

This extends to the placing of axis labels etc, i.e. to move the r axis labels to the vertical grid line you use degrees:

ax.set_rgrids(r, angle = 90)

As mentioned to@jenshnielsen

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp