Creating and Loading Colormaps |
SaveColormap("file," M) Creates a colormap file for use with 3D Plots containing the values in M. Returns the number of rows written to the file. Once the colormap is saved, it is available on the Advanced tab in the 3D Plot Format dialog box.
LoadColormap("file") Returns an array containing the values in the 3D Plot colormap file.
file is a string containing the name, but not the file extension, of a colormap located in the CMAPS subfolder of the Mathcad installation folder.
M is a 3-column matrix of integers between 0 and 255. Nonintegers are truncated. Each row number corresponds to a level of gray, and each entry in the row corresponds to the intensity of red, green, or blue to associate with the gray level.
Any values in M that are not between 0 and 255 are increased to 0 or decreased to 255.