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

cannot import matplotlib generated pdf plot using `\includegraphics` #120

Open
gasagna opened this Issue Jan 8, 2017 · 2 comments

Comments

Projects
None yet
2 participants
@gasagna

gasagna commented Jan 8, 2017

Hi,

It seems there is an issue in importing with \includegraphics some pdf plots generated with matplotib, i.e. those generated by the commands matshow and imshow. The minimal working example is attached here (you might need to change the absolute path to the pdf file in the ipe text element).

The latex compilation reports
screen shot 2017-01-08 at 07 47 36

and the interesting lines in the latexrun log are

(grfext)             [.png,.pdf,.jpg,.mps,.jpeg,.jbig2,.jb2,.PNG,.PDF,.JPG,.JPE
G,.JBIG2,.JB2,.eps]
(grfext)             \AppendGraphicsExtensions on input line 456.

(/usr/local/texlive/2016/texmf-dist/tex/latex/latexconfig/epstopdf-sys.cfg
File: epstopdf-sys.cfg 2010/07/13 v1.3 Configuration of (r)epstopdf for TeX Liv
e
))
</Users/davide/example.pdf, id=1, 433.62pt x 433.62pt>
File: /Users/davide/example.pdf Graphic file (type pdf)

<use /Users/davide/example.pdf>
Package pdftex.def Info: /Users/davide/example.pdf used on input line 51.
(pdftex.def)             Requested size: 433.61894pt x 433.61894pt.

Overfull \hbox (170.0pt too wide) in paragraph at lines 55--56
[][] 
 []

[1

 </Users/davide/example.pdf{/usr/local/texlive/2016/texmf-var/fonts/map/pdftex/
updmap/pdftex.map}>] (./ipetemp.aux) ) 
Here is how much of TeX's memory you used

Thanks!

Archive.zip

@otfried

This comment has been minimized.

Show comment
Hide comment
@otfried

otfried Jan 9, 2017

Owner

Have you considered using the Ipe matplotlib backend?

https://github.com/otfried/ipe-tools/tree/master/matplotlib

(Has nothing to do with this bug, though.)

Owner

otfried commented Jan 9, 2017

Have you considered using the Ipe matplotlib backend?

https://github.com/otfried/ipe-tools/tree/master/matplotlib

(Has nothing to do with this bug, though.)

@gasagna

This comment has been minimized.

Show comment
Hide comment
@gasagna

gasagna Jan 26, 2017

No, have not tried. I guess the problem lies on the matplotlib side rather then here. I know there have been some updates in the imshow/matshow code with the new matplotlib version. I will try again.

gasagna commented Jan 26, 2017

No, have not tried. I guess the problem lies on the matplotlib side rather then here. I know there have been some updates in the imshow/matshow code with the new matplotlib version. I will try again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment