From: mb on
I plot a surface plot and a contour plot in the same figure, using surfacem and conoturm.

I want to add labels to the contour line, but when I use clabelm the labels are hidden under the surface plot.

Anyone who knows how to bring the labels to the front of the plot?

/mb
From: Ashish Uthama on
On Thu, 06 May 2010 09:49:05 -0400, mb <marit.berger(a)student.lu.se> wrote:

> I plot a surface plot and a contour plot in the same figure, using
> surfacem and conoturm.
>
> I want to add labels to the contour line, but when I use clabelm the
> labels are hidden under the surface plot.
>
> Anyone who knows how to bring the labels to the front of the plot?
>
> /mb


sh=surface(peaks);
hold on
[c, ph] = contour(peaks);
clh= clabel(c, ph); colorbar;
rotate3d on

now.. can you elaborate on what you mean by 'front of the plot' ?
From: mb on
I tried with the lines you suggested, but it doen't help. The labels are still hidden underneath the surfacelayer.

by front I mean that the the labels should be on top of the surface.

/mb
From: Ashish Uthama on
On Thu, 20 May 2010 07:57:04 -0400, mb <marit.berger(a)student.lu.se> wrote:

I guess I understand now: since the surface is 3D, while the contour lines
are in 2D, the surface obscures the labels.
perhaps something like:
http://www.mathworks.com/matlabcentral/fileexchange/8589-contourz


 | 
Pages: 1
Prev: Features Extraction
Next: Little error: