Navigation Menu

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

backend_pgf: clip paths within the backend (fixes #1857) #1858

Merged
merged 1 commit into from Apr 18, 2013
Merged

backend_pgf: clip paths within the backend (fixes #1857) #1858

merged 1 commit into from Apr 18, 2013

Conversation

pwuertz
Copy link
Contributor

@pwuertz pwuertz commented Mar 26, 2013

Because LaTeX doesn't handle very large numbers (#1857), this PR moves some of the clipping operations from the pgf-code into backend_pgf.

@pwuertz
Copy link
Contributor Author

pwuertz commented Mar 27, 2013

Weird, python 2.6 and 3.x tests are passing on Travis, 2.7 is not (although it passes on my machine with 2.7). It also won't show me the log-file to see what's wrong :/

@mdboom
Copy link
Member

mdboom commented Mar 27, 2013

It looks like the Travis failure was a networking error when trying to install PIL, so in other words a false result. Looks like a reasonable fix to me.

Should this perhaps go on 1.2.x since it's a bugfix? Also, it could use a test -- I don't know if it needs to be an image comparison test, but something to just make sure the really large number doesn't show up in the output should be sufficient.

@pwuertz
Copy link
Contributor Author

pwuertz commented Mar 31, 2013

I just added a test that triggers #1857 and now passes with clipping added to draw_path.

Also, apparently some restructuring has been applied to master and a failed LaTeX call now results in an error looking up subprocess.CalledProcessError. I forwarded the missing Exception in matplotlib.compat.subprocess.

If this is fine with you we can apply this to master and I'll prepare another PR for 1.2 without the subprocess fix.

pelson added a commit that referenced this pull request Apr 18, 2013
backend_pgf: clip paths within the backend (fixes #1857)
@pelson pelson merged commit 6e94330 into matplotlib:master Apr 18, 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

4 participants