Doug's MATLAB Video Tutorials

July 17th, 2009

Advanced: Modifying a contour plot with Handle Graphics

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 Responses to “Advanced: Modifying a contour plot with Handle Graphics”

  1. Tilak Rajesh replied on :

    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.

  2. dhull replied on :

    @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

  3. Stephen Licata replied on :

    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.

Leave a Reply

Wrap code fragments inside <pre> tags, like this:

<pre class="code">
a = magic(3);
sum(a)
</pre>

If you have a "<" character in your code, either follow it with a space or replace it with "&lt;" (including the semicolon).


MathWorks

Doug Hull is a proud MathWorker who is on a mission to help you with MATLAB.

Doug's picture

These postings are the author's and don't necessarily represent the opinions of The MathWorks.