You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We see it under appveyor and it happens to me locally.
I do not know when it started to fail, because test was disabled prior to #6757, but I will try to figure it out.
If it proves to be too much of a time sink, maybe skip it so that the appveyor chcekmark is useful again while it gets sorted out?
I thought about the same.
I tried to solve this without any luck. It is the only test that uses pdflatex, I do not have ideas how it is related due to lack of knowledge in pdf generation.
I think @QuLogic is right. If the right fonts are not available tex is very happy to select a different font. I had to install extra font packages to get the tests passing on travis
Looks like all the fonts from cm-super package. Installing it...
>python tests.py -v matplotlib.tests.test_backend_pgf:test_pdflatex
Python byte-compilation optimization level: 0
lib/matplotlib/tests/test_backend_pgf.py::test_pdflatex ... ok
----------------------------------------------------------------------
Ran 1 test in 1.552s
OK
🎉
I think @QuLogic is right. If the right fonts are not available tex is very happy to select a different font. I had to install extra font packages to get the tests passing on travis
Then we should somehow check if font required by test is available.
We might want to consider just turning up the tolerance and accept that the pgf tests are basically only smoke test. The right solution would be to check for the installed latex packages and fonts but I suspect that would be a lot of work.
This issue has been marked "inactive" because it has been 365 days since the last comment. If this issue is still present in recent Matplotlib releases, or the feature request is still wanted, please leave a comment and this label will be removed. If there are no updates in another 30 days, this issue will be automatically closed, but you are free to re-open or create a new issue if needed. We value issue reports, and this procedure is meant to help us resurface and prioritize issues that have not been addressed yet, not make them disappear. Thanks for your help!
Activity
tacaswell commentedon Sep 22, 2016
@Kojoley Thanks for looking into this.
These tests seem to be very sensitive to exactly how tex is set up.
attn @jenshnielsen @pwuertz
tacaswell commentedon Sep 22, 2016
If it proves to be too much of a time sink, maybe skip it so that the appveyor chcekmark is useful again while it gets sorted out?
Kojoley commentedon Sep 22, 2016
I thought about the same.
I tried to solve this without any luck. It is the only test that uses
pdflatex, I do not have ideas how it is related due to lack of knowledge in pdf generation.QuLogic commentedon Sep 22, 2016
Can you check the font properties on the produced PDFs? Maybe some font with slightly different attributes is being used.
jenshnielsen commentedon Sep 23, 2016
I think @QuLogic is right. If the right fonts are not available tex is very happy to select a different font. I had to install extra font packages to get the tests passing on travis
Kojoley commentedon Sep 23, 2016
The pdf is in the first post.
toolbin-pdf_info.ps
Difference is
Looks like all the fonts from
cm-superpackage. Installing it...🎉
Then we should somehow check if font required by test is available.
Kojoley commentedon Sep 23, 2016
I have no luck at finding a conda recipe that includes
cm-super. It is a problem becausempm --install=cm-superis slowand appveyor cache size is limited to 100MB. Actually I cannot find
mpmcache location too.jenshnielsen commentedon Sep 25, 2016
We might want to consider just turning up the tolerance and accept that the pgf tests are basically only smoke test. The right solution would be to check for the installed latex packages and fonts but I suspect that would be a lot of work.
Kojoley commentedon Sep 25, 2016
Maybe it is acceptable just to download these 3 fonts instead of the whole
cm-superpackage?jenshnielsen commentedon Sep 25, 2016
I think there are 2 separate concerns
Kojoley commentedon Sep 25, 2016
I tried to download fonts manually and place it to
%USERPROFILE%\.fontor%windir%\Fontswithout any luck (https://ci.appveyor.com/project/Kojoley/matplotlib/build/1.0.9).I just have noticed that
mpmis so slow not because of mirror/internet, but because it loads CPU to 100% (https://sourceforge.net/p/miktex/bugs/2402/).So I think it is better just disable the test for windows as for now.
github-actions commentedon Mar 30, 2023
This issue has been marked "inactive" because it has been 365 days since the last comment. If this issue is still present in recent Matplotlib releases, or the feature request is still wanted, please leave a comment and this label will be removed. If there are no updates in another 30 days, this issue will be automatically closed, but you are free to re-open or create a new issue if needed. We value issue reports, and this procedure is meant to help us resurface and prioritize issues that have not been addressed yet, not make them disappear. Thanks for your help!
Skip pgf pdflatex text if cm-super is not installed
Skip pgf pdflatex text if cm-super is not installed
Skip pgf pdflatex text if cm-super is not installed
Skip pgf pdflatex text if cm-super is not installed