T O P I C R E V I E W |
naeem498 |
Posted - 02/28/2011 : 08:05:45 AM I have a file in which I have 20 pixels (data) and each pixel is going through 8 scans that means I have 20 * 8 = 160 graphs data. Now I want to make 160 graphs out of those data, what I do is highlight pixel 1 scan 1 data make a graph, then pixel 1 scan 2 make a graph..... up till pixel 20 scan 8. You can imagine how it feels;) I want the software to make 160 graphs (each in a seperate window/picture) for me automatically
The file is a .txt form and looks like
pixel 1 scan 1 (1st graph) 1 123 2 123 3 123 4 123 . .
Pixel 1 scan 2 (2nd graph) 1 123 2 123 3 123 . .
Pixel 20 scan 8 (last graph) 1 123 . .
Thanks for the help |
1 L A T E S T R E P L I E S (Newest First) |
greg |
Posted - 02/28/2011 : 09:28:24 AM In import options (either simple ASCII or the Import Wizard) select "Start New Column" for "When Non-numeric is Found in Numeric Field". That will bring in each segment into separate column pairs. Then use:
%N = %H; cols = wks.ncols - 1; for(idx = 1 ; idx <= cols ; idx+=2) { win -a %N; plotxy ($(idx),$(idx+1)); }
Knowing which graph is which Pixel/Scan is a bigger problem which would require you write a script. Consult the 8.x documentation for more options for 'plotxy'. If you do not have 8.x, then consult the layer object for a similar method. |
|
|