Re: export to ps, transparency issue
- To: mathgroup at smc.vnet.net
- Subject: [mg95635] Re: export to ps, transparency issue
- From: "Sjoerd C. de Vries" <sjoerd.c.devries at gmail.com>
- Date: Fri, 23 Jan 2009 05:08:05 -0500 (EST)
- References: <gl9mtl$ajl$1@smc.vnet.net>
Hi Ruth, Did you really use the Export function as shown here? Problem is that the only postscript that Mathematica exports is Encapsulated Postscript, which has a file extension eps. Since you are using ps (which is the extension for standard postscript, unsupported by Mathematica) Mathematica does not know what to export. The primary problem is that Postscript level 2 does not support transparancy, at least not as far as I know. This is the postscript level that Mathematica exports to (with a few lvl 3 extensions). As of PDF 1.4, transparancy is supported. Mathematica does PDF 1.5. If you really want eps output you have to forget transparency. Cheers -- Sjoerd On Jan 22, 1:56 pm, Ruth Lazkoz S=E1ez <ruth.laz... at ehu.es> wrote: > Dear all, > > We want to overlay to contourplots, so we do > > ContourPlot[{x^2/4 + y^2/16}, {x, -6, 6}, {y, -5, 5}, > Contours -> {1.}, > ContourShading -> {{Red, Opacity[0.4]}, Opacity[0.]}, > ContourStyle -> Opacity[0.2]] > > ContourPlot[{x^2/25 + y^2/9}, {x, -6, 6}, {y, -5, 5}, > Contours -> {1.}, > ContourShading -> {{Blue, Opacity[0.4]}, Opacity[0.]}] > > Show[%,%%] > > The question is that when we do Export["contours.ps",%] the resulting > image has a black area in the non-coloured region, which appears white > on the screen. No problem when exporting to pdf. > > Is there some replacement rule which will do the trick? > > Thanks a lot, > > Ruth Lazkoz