Replies: 4 comments 1 reply
|
Hi, |
|
Please find below a small example. The typesetting doesn't finish, I think. |
|
Thanks for the example. As far as I understand, Turtle creates a Tkinter canvas for drawing, which is shown in its own window. There is no way for LaTeX to know that the Python code creates an image which you want to include in the document. The code could look something like this (not tested) \documentclass{article}
\usepackage{pyluatex}
\usepackage{graphicx}
\usepackage{epstopdf}
\begin{document}
\begin{pythonq}
import turtle
... your code ...
turtle.getscreen().getcanvas().postscript(file='image.eps')
\end{pythonq}
\includegraphics{image}
\end{document} |
|
Thanks for the hint, but the typesetting doesn't finish with the following code. |
Uh oh!
There was an error while loading. Please reload this page.
Hi,
I found an example for using
Matplotlibtogether withpyluatex. Does there exists a way to print the result of a turtle figure ?All reactions