Author |
Topic |
|
Selinger78
Germany
Posts |
Posted - 10/10/2005 : 08:43:36 AM
|
Origin Version (Select Help-->About Origin): 6.0 Operating System: Win2K
Hello, here is my plotting problem (should be easy but somehow I cannot find a satisfying solution):
I have 6 columns of data, the first 2 ones should be X-Axis (time & temperature), the others are Y-Axis (intensities). Now how shall I declare the axis and how can I plot this data so that I have two x-Axis (one at bottom and one at the top). The best would be to first plot intensities over time and then add the temperature. Any advices? Thank you.
|
|
Mike Buess
USA
3037 Posts |
Posted - 10/10/2005 : 09:21:14 AM
|
Y columns are always plotted against the closest X column on the left. Currently you have columns A(X1), B(X2), C(Y2), D(Y2), E(Y2) and F(Y2) so that A(X1) is ignored. Easiest to move B(X2) to the end and follow it with copies of cols C-F...
A(X1), C(Y1), D(Y1), E(Y1), F(Y1), B(X2), C2(Y2), D2(Y2), E2(Y2), F2(Y2)
You can plot vs A(X1) and B(X2) in separate graph windows or separate layers in same window.
Mike Buess Origin WebRing Member
Edited by - Mike Buess on 10/10/2005 09:26:36 AM |
|
|
Selinger78
Germany
Posts |
Posted - 10/19/2005 : 07:23:39 AM
|
thx for the answer, I will try to somehow arrange this by a script. The problem is I have as good as no idea of all the commands. So if sombody can just give me the commands for
- moving a column - copying a column to another one - plotting two layers into oner graph
THANK YOU! Selinger 78
Edited by - Selinger78 on 10/19/2005 07:24:43 AM |
|
|
Mike Buess
USA
3037 Posts |
Posted - 10/19/2005 : 08:48:46 AM
|
Following script copies cols 2-6 to the end and plots data in 2 (unlinked) layers. Consult the layer command for linking options.
loop (i,2,6) { %A=wks.col$(i).name$; wo -c %A; // add col %B=wks.col$(wks.ncols).name$; copy col(%A) col(%B); // copy from original }; del col(2); wks.col6.type=4; // make sure col6 is X %W=%H; // save wks name win -t P; // create graph window loop (i,2,5) {lay -i %(%W,i)}; // plot col 2-5 vs col 1 lay -a; // rescale lay -n; // new layer loop (i,7,10) {lay -i %(%W,i)}; // plot col 7-10 vs col 6 lay -a; // rescale
Mike Buess Origin WebRing Member
Edited by - Mike Buess on 10/19/2005 08:50:57 AM
Edited by - Mike Buess on 10/19/2005 09:18:21 AM |
|
|
|
Topic |
|
|
|