|See Also||spitem , spopen|
file. Th second argument, macroString must be a character row vector. If the value of macroType equals
namethen macroString must be the name of a macro that exists with SigmaPlot. If the value of macroType equals
file, the value of macroString must be the name of a text file that contains a valid SigmaPlot macro.
ipacks\SP\macrosdirectory of your distribution contains several SigmaPlot macros. Files of the form
SP*are used by the SigmaPlot interface toolbox and should not be modified.
O-Matrix will run the 2-D FFT example from the O-Matrix distribution and create a surface plot within O-Matrix. If you continue the example by entering
SigmaPlot will create a filled surface plot of the solution, G and invoke the wizard for pasting the graph into Microsoft Word.
spmacro("name", "Insert Graphs into Word")
You can also run macros that you have created and saved to the SigmaPlot macro library. If you use the SigmaPlot macro recorder to create a new macro, GrayScaleContour, you can run GrayScaleContour from O-Matrix. If SigmaPlot is not running and you enter the following commands at the O-Matrix prompt,
O-Matrix will create a contour plot in SigmaPlot using the default Fill Color and then change the spectrum to a gray scale.
x = -1:1:5
z = x*x'/10 * rand(7,7)/4
Running Macros Defined in Text Files
The setDataMacro.txt file in the ipacks\SP\examples directory of your distribution contains a SigmaPlot macro to set the data for two cells of a worksheet. If SigmaPlot is not running and you enter the following at the O-Matrix prompt
SigmaPlot will open with a new worksheet containing the data specified in setDataMacro.txt.
fileName = [OM_INSTALL, "\ipacks\SP\examples\setDataMacro.txt"]