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
 Origin Forum
 plot_matrix: custom graph templates
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

AKazak

Russia
1205 Posts

Posted - 06/24/2022 :  04:19:38 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
OriginPro 2022b (64-bit) SR1 9.9.5.171
Windows 7 Pro SP1 x64

Greetings!

plot_matrix allows specifying custom graph templates.
What is the structure of the Scatter, Box and Histogram templates?
Where do I find the standard Origin's Scatter, Box and Histogram templates to alter them according to my needs?

Thank you.

---
Andrey

Shirley_GZ

China
Posts

Posted - 06/24/2022 :  04:56:12 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi AKazak,

You can find the templates under the Origin program folder. Selecting the menu "Help: Open Folder: Program Folder" to open it:

ScatterMatrix.opt
BoxMatrix.otp
HistMatrix.otp

See
https://www.originlab.com/doc/Origin-Help/Scatter-Matrix#Template

Thanks,
Shirley


Originlab Technical Service Team
Go to Top of Page

AKazak

Russia
1205 Posts

Posted - 06/24/2022 :  06:16:05 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
quote:
Originally posted by Shirley_GZ

Hi AKazak,

You can find the templates under the Origin program folder. Selecting the menu "Help: Open Folder: Program Folder" to open it:

ScatterMatrix.opt
BoxMatrix.otp
HistMatrix.otp

See
https://www.originlab.com/doc/Origin-Help/Scatter-Matrix#Template

Thanks,
Shirley


Originlab Technical Service Team



Got it.
Now, how do I replace "Pearson's r==" prefix in ScatterMatrix.opt to "R^2"?
Also, what does "Engine Displacement" text label in ScatterMatrix.opt stand for?

Thanks.

---
Andrey
Go to Top of Page

AKazak

Russia
1205 Posts

Posted - 06/24/2022 :  09:37:40 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
quote:
Originally posted by AKazak
Now, how do I replace "Pearson's r==" prefix in ScatterMatrix.opt to "R^2"?
Also, what does "Engine Displacement" text label in ScatterMatrix.opt stand for?

Thanks.

---
Andrey



I open ScatterMatrix.opt, change "Adj. R^2==" to "R^2" and color from red to green, save as template to UF.
However if I call plot_matrix from the scratch then I see "Adj. R^2==", but with green color.
So it seems that "Adj. R^2==" text prefix is hard-coded in Origin?
It this correct?

---
Andrey
Go to Top of Page

Cecilia_syy

65 Posts

Posted - 06/27/2022 :  04:45:18 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Andrey,
Yes, prefix of statistics info is hard-coded in Origin. Currently there is no way to set it in template. I added ORG-25294 S3 to support option in dialog to set label content.

Thanks
Cecilia
Go to Top of Page

AKazak

Russia
1205 Posts

Posted - 06/27/2022 :  05:21:48 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
quote:
Originally posted by Cecilia_syy

Hi Andrey,
Yes, prefix of statistics info is hard-coded in Origin. Currently there is no way to set it in template. I added ORG-25294 S3 to support option in dialog to set label content.

Thanks
Cecilia



Dear Cecilia,

Got it, thanks.
Can you share a LT snippet to replace "Adj. R^2==" to "R^2" in all the text labels of an active Scatter Matrix graph, please?

---
Andrey
Go to Top of Page

Cecilia_syy

65 Posts

Posted - 06/28/2022 :  02:26:41 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Andrey,
You can try with following LT script to remove Adj.:

int n=page.nlayers;
for (ii=1;ii<=n;ii+1)
{
   GObject aa = $(ii)!rsq;
   aa.text$=right(aa.text$,Len(aa.text$)-4)$;
   
}



Thanks
Cecilia
Go to Top of Page

AKazak

Russia
1205 Posts

Posted - 07/04/2022 :  04:24:44 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
quote:
Originally posted by Cecilia_syy

Hi Andrey,
You can try with following LT script to remove Adj.:

int n=page.nlayers;
for (ii=1;ii<=n;ii+1)
{
   GObject aa = $(ii)!rsq;
   aa.text$=right(aa.text$,Len(aa.text$)-4)$;
   
}

Thanks
Cecilia



Dear Cecilia,

The LT script works well.
Please clarify: if all the green text labels have names "RSQ", what are UID of each text label in the LT code?

---
Andrey

Edited by - AKazak on 07/04/2022 04:25:45 AM
Go to Top of Page

Cecilia_syy

65 Posts

Posted - 07/04/2022 :  06:04:11 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Andrey,
In scatter matrix plot, Adj. R-Square use Rsq as object name, and Pearson's R use Corr as object name. In LT, you just need to use object name to find those labels.

Thanks
Cecilia
Go to Top of Page

AKazak

Russia
1205 Posts

Posted - 07/04/2022 :  06:36:19 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
quote:
Originally posted by Cecilia_syy

Hi Andrey,
In scatter matrix plot, Adj. R-Square use Rsq as object name, and Pearson's R use Corr as object name. In LT, you just need to use object name to find those labels.

Thanks
Cecilia



Dear Cecilia,

Got it.
I think it would be nice if the text labels update automatically.
Currently if I rename the plot_matrix output sheets, the I loose the values in the text labels.

---
Andrey
Go to Top of Page

Cecilia_syy

65 Posts

Posted - 07/05/2022 :  02:31:03 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Andrey,
I checked with developer, there is no good way to update sheet name after rename. You can provide sheet name in plot_matrix dialog when you run this XF, but rename is not allowed(in change parameter or directly in sheet tab).

Thanks
Cecilia
Go to Top of Page

AKazak

Russia
1205 Posts

Posted - 07/05/2022 :  06:34:06 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
quote:
Originally posted by Cecilia_syy

Hi Andrey,
I checked with developer, there is no good way to update sheet name after rename. You can provide sheet name in plot_matrix dialog when you run this XF, but rename is not allowed(in change parameter or directly in sheet tab).

Thanks
Cecilia



Dear Cecilia,

Got it.

---
Andrey
Go to Top of Page

AmandaLu

439 Posts

Posted - 05/09/2023 :  06:01:52 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Andrey,

Origin 2023b is available!

The requirements you reported in this post has been improved in this version.
"User Defined Statistics info in Scatter Matrix" (ORG-25717)
“Scatter Matrix With Correlation Coefficients Of Related Variables” (ORG-25294)

In Origin 2023b, you can customize label of stats info in plot_matrix dialog:


Please let the user download Origin 2023b from the link below, install and try it.
http://www.originlab.com/demodownload.aspx

Any feedback & suggestion would be appreciated!

Thanks,
Amanda
OriginLab Technical Service
Go to Top of Page

AKazak

Russia
1205 Posts

Posted - 05/31/2023 :  11:17:58 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
quote:
Originally posted by AmandaLu

Hi Andrey,

Origin 2023b is available!

The requirements you reported in this post has been improved in this version.
"User Defined Statistics info in Scatter Matrix" (ORG-25717)
“Scatter Matrix With Correlation Coefficients Of Related Variables” (ORG-25294)

In Origin 2023b, you can customize label of stats info in plot_matrix dialog:


Please let the user download Origin 2023b from the link below, install and try it.
http://www.originlab.com/demodownload.aspx

Any feedback & suggestion would be appreciated!

Thanks,
Amanda
OriginLab Technical Service




Dear Amanda,

Great improvement!
I will test the new feature and share feedback.

---
Andrey
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