Stata for Mac PDF and “set graphics on”
| Gabriel |
I recently noted that graph exporting to PDF in Stata for Mac is fixed. Turns out that this is only partially true. It works and creates beautiful output, but unlike the other “graph export” options it only works if you have “set graphics on” in the Stata GUI. If you’re running it as Stata console or have graphics set off in Stata GUI, it simply doesn’t work. (I do this when batching a lot of graphs as it is faster and less distracting).
My understanding is that this has something to do with how Stata relies on Mac’s Quartz driver to render PDF so it’s not really feasible to fix. So basically you have three options:
1) Do it in the GUI with “set graphics on” and accept the CPU performance hit and distraction of all the graphs rendering.
2) Use my graphexportpdf ado file or the “graph print” command with CUPS-PDF as the print driver.
3) Stick to using EPS