8000 Setting a thetalim > 2pi gives odd results · Issue #16501 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content
Setting a thetalim > 2pi gives odd results #16501
Closed
@dstansby

Description

@dstansby

Bug report

Bug summary

Doing set_thetalim(0, >2pi) on a polar plot produces an odd result; see below. There are 400 and 500 degree ticks that probably shouldn't be there, and a floating 200 degree tick (but no 300 degree tick...).

I would be pro erroring out if someone tries to set a limit that's not in the range [0, 2pi] - any thoughts?

Code for reproduction

import numpy as np
import matplotlib.pyplot as plt

ax = plt.subplot(111, projection='polar')
ax.set_thetalim(0, 3 * np.pi)

plt.show()

Actual outcome

Figure_1

Expected outcome

Matplotlib version

  • Operating system:
  • Matplotlib version:
  • Matplotlib backend (print(matplotlib.get_backend())):
  • Python version:
  • Jupyter version (if applicable):
  • Other libraries:

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0