Removing lines from contour plots

Hello everyone. I use scripts to create graphs easily and with exactly the same layout.

This is why I would like to create a graph contourfof automatic data data without black contour lines. I can do it manually using the advanced shape layout, byt have a command for it?

Thanks for the suggestions; I do not know how to solve it.

+3
source share
3 answers

You can remove black lines by setting the property to 'LineColor'value 'none', or the first time you call CONTOURF :

contourf(peaks(20),10,'LineColor','none');

Or by modifying the descriptor graphic after creating it:

[C,h] = contourf(peaks(20),10);
set(h,'LineColor','none');
+5
source

, . contourf :

[~,h] = contourf(peaks(20),10);
set(h,'LineColor','none')

, , set.

+4
'shading flat' will do the job.
+2
source

All Articles