When I -graph export- figures that contain items with transparency (using updated Stata 15.1 MP on Mac OSX), I get two issues:
1. When exporting to .eps format, I see no transparency at all. (I think the response is probably that the eps format lacks some ability for transparency ((similar to how it has issues using certain system fontface/styles)) , but I couldn't find anything in the manuals that led me to expect this behavior)
2. More importantly (to me), when I export the graph to .pdf (my preferred file export format for my workflow) the transparent elements do not show up if I import the graph into MS Word for Windows - they do however show up in the same document on MS Word for Mac OSX (all versions of MS office and OS are latest updates). Any elements that have transparency within the graphs do not show up on the Windows version. Transparent elements in the graph do show up if I export to png.
A few more notes:
and then :
Any non-transparent elements show up without issues in all versions of the figure in both types of OS.
1. When exporting to .eps format, I see no transparency at all. (I think the response is probably that the eps format lacks some ability for transparency ((similar to how it has issues using certain system fontface/styles)) , but I couldn't find anything in the manuals that led me to expect this behavior)
2. More importantly (to me), when I export the graph to .pdf (my preferred file export format for my workflow) the transparent elements do not show up if I import the graph into MS Word for Windows - they do however show up in the same document on MS Word for Mac OSX (all versions of MS office and OS are latest updates). Any elements that have transparency within the graphs do not show up on the Windows version. Transparent elements in the graph do show up if I export to png.
A few more notes:
- By transparency, I mean something like (see - help colorstyle-):
Code:
scatter x y, mcolor(red%50)
Code:
graph export "fig1.png" , as(png) // transparent elements show up in Mac AND windows version of word, but I prefer not to use this since the resolution for png file is low quality in Word files - I prefer pdf or eps graph export "fig1.pdf" , as(pdf) //transparent elements only show up in Mac version of Word graph export "fig1.eps" , as(eps) //transparent elements appear solid
- By 'import the graph into MS Word' I mean that I have tried both drag/dropping the file into the document and using the 'insert from file' and 'insert picture' from the drop-down menus in MS Word. I get the same result with each method. ((I assume this has to do with the way that MS Word for Windows converts the pdf image when it's imported? [R figures with transparency show up without any issue] ))
Comment