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
 Formatting numbers in a plot legend
 New Topic  Reply to Topic
 Printer Friendly
Author  Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

AKazak

Russia
1249 Posts

Posted - 03/10/2026 :  3:48:40 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
OriginPro 2026b (64-bit) Beta2 10.3.5.62
Windows 10 Pro

Greetings!

%(1Y,@LD"Mean")


How do I format the number produced by the statement above?
For example I have to round it to the closest integer?

Thank you.

---
Andrey

snowli

USA
1476 Posts

Posted - 03/10/2026 :  4:12:02 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
This video is exactly what you are looking for
https://www.youtube.com/watch?v=CE5Z1kcykDw

If you added Mean row in worksheet, u can single click it and in mini toolbar that shows, click Open Properties Dialog to set the decimal place there. Then refresh the graph.

Or in legend, set it to $(%(1Y,@LD),.0)
U can also set $(%(1Y,@LD),*3) to have 2 significant digit
See all supported custom numeric format
https://www.originlab.com/doc/LabTalk/ref/Origin-Formats

Thanks, Snow

Thanks, Snow
Go to Top of Page

AKazak

Russia
1249 Posts

Posted - 03/10/2026 :  4:16:51 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
quote:
Originally posted by snowli

This video is exactly what you are looking for
https://www.youtube.com/watch?v=CE5Z1kcykDw

If you added Mean row in worksheet, u can single click it and in mini toolbar that shows, click Open Properties Dialog to set the decimal place there. Then refresh the graph.

Or in legend, set it to $(%(1Y,@LD),.0)
U can also set $(%(1Y,@LD),*3) to have 2 significant digit
See all supported custom numeric format
https://www.originlab.com/doc/LabTalk/ref/Origin-Formats

Thanks, Snow



Dear Snow,

Well noted.

Thank you!

---
Andrey
Go to Top of Page
   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