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 for Programming
 LabTalk Forum
 plotstack
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

elendar

2 Posts

Posted - 02/16/2017 :  6:14:19 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Hi there,
I am writing a script which evaluate my data. There is a book which has lots of sheets. The script decide which kind of data exist and plot different amount of graphs depending on data entry, name them and continue to next sheet.


I use plotstack to draw 3 graphs together. I have to add another plot on one of them.

I have few questions:
1. Is there any possibility to use plotstack to create: 3 different graphs and one of them "XYY". (The script can also plot to existing stack-graph as a layer, but the name of plotstack is random. So the script can not realize the name)

2. Is there any way to give a name to graph (which created by plotstack) while use? (I also simply rename the graph afterwards,but...)

3. After plot a graph, graph is active. I can't find anyway to re-active the workbook to continue script? Even somehow i reach the book, the graph is still open and i can not plot more graphs.

Regards.

Edited by - elendar on 02/16/2017 6:18:54 PM

yuki_wu

896 Posts

Posted - 02/17/2017 :  12:59:06 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

1.I am sorry that I cannot understand your question fully. Do you want to plot your datasets as three different plot type or in three different graph windows? Would you mind writing more info here? You can post your script or show your datasets and the graph you desired by screen shot.

2.We cannot name the graph directly by plotstack function at present, but just as what you mentioned, we can rename it after execute this command

3.If you want to activate a workbook, you can use “ win -a”, for example:
win –a Book1;

Regards,
Yuki
OriginLab
Go to Top of Page

elendar

2 Posts

Posted - 02/19/2017 :  3:10:06 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thank you for your fast answer. I solved my problem with "win -a" function. After you have said, I realized that i use longname with it.

An example for my first question:
http://imgur.com/a/5RS3v

Topest graph is XYY. Thank you again!
Go to Top of Page

yuki_wu

896 Posts

Posted - 02/20/2017 :  02:21:53 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

You can specify the number of layers and the number of plots in each layer, for example:
plotstack layer:=3 number:="1 1 2";

You can find more examples here:
http://www.originlab.com/doc/X-Function/ref/plotstack

Hope it helps.

Regards,
Yuki
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