I am trying to import a histogram produced by Stata as an .eps file into Mathematica, but it does not display axes' labels. That is, for some reason, Mathematica does not import .eps as but rather transforms it.
How can I avoid that? As of now, I am using plain
Import["~/hst.eps"]
Mathematica currently (v.9) usually cannot import textual elements from .eps files properly. One possible solution would be to export your plot as .pdf rather than .eps from you plotting software and then
Importgenerated .pdf. If you need to import the text as text you can turn off outlining by using the"TextOutlines" -> Falseoption.If exporting to .pdf from your plotting software is not possible you can convert .eps to .pdf by another program and then
Importgenerated .pdf as above. For your file orders_weekly.eps using thegsEPS2PDFEmbedFontsfunction and thenImporting generated .pdf, I get (Mathematica 8.0.4):I have commented the
"TextOutlines" -> Falseoption because Mathematica 8.0.4 still imports rotated text incorrectly with it. I haven't tested it with v.9 though.Another possibility is to convert all the glypth in the .eps file to oultines. Based on Jens Nöckel's code,
Here
gswin64c.exeis the name of GhostScript executable for 64bit Windows systems, for Linux replace it withgs. Note that you should have GhostScript installed and configured (for Windows you should addgs\binandgs\libto thePATH, wheregsis the top-level Ghostscript directory)