8000 [Bug]: `plt.autoscale()` fails for partial `Arc` · Issue #23329 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content
[Bug]: plt.autoscale() fails for partial Arc #23329
Closed
@StFroese

Description

@StFroese

Bug summary

Using plt.autoscale() for an Arc with theta1 & theta2 for a not full ellipse results in a wrong scaling.

For example:

Arc((0,0),1,1,theta1=0,theta2=90)

Code for reproduction

import matplotlib.pyplot as plt
from matplotlib.patches import Arc

fig, ax = plt.subplots()
ax.add_patch(Arc((0,0),1,1,theta1=0,theta2=90))

plt.autoscale()
plt.show()

Actual outcome

Figure

Expected outcome

I think it would be better to have a zoomed in version of the partial arc. Like this:

FigureC

Additional information

No response

Operating system

No response

Matplotlib Version

3.5.2

Matplotlib Backend

No response

Python version

No response

Jupyter version

No response

Installation

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions