1.174 FAQ-841 How do I trim unnecessary zero at integer tick labels?

Last Update: 10/7/2019

Origin would show "0" at the end of integer tick labels to indicate the precision. If you don't want such "0" in integer tick labels:

  1. Double click on the axis to open the Axis dialog.
  2. Go to the Tick Labels tab], and then Display sub-tab. Set Display to Custom and then set Custom Format to *
    QH Trim Zero 01.png

Note: You can combine * at the end of other syntax.

  • .1* means keep 1 decimal places and trim unnecessary zeros
  • *2* means keep two significant digits and trim unnecessary zeros
Note: Since Origin 2020, there is a system variable @TLC which can be used to show Zero as "0" without any trailing zero. This system variable only influences the axis label Zero, won't change any other label's trailing zeros.

Keywords:significant digit, label, axes, unnecessary zero

Minimum Origin Version Required: 9.1