Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Exporting graphs in eps format

    Hi,

    I have the following issue. I generate some graphs using marginsplot and I save them in eps file. This is the code:

    Code:
    marginsplot, yline(0, lpattern(dash)) recast(line) recastci(rarea) ciopt(color(%20)) ylabel(-0.05(0.01)0.15, labsize(small)) xlabel(0(0.05)1, labsize(small))
    I use ciopt to get transaparency in the plot. The resulting graph is something like this:

    Click image for larger version

Name:	fig1.png
Views:	1
Size:	53.4 KB
ID:	1482567


    Then I export the graph in eps format, since I want to include it in a LaTex file. But then, transparency disappears. The graph looks like to following:

    Click image for larger version

Name:	fig1_bis.png
Views:	1
Size:	38.7 KB
ID:	1482568


    Which is the reason for that? Does transparency works only for gph files? Thanks in advance.
    Last edited by Dario Maimone Ansaldo Patti; 07 Feb 2019, 16:02.

  • #2
    On the discussion linked to below, a StataCorp representative tells us that EPS is a legacy format that does not support transparency. It may be time to move to SVG or some other format.

    https://www.statalist.org/forums/for...rd-for-windows

    Comment


    • #3
      Thanks William. Yes, this seems to be the better solution.

      Comment

      Working...
      X