The Math Forum

Search All of the Math Forum:

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

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

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: Custom labels to contour plots
Replies: 3   Last Post: Jan 17, 2017 1:20 AM

Advanced Search

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

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);

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]);

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.


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

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.