Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Removing lines from contourf graphs

Hi all I'm using scripts for generating plots easily and with exactly the same layout.

That's why I'd like to create contourf graph of given data automaticcaly without black contour lines. I can do it manually by advanced figure layout, byt is there a command for it?

Thanks for suggestions; I have no idea how to solve it.

like image 535
Crowley Avatar asked Dec 13 '22 13:12

Crowley


2 Answers

You can remove the black lines by setting the 'LineColor' property to 'none', either in the initial call to CONTOURF:

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

Or by modifying the handle graphics object after creating it:

[C,h] = contourf(peaks(20),10);
set(h,'LineColor','none');
like image 109
gnovice Avatar answered Dec 21 '22 23:12

gnovice


Whatever you can do with manual editing you can also do programmatically. For contourf, you can do the following:

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

See here for all the properties you can modify using the set command.

like image 30
Jonas Avatar answered Dec 22 '22 01:12

Jonas