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

Appearance settings

Setting a thetalim > 2pi gives odd results #16501

Copy link
Copy link
Closed
@dstansby

Description

@dstansby
Issue body actions

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

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.