We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug summary
Code for reproduction
import matplotlib.pyplot as plt from matplotlib.patches import Arc # Ellipse parameters R = 1.0 x, y = 0.0, 0.0 a, b = 2.0*R, R # Figure setup fig_width, fig_height = 3.30, 3.30 fig = plt.figure(figsize=(fig_width, fig_height), frameon=False) ax = fig.add_axes([0.0, 0.0, 1.0, 1.0], aspect='equal') ax.set_axis_off() ax.set_xlim(-R*1.05, R*1.05) ax.set_ylim(-R*1.05, R*1.05) # Axes ax.axhline(0.0) ax.axvline(0.0) # 45 degree line ax.plot([0.0, 1.0], [0.0, 1.0], 'k--') # Arcs ax.add_patch(Arc((x, y), a, b, theta1=0.0, theta2=360.0, edgecolor='k')) ax.add_patch(Arc((x, y), a, b, theta1=0.0, theta2=45.0, edgecolor='r', lw=1.5)) fig.savefig('Arc_patch_bug.png')
Actual outcome
Expected outcome
Matplotlib version
The text was updated successfully, but these errors were encountered:
I'm trying to run your example, but you haven't specified angle_deg anywhere in the code (so adding the patches fails).
angle_deg
Sorry, something went wrong.
I can reproduce this using a stripped down example:
import matplotlib.pyplot as plt from matplotlib.patches import Arc # Ellipse parameters R = 1 x, y = 0, 0 a, b = 2 * R, R # Figure setup fig, ax = plt.subplots() ax.set_xlim(-R * 1.05, R * 1.05) ax.set_ylim(-R * 1.05, R * 1.05) # 45 degree line ax.plot([0, 1], [0, 1]) # Arcs ax.add_patch(Arc((x, y), a, b, theta1=0, theta2=360, edgecolor='k')) ax.add_patch(Arc((x, y), a, b, theta1=0, theta2=45, edgecolor='r', lw=1.5)) plt.show()
I'm guessing this is because the aspect ratio of the ellipse isn't 1
Thanks for pointing out that error. I've corrected it in the original report.
dstansby
No branches or pull requests
Uh oh!
There was an error while loading. Please reload this page.
Bug report
Bug summary
Code for reproduction
Actual outcome
Expected outcome
Matplotlib version
The text was updated successfully, but these errors were encountered: