Home > Applications > SpinW > m_files > usefull > sw_surf.m

iFit/sw_surf

PURPOSE ^

SW_SURF draws a two dimensional plot using the patch function when the

SYNOPSIS ^

function sw_surf(X,Y,C,cLim,cMap,maxPatch)

DESCRIPTION ^

 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.

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Mon 26-Nov-2018 15:08:42 by m2html © 2005. iFit (c) E.Farhi/ILL EUPL 1.1