X Tutup
Skip to content

BUG : fix eps corruption when using clipping#3526

Merged
efiring merged 1 commit intomatplotlib:v1.4.xfrom
tacaswell:fix_eps_clip_paths
Sep 17, 2014
Merged

BUG : fix eps corruption when using clipping#3526
efiring merged 1 commit intomatplotlib:v1.4.xfrom
tacaswell:fix_eps_clip_paths

Conversation

@tacaswell
Copy link
Copy Markdown
Member

_get_clip_path was returning '' instead
of the ps-function name like it should have been. This was introduced
in 9b9c0c6 in PR #2927.

Closes #3523

@tacaswell tacaswell added the Release critical For bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions. label Sep 16, 2014
@tacaswell tacaswell added this to the v1.4.1 milestone Sep 16, 2014
_get_clip_path was returning '<built-in function id>' instead
of the ps-function name like it should have been.  This was introduced
in 9b9c0c6 in PR matplotlib#2927.

Closes matplotlib#3523
@WeatherGod
Copy link
Copy Markdown
Member

If you don't mind, I would like to add @bryan-woods to this discussion. I have been meaning to show him how a PR works, and this is a good way to see how it works.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

didn't the PEP8 tool notice this? I know pylint would have warned about namespace collisions. Then again, I guess it isn't really a collision as much as a typo.

@WeatherGod
Copy link
Copy Markdown
Member

Also, why didn't any of our tests see this? What was it about basemap that triggered this?

@WeatherGod
Copy link
Copy Markdown
Member

Looking back at that referenced PR, I see that the original code did use "id" and it was changed to "pid" everywhere except in the return. Lovely...

efiring added a commit that referenced this pull request Sep 17, 2014
BUG : fix eps corruption when using clipping
@efiring efiring merged commit cb36b28 into matplotlib:v1.4.x Sep 17, 2014
@tacaswell
Copy link
Copy Markdown
Member Author

Tests didn't catch it because we don't test the ps backend and apparently no one ever tried to open the file that was generating the issue in the other PR.

pep8 does not do any linting, just white space.

@tacaswell tacaswell deleted the fix_eps_clip_paths branch September 17, 2014 03:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Release critical For bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

X Tutup