I am using the 'scatteredinterpolant' command to plot a set of data and am having an issue with getting the graph to plot smooth lines. Also the data seems to be extrapolating showing values much higher than any in the data set. How can I get the graph to smooth out and remove the transition zone in the middle?
claF = scatteredInterpolant(CollarPlanE,CollarPlanN,AverageofMWDS_prate,'linear');[xx,yy]=meshgrid(CollarPlanE,CollarPlanN);zz = F(xx,yy);[~, hC] = contourf(xx,yy,zz,10);set(hC,'LineStyle','none');colormap jetset(gcf,'color','w');c = colorbar('Fontsize',16,'FontName', 'Arial');c.Label.String = 'Penetration Rate(m/min)';title('Average Penetration Rate Rd 48a Bench 11160','Fontsize',20,... 'FontWeight','bold','FontName', 'Arial');xlabel('Grid E','FontSize',16,'FontName', 'Arial');ylabel('Grid N','FontSize',16,'FontName', 'Arial');xlim([7565 7685]);ylim([4905 4980]);hold on x = CollarPlanE;y = CollarPlanN;scatter(x,y,'MarkerEdgeColor',[0 .5 .5],... 'MarkerFaceColor',[1 0 0],... 'LineWidth',1.5);a = RowLabels;b = num2str(a);c = cellstr(b);dx = 1; dy = -3; % displacement so the text does not overlay the data points
text(x+dx, y+dy, c);
Best Answer