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.
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');
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With