Azzera filtri
Azzera filtri

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

3 visualizzazioni (ultimi 30 giorni)
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 Commenti
Alan Chave
Alan Chave il 20 Ott 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 il 20 Ott 2015
You can zip any kind of file and attach the .zip provided it is not too big.

Accedi per commentare.

Risposte (2)

Kelly Kearney
Kelly Kearney il 19 Ott 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 il 20 Ott 2015
  2 Commenti
Alan Chave
Alan Chave il 20 Ott 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 il 21 Ott 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?

Accedi per commentare.

Categorie

Scopri di più su Contour Plots in Help Center e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by