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

Arcs with large radii in small #17547

Closed
Labels
Release criticalFor bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions.
Milestone
@LanceJenkinZA

Description

@LanceJenkinZA

Bug report

Bug summary

Nomatplotlib.patches.Arc is being rendering when trying to add a small segment of a circle with a large radius.

If I increase the x and y limits to include a larger section of the arc then it is rendered.

Code for reproduction

importmatplotlib.pylabasplfrommatplotlibimportpatchesfig=pl.figure()ax=pl.gca()x=212.02529006006412y=-2115.252900600641diameter=4261.655587271447a=patches.Arc((x,y),diameter,diameter,fill=False)ax.add_patch(a)pl.xlim(0,20)pl.ylim(0,20)fig.show()

Actual outcome

An empty figure:

image

Expected outcome

A figure with a small section of an arc starting a$(0, 5)$ and ending at$(7.98894818241678, 10.0)$
image

Matplotlib version

  • Operating system: Windows 10 Pro
  • Matplotlib version: 3.2.1
  • Matplotlib backend (print(matplotlib.get_backend())): module://ipykernel.pylab.backend_inline
  • Python version: Python 3.7.5
  • Jupyter version (if applicable): Version 0.35.6
  • Other libraries:

Metadata

Metadata

Assignees

No one assigned

    Labels

    Release criticalFor bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp