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

Fixed hatch clipping. #2003

Merged
merged 3 commits into from May 15, 2013
Merged

Conversation

pelson
Copy link
Member

@pelson pelson commented May 14, 2013

Replaces #2001

@pelson pelson mentioned this pull request May 14, 2013
@mdboom
Copy link
Member

mdboom commented May 14, 2013

Looks good. I'll merge once Travis has had a chance to do its thing.

points = [(0.5,0.5), (1.5,0.5)]

assert np.all(path.contains_points(points) == [True, False])


@image_comparison(baseline_images=["clip_path_clipping"], remove_text=True)
def test_clipping():
exterior = mpath.Path.unit_rectangle()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After #2010 is merged, this can just be:

exterior = mpath.Path.unit_rectangle().deepcopy()

We should probably merge #2010 first, make that update here, and then merge this.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is against v1.2.x where #2010 is against master. I think it needs to be the other way around...

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indeed. So we can merge this, merge #2010, merge 1.2.x over to master, and then make my suggested change as part of that. (It doesn't really matter, but that feels like the path of least resistance...)

@pelson
Copy link
Member Author

pelson commented May 15, 2013

@mdboom - I don't think there is anything left for me to do in this PR. Is it good for merge?

mdboom added a commit that referenced this pull request May 15, 2013
@mdboom mdboom merged commit a54e8b3 into matplotlib:v1.2.x May 15, 2013
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

Successfully merging this pull request may close these issues.

None yet

2 participants