function PlotData(p,vector,v)

reshaped = reshape(vector,p,p); 
    for i = 1:p
        x0reshaped(:,i) = reshaped(p-i+1,:);
    end
surf(x0reshaped); view(2); axis equal; shading interp; caxis(v); colorbar; set(gcf,'rend','z'); axis tight;