The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum
 Origin Forum
 Question made more clear
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

naeem498

17 Posts

Posted - 02/28/2011 :  08:05:45 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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

greg

USA
1378 Posts

Posted - 02/28/2011 :  09:28:24 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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.
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000