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

Fix the clippath renderering so that it uses no-clip unsigned chars #1846

Merged
merged 2 commits into from Mar 25, 2013

Conversation

mdboom
Copy link
Member

@mdboom mdboom commented Mar 22, 2013

This was discovered during the discussion in the e-mail thread "removing paths inside polygon".

When paths are affected by a clip path, the scanline type being used for rendering was wrong. It was grey8, but should be no_clip_grey8. This resulted in horizontal lines looking thicker than they should.

This also fixes a related performance bug where the buffer for the alpha mask was over-allocated by a factor of 4.

@mdboom
Copy link
Member Author

mdboom commented Mar 22, 2013

Note to self: before merging this, it should have a test.

@pelson
Copy link
Member

pelson commented Mar 22, 2013

Wow, this is low level. Nice spot.

before merging this, it should have a test.

Agreed.

Whilst I agree it's a bug fix, I also wonder if we are better off sticking this in v1.3 to avoid any potential negative impacts this change could have?

@mdboom
Copy link
Member Author

mdboom commented Mar 25, 2013

I think I'm leaning toward putting this in 1.2.x -- while it may change the appearance of some plots, it should do what the user means and give lines that are the requested thickness. Since none of the tests failed or required tweaking, I'm even more on the side of calling this a simple bugfix. Any tie-breaking points of view? 😉

@dmcdougall
Copy link
Member

1.2 sounds good to me.

Before you push the green button to release the magical GitHub ponies, is there still going to be a test?

@mdboom
Copy link
Member Author

mdboom commented Mar 25, 2013

Yes -- a test shall appear shortly.

@dmcdougall
Copy link
Member

@mdboom Thanks :)

@mdboom
Copy link
Member Author

mdboom commented Mar 25, 2013

Travis failure is false.

mdboom added a commit that referenced this pull request Mar 25, 2013
Fix the clippath renderering so that it uses no-clip unsigned chars
@mdboom mdboom merged commit c789f0f into matplotlib:v1.2.x Mar 25, 2013
@mdboom mdboom deleted the agg-clip-rendering-fix branch August 7, 2014 13:49
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

3 participants