Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9097705
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T00:10:55+00:00 2026-06-17T00:10:55+00:00

I have a filled.contour plot that I would like to save as SVG (or

  • 0

I have a filled.contour plot that I would like to save as SVG (or EPS) for publication. However I see that the quality of the SVG is significantly worse than that of the TIFF. The plot in the SVG file appears to have some kinds of white boxes/lines/rectangles which do not appear when I save the file in TIFF format. In the TIFF format the color transitions are much smoother and the white rectangles do not appear

Is there anyway to avoid this? I’ve tried Linux and Mac, getting similar results

Below is the TIFF file and a screenshot of the SVG file that shows the problem.

TIFF
SVG screenshot

The code to produce the plots is the following:

x <- 1:5
y <- 1:5
z <- matrix(outer(x,y,"+"),nrow=5)
filled.contour(x,y,z)
filled.contour(x,y,z,color.palette=rainbow)
z2 <- z
z2[5,5] <- Inf
filled.contour(x,y,z2,col=rainbow(100),nlevels=100)
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T00:10:57+00:00Added an answer on June 17, 2026 at 12:10 am

    Believe it or not this is an anti-aliasing artifact.

    http://r.789695.n4.nabble.com/Suppressing-internal-grid-in-filled-contour-td867081.html

    On linux I can reproduce your problem, but when I pass the exact same file created in linux, into a windows OS virtual machine I have running – the SVG image appears fine, so it’s a problem of the viewing software and anti-aliasing settings, not the R output.

    I hope this solves your problem.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a NSMutableArray filled with NSMutableArray's. I would like to fill my table
I have to produce filled.contour plots that have some kind of symmetry in the
I have a datagrid that I have filled with data from a sql database.
I've created an app which contains form and that have to filled up in
Importing a spreadsheet I have filled a DataTable object with that data and returns
I have the following Python code which I am using to plot a filled
I have filled my drop down list on client side using jQuery script. However,
I have a discussions controller for which I would like to have an edit
I have 3 dimensions that I want to plot, and I want the third
I am trying to create a filled contour plot in matplotlib (Win7, 1.1.0). I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.