Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: Custom labels to contour plots
Replies: 2   Last Post: Apr 25, 2014 5:36 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Sebastiaan

Posts: 200
Registered: 4/14/08
Custom labels to contour plots
Posted: Oct 9, 2009 9:57 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Dear users,

I am trying to assign custom labels to a contour plot. However, when I try to use 'TextList', no labels are assigned at all:

[C,h] = contour(peaks, 3);
clabel(C,h);

nicely gives me the contours and their levels. However, when I try to use different labels:
[C,h] = contour(peaks, 3, 'TextList', [1 2 3]);
clabel(C,h);

no labels are given at all.

Also the alternative:
clabel(C,h, [1 2 3])
gives no labels.

Of course I could go though all the children of clabel and change the label, but I guess there must be something simpler.

Sebastiaan



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.