Go to the previous, next section.

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), and you can take a slice through it with the set x = image(x,y) command. More capabilities will probably be added, someday, but SM is not intended to be an image processing system.

Go to the previous, next section.