SW_SURF draws a two dimensional plot using the patch function when the figure is saved in .pdf format, it is saved as a vector image Usage: SW_SURF(C) SW_SURF(X,Y,C,cLim,cMap) Input: X Matrix of x coordinates, dimensions are [nX nY]. Y Matrix of y coordinates, dimensions are [nX nY]. C Matrix to plot, dimensions are [nX nY]. cLim Color axis limits, if undefined the minimum and maximum values C are taken as limits. cMap Colormap, default is @jet. maxPatch Maximum number of pixels that can be plotted using the patch() function. Using patch for color plot can be slow on older machines, but the figure can be exported afterwards as a vector graphics, using the print() function. Default is 1000. Change of the color axis after plotting is not possible, replot is necessary.