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
 All Forums
 Origin Forum
 Origin Forum
 plot - choosing X any Y values

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
harryandyuto Posted - 05/27/2005 : 05:26:26 AM
Hi!

I want to plot a graph, which has as X-axis a certain column of the data file.
E.G. my Datafile (txt) looks like this:

Voltage (V) Luminance (cd) Current Density (mA/cm²) Current Efficiency (cd/A) PowerEfficiency (L/W)
-10 0.102331 0.00240395 0 0

After Import Voltage (V) is the X-Value. For some plots OK. But then I want to plot e.g. Luminance over Current Density. How to define a column as new X?

win -a LUMI-CD;
layer -s 1; //Select layer 1
layer -i %(%W,2);
win -h 0;
This plots Lumi over voltage - of course...

and how to hide then a window? win -h 0 does not work.

THX Harald Cholewa

1   L A T E S T    R E P L I E S    (Newest First)
Mike Buess Posted - 05/27/2005 : 10:31:55 AM
Hi Harald,

There are several ways to change column types but this is perhaps the easiest...

win -a %W;
wks.col1.type=1; // change col 1 to Y
wks.col3.type=4; // change col 3 to X
win -a LUMI-CD;
layer -s 1;
layer -i %(%W,2); // plot Luminance vs Current Density
win -h 1; // hide the graph window (win -h 0 shows the window)

Mike Buess
Origin WebRing Member

Edited by - Mike Buess on 05/27/2005 10:32:14 AM

The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000