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
 Origin Forum
 plot_matrix: custom graph templates

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
AKazak Posted - 06/24/2022 : 04:19:38 AM
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
11   L A T E S T    R E P L I E S    (Newest First)
AKazak Posted - 07/05/2022 : 06:34:06 AM
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
Cecilia_syy Posted - 07/05/2022 : 02:31:03 AM
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
AKazak Posted - 07/04/2022 : 06:36:19 AM
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
Cecilia_syy Posted - 07/04/2022 : 06:04:11 AM
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
AKazak Posted - 07/04/2022 : 04:24:44 AM
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
Cecilia_syy Posted - 06/28/2022 : 02:26:41 AM
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
AKazak Posted - 06/27/2022 : 05:21:48 AM
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
Cecilia_syy Posted - 06/27/2022 : 04:45:18 AM
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
AKazak Posted - 06/24/2022 : 09:37:40 AM
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
AKazak Posted - 06/24/2022 : 06:16:05 AM
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
Shirley_GZ Posted - 06/24/2022 : 04:56:12 AM
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

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