Go to the first, previous, next, last section, table of contents.


What about 2-dimensional data?

SM has some capability for handling image data. You can define an image with the image command, which is analogous to the data command for vectors. As described in the manual, you must first tell SM what sort of image file it is. Binary data is rather tricky to define in a general way, and certainly differs from one operating system to the next, so the few standard types of binary files we have defined will hopefully cover most cases, and if not, you can always write a program to convert your data into one of those types, or try to teach SM about your data format after reading the filecap appendix to the manual (see section `Filecap' in The SM Manual).

Once you have read in the image, you can contour it with the contour command (first define the contour levels with the levels command), you can take a slice through it with the set x = image(x,y) command, you can draw it as a surface plot (see section `Surface' in The SM Manual), or you can draw a greyscale version of the data (this is a macro. Say HELP greyscale for details, or load demos grey_sincos for a demonstration).

It is possible that more capabilities will be added someday, but SM is not intended to be an image processing system.


Go to the first, previous, next, last section, table of contents.