New Reply

Matlab offset-contour plot with labels

 
Share Thread Thread Tools
Jul20-12, 11:48 AM   #1
 

Matlab offset-contour plot with labels


I want to have a labeled contour plot, plotted on the horizontal plane z=3.
The closest I've come is the following

[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

The problem is that I get two sets of labels. The first is plotted on the offset contour lines, but the second is plotted on the horizontal plane z=0!!

Any suggestions?
PhysOrg.com
PhysOrg
science news on PhysOrg.com

>> Bird's playlist could signal mental strengths and weaknesses
>> Minus environment, patterns still emerge: Computational study tracks E. coli cells' regulatory mechanisms
>> Bacterium uses natural 'thermometer' to trigger diarrheal disease, scientists find
New Reply
Thread Tools


Similar Threads for: Matlab offset-contour plot with labels
Thread Forum Replies
how to plot MATLAB contour plots for a variable z dependent on x and y variables Math & Science Software 0
Changing the tick labels in MATLAB for each loop iteration Math & Science Software 2
How to plot multiple iterations of a while loop on one plot? [MATLAB] Math & Science Software 1
Contour Plot in Matlab: DATA COLLECTED vs TIME in date and hours Math & Science Software 1
Matlab contour labels for PDEs Programming & Comp Sci 6