Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #12266 > unrolled thread

Re: Export a graphical plot to pdf file

Started bySzymon Roziewski <szymon.roziewski@gmail.com>
First post2012-11-07 05:58 +0000
Last post2012-11-07 05:58 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.soft-sys.math.mathematica

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Export a graphical plot to pdf file Szymon Roziewski <szymon.roziewski@gmail.com> - 2012-11-07 05:58 +0000

#12266 — Re: Export a graphical plot to pdf file

FromSzymon Roziewski <szymon.roziewski@gmail.com>
Date2012-11-07 05:58 +0000
SubjectRe: Export a graphical plot to pdf file
Message-ID<k7ct9a$dql$1@smc.vnet.net>
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

[toc] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web