Is there a way to indicate the position of the labels on the lines of the contour graph, and not by default or using the "manual" (I have many graphs, and each of them will not help)? I would like the label to be at the beginning of the contour line (i.e., at the top of the graph, max x position). I use "LabelSpacing" in "clabel" to reduce the number of tags, but can you tell where the first one starts? This is because I want to overlay it on pcolor and don’t want labels to interfere. See below (where Hlim and Tlim are 1x23 vectors)
%% isolines
figure;
rho=1025; g=9.81; rg64=(rho*g^2)/(64*pi);
Ht=Hlim';
Piso=(rg64.*(Ht.^2)*Tlim)./1000;
v=[10:50:250];
[C,h]=contour(Tlim,Ht,Piso,v,'--','LineColor', 'k');
th=clabel(C,h,'LabelSpacing',300);
strs=get(th,'String');
strs=strcat(strs,' kW/m');
set(th,{'String'},strs,'BackgroundColor','w');
source
share