# SetLabelFormat

**URL:** https://discourse.vtk.org/t/setlabelformat/5894
**Category:** Support
**Created:** [May 31, 2021, 1:00pm UTC](https://discourse.vtk.org/t/setlabelformat/5894 "2021-05-31T13:00:20Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![devngc](https://discourse.vtk.org/user_avatar/discourse.vtk.org/devngc/32/2750_2.png) [@devngc](https://discourse.vtk.org/u/devngc)
#### Post date: [May 31, 2021, 1:00pm UTC](https://discourse.vtk.org/t/setlabelformat/5894/1 "2021-05-31T13:00:20Z")

</div>

Is there a good reference on how to use SetLabelFormat method of the vtkScalarBarActor class? I have looked at [this](http://www.elmerfem.org/forum/viewtopic.php?t=4642) post already which is helpful.

I used ‘%-#6.3g’ (default value) to get integer values for labels of a ScalarBatActor. However, it did not work. For example I want to get 1000 as a label value whereas I get 1.00e+03. When I used ‘%4.3g’, I got 1e+03, again not 1000.
