Offset contour plot with labels

Asked by Aptro Notus on 20 Jul 2012
Latest activity Edited by Aptro Notus on 20 Jul 2012

Hi,

I know how to offset a contour plot such that the contours are plotted on a different horizontal plane than z=0.

I also know how to label contour plots.

But I cant seem to figure out how to do them both. The closest I've gotten is the following:

if true
  % code
{
[C,h] = contour(X,Y,Z);       
hh = get(h,'Children'); 
for i=1:numel(hh)
  set(hh(i), 'ZData', 3*ones(size(X)) );
  clabel(C,hh)
end
}
end

The problem with the above code is that two (2) sets of labels are displayed. The first are on the actual offset contour curves. The second are again on the plane z=0.

Any ideas as to how I can fix this problem?

Thanks

0 Comments

Aptro Notus

Products

No products are associated with this question.

0 Answers

Contact us