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
 Formatting numbers in a plot legend

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 - 03/10/2026 : 3:48:40 PM
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
2   L A T E S T    R E P L I E S    (Newest First)
AKazak Posted - 03/10/2026 : 4:16:51 PM
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
snowli Posted - 03/10/2026 : 4:12:02 PM
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

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