| Author |
Topic  |
|
|
Ralph Stuebner
Munich, Bavaria, Ger
9 Posts |
Posted - 07/30/2001 : 08:07:22 AM
|
Hello,
I want to automatize the generation of color mapped scatter graphs. Therefore i need a lab talk command, which generates a scatter plot from two columns and indexes the plot with a third column for the different colors.
Thanks Ralph Stbner |
|
|
Barb Tobias
USA
305 Posts |
Posted - 07/30/2001 : 3:30:58 PM
|
You could use the wks.colsel method to select the X, Y, and color map index columns. You could then use the worksheet -p command option to plot the selected data into the scatter template with color mapping on. So if your worksheet was set up as X, Y, Y (color map indexes), then you could use something like this: wks.colsel(1,1); //select col 1 wks.colsel(2,1); // select col 2 wks.colsel(3,1); // select col 3 worksheet -p 247 scatter; // plot columns into scatter template using color mapping
|
 |
|
|
Ralph Stuebner
Munich, Bavaria, Ger
9 Posts |
Posted - 07/31/2001 : 09:51:01 AM
|
Thank you. So far it works. But if I build up a loop (with "for(n=3;n<=10;n++)") to make several plots with each containing the data of column 1, 2 and n only one plot is generated and you see the data of the n th column only. How can I force Origin to produce more than one plot. |
 |
|
|
Barb Tobias
USA
305 Posts |
Posted - 07/31/2001 : 1:15:23 PM
|
This is a little rough... but it could be a starting point. I assume your worksheet is named data1 and that you have four columns of color map data - starting with column 3. wks.colsel(1,1); wks.colsel(2,1); for (ii=3;ii<=6;ii++) { wks.colsel(ii,1); //select color map column worksheet -p 247 scatter; //plot window -r %H graph$(ii); //rename graph window -a data1; //reactivate worksheet wks.colsel(ii,0); //deselect color map column }
|
 |
|
| |
Topic  |
|