Re: contour overlaying pcolor
From
Larry Gulliver@21:1/5 to
All on Tue Apr 19 10:32:41 2022
Thank you, Sarah. This worked. I used this for plotting a tracking formula (MOW) of 0.5 over potential vorticity (qq) and it came out brilliant. I posted the code below even though many of the variables may not make sense.
figure(1)
mt= 0.5;
pcolor(x,y,qq(:,:,1)');shading interp; colorbar
colormap(jet(256));
set(gca,'ydir','norm')
daspect([1 1 1])
cRange=caxis;
drawnow
hold on
[c,H]=contour(x,y,MOW(:,:,1)',[mt mt],'k');
hlines=findobj(gca,'type','line'); % finds all the lines on the colorplot
set(hlines,'LineWidth',1);
caxis(cRange);
end
hold off
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)