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
 LabTalk Forum
 Grouped Box Charts script

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
Zacharias Posted - 08/29/2016 : 7:05:27 PM
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
3   L A T E S T    R E P L I E S    (Newest First)
Essien Posted - 09/05/2016 : 06:42:40 AM
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
Zacharias Posted - 09/03/2016 : 6:15:53 PM
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
yuki_wu Posted - 08/29/2016 : 11:40:45 PM
Hi,

This script may help in your example:

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


Yuki
OriginLab

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