Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #12266
| From | Szymon Roziewski <szymon.roziewski@gmail.com> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: Export a graphical plot to pdf file |
| Date | 2012-11-07 05:58 +0000 |
| Message-ID | <k7ct9a$dql$1@smc.vnet.net> (permalink) |
| References | <CAMxxcfYqCu8LEYN5YW9YF-g9vOd6uyZvgYvw7TdrATn7DN7psQ@mail.gmail.com> |
| Organization | Time-Warner Telecom |
Hello,
I've found such a suggestion
antialias[g_] :=
ImageResize[
Rasterize[g, "Image", ImageResolution -> 600, Background -> White],
Scaled[2]]
g = ContourPlot[x^2 + y^2, {x, -1, 1}, {y, -1, 1}];
img = antialias[Show[g, Axes -> False, Boxed -> False]];
Export["file.pdf", img, "AllowRasterization" -> False]
But the background is lightred although I set it up to be white.
Bes wishes,
Szymon Roziewski
On 6 November 2012 16:03, Szymon Roziewski <szymon.roziewski@gmail.com>wrote:
> Hi there,
>
> I have a ContourPlot result which I need to put into pdf file.
> The problem is that the filled area is in a mess, I mean there are lots of
> thin white stripes on it.
>
> For example, please try out this bunch of code
>
> gr = ContourPlot[x^2 + y^2, {x, -1, 1}, {y, -1, 1}];
> Export["file.pdf", gr]
>
>
> Best regards,
> Szymon Roziewski
>
>
--
Z wyrazami szacunku,
Szymon Roziewski
Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread
Re: Export a graphical plot to pdf file Szymon Roziewski <szymon.roziewski@gmail.com> - 2012-11-07 05:58 +0000
csiph-web