Stuart’s MATLAB Videos

Watch and Learn

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the Original version of the page.

Advanced: Modifying a contour plot with Handle Graphics 3

Posted by Doug Hull,

The contour plot will choose the colors of the contour lines based on the level of the contour. However, if you want to do something more, like change the line width or line style, you will need to do something like what follows in the video.

3 CommentsOldest to Newest

Tilak Rajesh replied on : 1 of 3
Thank you for this tutorial. I did just the same and then while applying
 clabel(c, hContours)
All my lineStyles get messed up ! Seems like I am missing something here. Kindly help.
dhull replied on : 2 of 3
@Tilak, You will need to post all of your code. Very often, the failure appears on one line, but the error started long before that. Doug
Stephen Licata replied on : 3 of 3
Thank you, thank you, thank you! This is such a useful and often-needed example that MathWorks really should put it in the manual page.