Author |
Topic  |
|
AKazak
Russia
1205 Posts |
Posted - 06/09/2022 : 08:30:19 AM
|
OriginPro 2022b (64-bit) SR1 9.9.5.167 Windows 7 Pro SP1 x64
Greetings!
How do I show equation of function plots in legend?
Thank you.
--- Andrey |
|
YimingChen
1640 Posts |
Posted - 06/09/2022 : 08:53:21 AM
|
You can right-click on the function plot and select Make dataset copy of F1, it will generate the data of the plot with the equation in the y column comments. You can then use it as the legend.
Jame |
 |
|
AKazak
Russia
1205 Posts |
Posted - 06/09/2022 : 09:24:19 AM
|
quote: Originally posted by YimingChen
You can right-click on the function plot and select Make dataset copy of F1, it will generate the data of the plot with the equation in the y column comments. You can then use it as the legend.
Jame
Dear James,
I consider the suggested method to be quite laborious. Does it make sense introducing a special feature to name function plots by equations they render?
--- Andrey |
 |
|
ChaoC
USA
185 Posts |
Posted - 06/09/2022 : 12:01:03 PM
|
Hi Andrey,
You can also change the display of the function plot from Short Name to Long Name by right-clicking>Rename and entering the function as the Long Name.

Chao |
 |
|
AKazak
Russia
1205 Posts |
Posted - 06/10/2022 : 01:25:03 AM
|
quote: Originally posted by ChaoC
Hi Andrey,
You can also change the display of the function plot from Short Name to Long Name by right-clicking>Rename and entering the function as the Long Name.

Chao
Dear Chao,
Can I do this using LT script?
--- Andrey |
 |
|
minimax
354 Posts |
|
AKazak
Russia
1205 Posts |
|
AKazak
Russia
1205 Posts |
Posted - 06/10/2022 : 03:17:50 AM
|
I think a separate dedicated GUI option for smart labeling of Function Plots would be useful.
--- Andrey |
 |
|
minimax
354 Posts |
Posted - 06/10/2022 : 05:01:25 AM
|
When you create a 2D function plot at the very beginning, on dialog there is a Label tab.
You can set up the labels (Long Name, Units, Comments) there.
Once the function is created, for now you will have to modify them by OC code I mentioned previously. |
 |
|
AKazak
Russia
1205 Posts |
Posted - 06/10/2022 : 05:05:39 AM
|
quote: Originally posted by minimax
When you create a 2D function plot at the very beginning, on dialog there is a Label tab.
You can set up the labels (Long Name, Units, Comments) there.
Once the function is created, for now you will have to modify them by OC code I mentioned previously.
Can we set Function Short Name to the equation (y = ...) by default instead of F1, F2, etc.?
--- Andrey |
 |
|
minimax
354 Posts |
Posted - 06/10/2022 : 05:07:39 AM
|
no, short name in Origin has strict character restriction.
Max OriginLab Technical Support |
 |
|
AKazak
Russia
1205 Posts |
Posted - 06/10/2022 : 05:28:23 AM
|
quote: Originally posted by minimax
no, short name in Origin has strict character restriction.
Max OriginLab Technical Support
Dear Max,
Hm... Do function plots have long names?
--- Andrey |
 |
|
snowli
USA
1411 Posts |
Posted - 06/14/2022 : 09:19:14 AM
|
Hi Andrey,
I jiraed your suggestion to allow showing function plot equation in legend in ORG-25376 S1.
Even though user can set Long name of Y on Label tab when defining function, it's static. If later user changes expression in Plot details dialog, it will not update the legend.
Thanks, Snow |
 |
|
AKazak
Russia
1205 Posts |
Posted - 06/14/2022 : 09:27:11 AM
|
quote: Originally posted by snowli
Hi Andrey,
I jiraed your suggestion to allow showing function plot equation in legend in ORG-25376 S1.
Even though user can set Long name of Y on Label tab when defining function, it's static. If later user change expression in Plot details dialog, it will not update the legend.
Thanks, Snow
Dear Snow,
I am ready to test the improvement in a beta version.
--- Andrey |
 |
|
snowli
USA
1411 Posts |
Posted - 06/14/2022 : 10:06:54 AM
|
Ha, we can't guarantee everything done in beta1:-)
Snow |
 |
|
AKazak
Russia
1205 Posts |
Posted - 06/16/2022 : 04:25:59 AM
|
quote: Originally posted by snowli
Ha, we can't guarantee everything done in beta1:-)
Snow
Dear Snow,
No problem at all. I will be waiting for the update.
--- Andrey |
 |
|
snowli
USA
1411 Posts |
Posted - 06/16/2022 : 11:49:43 AM
|
Hi Andrey,
I saw we implemented to show exp(x) in legend. But just want your feedback of which one most users would prefer, expression or equation?
exp(x) or y=exp(x)
Thanks, Snow
|
 |
|
AKazak
Russia
1205 Posts |
Posted - 06/16/2022 : 1:56:43 PM
|
quote: Originally posted by snowli
Hi Andrey,
I saw we implemented to show exp(x) in legend. But just want your feedback of which one most users would prefer, expression or equation?
exp(x) or y=exp(x)
Thanks, Snow
Dear Snow, IMHO the following option is better: y=exp(x)
--- Andrey |
Edited by - AKazak on 06/16/2022 1:57:07 PM |
 |
|
snowli
USA
1411 Posts |
Posted - 06/16/2022 : 2:03:04 PM
|
Thanks. I thought so too.
I will update the jira.
Thanks, Snow |
 |
|
AKazak
Russia
1205 Posts |
Posted - 06/21/2022 : 02:48:53 AM
|
quote: Originally posted by snowli
Thanks. I thought so too.
I will update the jira.
Thanks, Snow
Dear Snow,
Hope to test the new feature shortly.
--- Andrey |
 |
|
snowli
USA
1411 Posts |
Posted - 07/05/2022 : 5:43:43 PM
|
Hi Andrey,
We finally released 2023 beta1.
This is implemented in beta1.
Many of your suggestions are implemented. We will send you an email with the list to try tomorrow.
But if wish, feel free to check all your posts and see which are done.
Best, Snow |
 |
|
|
Topic  |
|