how do I remove lines that show up in contour plots?

4 vues (au cours des 30 derniers jours)
Alan Chave
Alan Chave le 19 Oct 2015
Commenté : Walter Roberson le 21 Oct 2015
When I save a contour plot created using contourf as a .eps or .pdf file, there are vertical and diagonal lines through the cells. These do not appear in .fig files or other versions of the output. These are ugly and distracting. How do I get rid of them? I am running R2014a. This did not happen in earlier versions of Matlab.
  4 commentaires
Alan Chave
Alan Chave le 20 Oct 2015
It is R2014b. The problem only occurs for .eps and .pdf, but this site will not allow me to attach either file format
Walter Roberson
Walter Roberson le 20 Oct 2015
You can zip any kind of file and attach the .zip provided it is not too big.

Connectez-vous pour commenter.

Réponses (2)

Kelly Kearney
Kelly Kearney le 19 Oct 2015
I'm guessing these are antialiasing artifacts, as discussed in this thread. The problem has been around for a long time, but some recent changes to the way Matlab triangulates all patch objects in the new graphics system means that the problem rears its head far more often in R2014b+.

Walter Roberson
Walter Roberson le 20 Oct 2015
  2 commentaires
Alan Chave
Alan Chave le 20 Oct 2015
This raises the same issue that I did, but does not offer solutions. None of the solutions offered in my first post work at all, and I spent much of the day trying them (except for editing the .eps file, as I do not have enough understanding of postscript to do that). My present position is that Matlab cannot handle my graphics needs, and I will have to look elsewhere. The view point that it is not a matlab issue leaves me cold, as something changed from R2014a and later releases that breaks output in .eps and .pdf format.
Walter Roberson
Walter Roberson le 21 Oct 2015
Alan, there are bugs in many of the common PDF readers with polygons that are too simple ("Too soft"), and there are bugs in many of the common PDF readers with polygons that are too complex ("Too hard!"). You appear to be presuming that there is a Baby Bear Solution that will be "Just right!" for all of them. But do you know that to be true? The nature of bugs is that the intermediate settings could be wrong for all of the most common PDF readers.
If Mathworks needs to choose which PDF readers to be compatible with, if it is not possible to create output that works with them all, then which ones would you say are mandatory that MATLAB works around the bugs of, and which ones would you say it is okay for the MATLAB output to not work with?

Connectez-vous pour commenter.

Catégories

En savoir plus sur Contour Plots dans Help Center et File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by