Dear Statalisters,

I am producing several graphs in a loop using the twoway connected command. Before exporting them in both .eps and .pdf formats using the command graph export, I added a sleep 5000 line to allow Stata to render the graphs fully.

However, the figures do not appear fully rendered when I click on each file but they are gradually compiled every time. I have the same issue when I import the files in LaTeX and compile the whole file. That is, the graphs are rendered gradually in the pdf file, and every time I move the cursor LaTeX starts rendering the graphs again and again. As a result, it is impossible to print the document at all.

The issue clearly starts from Stata partial compilation but this is the first time I have ever experienced such a problem. Can you please give me some advice on how to proceed?


Thank you.