Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fix captions for plot directive in latex target #6327

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

Merged
tacaswell merged 1 commit into matplotlib:master from jarrodmillman:latex_figure_caption
Sep 28, 2016

Conversation

Copy link
Contributor

@jarrodmillman jarrodmillman commented Apr 23, 2016
edited
Loading

Builds on #4702

@tacaswell tacaswell added this to the 2.1 (next point release) milestone Apr 29, 2016
Copy link
Member

@mdboom I think you are the only person around here how knows enough sphinx to review this.

Copy link
Member

That said, this seems reasonable to me and I am willing to believe @jarrodmillman that this works.

jarrodmillman added a commit to jarrodmillman/permute that referenced this pull request May 23, 2016
Copy link
Member

NelleV commented Sep 17, 2016

Hi @jarrodmillman,
Thanks for the patch!
Do you mind rebasing? This branch is a bit old...
Cheers,
N

Copy link
Contributor Author

@NelleV I've rebased. One test failed:
https://ci.appveyor.com/project/mdboom/matplotlib/build/1.0.2668/job/s5uiy60v9mdioyty

But according to the log, it was a problem cloning the repo:

Build started
ECHO %PYTHON_VERSION% PYTEST=%USE_PYTEST% %CONDA_INSTALL_LOCN%
2.7 PYTEST=no C:\Miniconda
git clone -q https://github.com/matplotlib/matplotlib.git C:\projects\matplotlib
fatal: early EOF
fatal: The remote end hung up unexpectedly
fatal: index-pack failed
error: RPC failed; curl 18 transfer closed with outstanding read data remaining
Command exited with code 128
python visual_tests.py
python: can't open file 'visual_tests.py': [Errno 2] No such file or directory
Command exited with code 2

It wasn't apparent to me how to get AppVeyor to try the build again.

Copy link
Contributor Author

I rebased again and now there is a different failure:
https://ci.appveyor.com/project/mdboom/matplotlib/build/1.0.2694/job/4xtfn67it73jrf6p

Here is the complaint:

======================================================================
FAIL: matplotlib.tests.test_backend_pgf.test_pdflatex
----------------------------------------------------------------------
Traceback (most recent call last):
 File "C:\Miniconda\envs\test-environment\lib\site-packages\nose\case.py", line 197, in runTest
 self.test(*self.arg)
 File "c:\projects\matplotlib\lib\matplotlib\testing\decorators.py", line 150, in wrapped_callable
 func(*args, **kwargs)
 File "c:\projects\matplotlib\lib\matplotlib\testing\decorators.py", line 476, in backend_switcher
 result = func(*args, **kwargs)
 File "c:\projects\matplotlib\lib\matplotlib\tests\test_backend_pgf.py", line 106, in test_pdflatex
 compare_figure('pgf_pdflatex.pdf', tol=0)
 File "c:\projects\matplotlib\lib\matplotlib\tests\test_backend_pgf.py", line 49, in compare_figure
 raise ImageComparisonFailure(err)
ImageComparisonFailure: Error: Image files did not match.
 RMS Value: 14.0418635074
 Expected: 
 C:\projects\matplotlib\result_images\test_backend_pgf\expected_pgf_pdflatex_pdf.png
 Actual: 
 C:\projects\matplotlib\result_images\test_backend_pgf\pgf_pdflatex_pdf.png
 Difference:
 C:\projects\matplotlib\result_images\test_backend_pgf\pgf_pdflatex_pdf-failed-diff.png
 Tolerance: 
 0
----------------------------------------------------------------------
Ran 6166 tests in 1671.759s
FAILED (KNOWNFAIL=37, SKIP=24, failures=1)

I took a look at pgf_pdflatex_pdf.png and expected_pgf_pdflatex_pdf.png. I doesn't appear the error was related to my modification of the Sphinx PDF template. However, I am not sure what happened.

I'll rebase again soon and see if the error persists.

Copy link
Member

NelleV commented Sep 21, 2016

Hi Jarrod,
The appveyor tests are very unreliable: I wouldn't worry too much about this.
Thanks for rebasing. I'll test on my computer tonight.

Copy link
Member

NelleV commented Sep 28, 2016

This looks good to me. 👍
@jarrodmillman by curiosity, do you use the plot directive in any projects?

@NelleV NelleV changed the title (削除) Fix captions for plot directive in latex target (削除ここまで) (追記) [MRG+1] Fix captions for plot directive in latex target (追記ここまで) Sep 28, 2016
@tacaswell tacaswell merged commit e4da584 into matplotlib:master Sep 28, 2016
@QuLogic QuLogic changed the title (削除) [MRG+1] Fix captions for plot directive in latex target (削除ここまで) (追記) Fix captions for plot directive in latex target (追記ここまで) Oct 16, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers
No reviews
Projects
None yet
Milestone
v2.1
Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /