Skip to content

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

Open
@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 plt
theta = [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

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy