Hello all,
I'm attempting to plot 3 vectors of data using contourf. So far, I am using the code below to generate the snap shot attached. As you can see, using this method creates a filled area above the data set as it tries to "connect the dots". Is there a way to prevent this from happening? That is, is it possible to only have the white space above the black line?
x = xData;y = yData;z = zData;xlin = linspace(0,max(x),length(x));ylin = linspace(0,max(y),length(y));[X,Y] = meshgrid(xlin,ylin);Z = griddata(x,y,z,X,Y);figure[~,~] = contourf(X,Y,Z);colormap coolcolorbargrid on% Overlay Max Curve
x = xDataMaxSubset;y = yDataMaxSubset;hold onplot(x,y,'LineWidth',2,'Color',[0 0 0])hold off% Overlay All pts
x = xData;y = yData;hold onscatter(x,y,10)hold off
Best Answer