Skip to content

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

@corranwebster

Description

@corranwebster

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions