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
 Grouped Box Charts script
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

Zacharias

Czech Republic
3 Posts

Posted - 08/29/2016 :  7:05:27 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. and Service Release (Select Help-->About Origin): 2016, b9.3.226
Operating System: Windows 10

Hi, I need to repeatedly plot Grouped Box Charts using Indexed data from a worksheet.

For example, there are 100 columns, first column contains data groups (Grouped column)), other columns are variables (data columns). I need repeatedly to create 99 grouped box charts with data from columns 2 to 100 using grouping-key located in column 1. Can someone help with LabTalk script for this. Thanks George

yuki_wu

896 Posts

Posted - 08/29/2016 :  11:40:45 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

This script may help in your example:

worksheet -px ? gbox plot_gboxindexed irng:=(2:100) group:=(1);


Yuki
OriginLab

Edited by - yuki_wu on 08/29/2016 11:42:52 PM
Go to Top of Page

Zacharias

Czech Republic
3 Posts

Posted - 09/03/2016 :  6:15:53 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thanks for a helpful hint. Now I am able to generate plots using following script:

worksheet -px ? gbox plot_gboxindexed irng:=($(i):$(i)) group:=($(SortKey));strG1$=%H;legend.show = 0;


However, when I modfied the layout of the plot (mostly lines widths and colors only) and saved it as a template (gBoxAblace1c), I failed to use the template with the script above:

worksheet -px ? gbox plot_gboxindexed irng:=($(i):$(i)) group:=($(SortKey)) ogl:=[<new template:=gBoxAblace1c>]; strG1$=%H;legend.show = 0;

I instantly get following error message:
Error: cannot find a (unique) variable corresponding to ogl
#Command Error!

I am not able to find the solution myself.

Thanks

Jiri
Go to Top of Page

Essien

China
2 Posts

Posted - 09/05/2016 :  06:42:40 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

plot_gboxindexed does not have a variable to set template, so your script cannot be executed.
You can try to override the default template "gBox" before plotting.

Thanks,
Essien
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