How can i have contour lines invisible in contourf?

145 vues (au cours des 30 derniers jours)
Eyal Barnea
Eyal Barnea le 11 Juin 2017
Lately I purchased a 2017a student licence. Until then I used the institution's licence for 2016a where I could have lines invisible by setting "linewidth" to zero. The 2017a version alerts for error when I use this method. Is there another way to make the lines invisable?
  1 commentaire
KSSV
KSSV le 11 Juin 2017
If you want to make lines invisible...why to plot in first place?

Connectez-vous pour commenter.

Réponse acceptée

Star Strider
Star Strider le 11 Juin 2017
In R2017a, set 'LineStyle' to 'none':
figure(1)
Z = peaks(20);
contourf(Z,10, 'LineStyle','none')

Plus de réponses (1)

Stalin Samuel
Stalin Samuel le 11 Juin 2017
[cs,hc]=contourf(args);
set(hc,'EdgeColor','none')

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