Skip to content
New issue

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

Agg backend doesn't draw line to arc start point #961

Open
corranwebster opened this issue Jul 23, 2022 · 0 comments
Open

Agg backend doesn't draw line to arc start point #961

corranwebster opened this issue Jul 23, 2022 · 0 comments

Comments

@corranwebster
Copy link
Contributor

corranwebster commented Jul 23, 2022

Given:

x, y = 100, 100
gc.begin_path()
gc.move_to(x - 12, y - 12)
gc.arc(x, y, 12.0, 0.0, np.pi)
gc.line_to(x - 12, y - 12)
gc.draw_path()

Compare Agg:
image
vs. Quartz:
image

From the documentation:

enable/kiva/basecore2d.py

Lines 607 to 609 in bb2c358

If there is a current path and the current point is not the initial
point of the arc, a line will be drawn to the start of the arc. If
there is no current path, then no line will be drawn.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant