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');
source
share