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 for Programming
 Forum for Origin C
 layer.plotxy

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
oceorigin Posted - 04/29/2008 : 08:22:01 AM
Origin Version (Select Help-->About Origin): 8.0
Operating System: Windows XP

Following script (extract) works for Origin version 6.1 but not for version 8.0 (8G SR 1)

layer.plotxy(Book1_BP,Book1_P,?);

The task is to plot an xy diagram in a layer of an origin template.
The used data set are two columns (BP and P) of a xls-sheet.
Result in Origin V6.1: data from column P is plotted (as y-value) against column BP (as x-value)
Result in Origin V8.0: data from column P is plotted (as y-value) against 1/X

Any help to solve this problem would be very appreciated.
4   L A T E S T    R E P L I E S    (Newest First)
oceorigin Posted - 04/30/2008 : 12:33:35 PM
Hello again,

thanks to your hint, by using the correct names of the sheet, it worked roughly. I had to add the commands "ogl" , "rescale" and "plot" in order to assure, that the existing layer of the template has been used in same scale and plot type.
Remaining problem so far: I can't "define" the plotted graph type (the symbol and the colour). The result seems to be at random.

Any ideas?

Regards
Jo
P.S. Next chance for me to work on this will be next Monday...
Echo_Chu Posted - 04/30/2008 : 05:19:17 AM
Hi,

I assumed that your working workbook is named as Book1, working worksheet is Sheet1 and corresponding shortname of column is BP and P. But according to error message. It looks like it is not the case.

Could you check it and give proper assignment to plotxy?

B.T.W, you can also type "plotxy -h" to get detailed help description

Echo
Originlab Corp.



Edited by - Echo_Chu on 04/30/2008 05:23:04 AM
oceorigin Posted - 04/30/2008 : 04:58:17 AM
Thank you for your reply.

Unfortunately your solution does not work. Error message is:

Failed to resolve range string, VarName = iy, VarValue = [Book1]Sheet1!(Col(BP),Col(P))
Error: Failed to execute script

What to do?

Regards
Jo
Echo_Chu Posted - 04/30/2008 : 04:12:26 AM
Hi,

This is a bug in Origin8. Thanks for reporting us. It has been trackered as #11495 and will be fixed soon.

Before the bug fixed, I suggest you use x-function plotxy as an replacment. It can be used in this way

plotxy ([Book1]Sheet1!Col(BP), [Book1]Sheet1!Col(P))

Echo
OriginLab Corp

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