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
 plot - choosing X any Y values
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

harryandyuto

Germany
Posts

Posted - 05/27/2005 :  05:26:26 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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

Mike Buess

USA
3037 Posts

Posted - 05/27/2005 :  10:31:55 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
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