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
 Forum for Origin C
 Create "Grouped Box Chart- idexed Data" within or
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

Mathias.list@posteo.de

Germany
4 Posts

Posted - 05/05/2021 :  10:50:41 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Hi everyone,
I once more are stuck with origin C. I want to create "Grouped Box Chart- idexed Data" plots from colums of a worksheet. I can make the plot manually within the GUI. The plot is a operation shown in the OperationManagerand. I can save the Theme as template. However I'm not figuring out how to create one this plot from within Origin C...
I hope you can help me out, or give me hint how to reproduce the plot from the template.

Best regards and thanks in advance
Mathias

Origin Ver. and Service Release (Select Help-->About Origin):
OriginPro 2021 (64-bit)
9.8.0.200 (Academic)
Operating System: Windows 10

YimingChen

1592 Posts

Posted - 05/06/2021 :  12:24:19 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
You may need to call LT from OC to run plot_gboxindexed X-function. See code below. col(3) is data col and col(1),col(2) are group cols and these are inputs to the xfunction.

void Make_Plot()
{
	Worksheet wks = Project.ActiveLayer();
	string LTstr = "plot_gboxindexed -r 1 irng:=3 group:=(1,2) theme:=\"Box_I-shaped\"";
	wks.LT_execute(LTstr);
}


The X-function can be referred from:
https://www.originlab.com/doc/X-Function/ref/plot_gboxindexed

James

Edited by - YimingChen on 05/06/2021 12:26:09 PM
Go to Top of Page

Mathias.list@posteo.de

Germany
4 Posts

Posted - 05/07/2021 :  03:15:24 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thanks YimingChen,

that helps me big time. I did not mange to proceed before since I was always searching under "All Books/Origin C" on the support page. Thanks for your Code and the hint to the "X-Functions" documentation.
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