Prev: Transfer a cell array to a c++ dll
Next: Time delay
From: mb on 20 May 2010 07:40 I want to make a surface plot with contour lines on top. I use the mapping toolbox to create the plot, and everything works fine until I try to add labels to the contour lines. When I do this the contour labels are hidden under the surface plot. The contour lines covers a larger area than the surface plot, and I can see the labels where the surface is abscent. The problem seems to be that the labels are located bellow the surface. Is it possible to determine the position of the labels in some way, so that I can place the labels on top of the plot. This is my code: figure() % Specify mapprojection, center of the map and size of the map axesm('MapProjection','stereo','Origin',[90 0 0],'FLatLimit',[-90 90],... 'FLonLimit',[-180 180],'MeridianLabel','on','ParallelLabel','off',... 'MLabelParallel','equator','FontName','cambria','FontSize',12); % Add land contours to the figure gridm; load coast; plotm(lat,long,'k'); hold on contourm(hlat,hlon,z,'k','LineWidth',1.5,'ShowText','on'); surfacem(elat,elon,ek); colorbar('SouthOutside','FontName','cambria') caxis([0 90]) / marit
|
Pages: 1 Prev: Transfer a cell array to a c++ dll Next: Time delay |