[vtkusers] Change scalarbar labels
cory.quammen at kitware.com
Wed Jul 15 09:51:31 EDT 2015
Unless you can figure out the printf formatting string that gives you what
you want, you'll need to use annotations instead of the labels. You can set
annotated values with vtkScalarsToColors::SetAnnotation(vtkVariant,
Then you'll need to display the annotations with
Hope that helps,
On Mon, Jul 13, 2015 at 5:31 AM, Jan <liuyanbc157 at gmail.com> wrote:
> Hallo, everyone,
> Now I want to set new strings in position of scalarbar labels.
> For example, the range of value is 0 - 1, and with numberofLabels(6). But I
> want the display instead of 0 0.2 0.4 0.6 0.8 1.0 but with form of 0
> 400e-03 600e-03 800e -03 1.0. The Problem is that FormatofLabels doesn't
> support these strings. So what could I do perhaps with
> AllocateAndSizeLabels() in ScalarbarActor or with other methods to change
> format of nummers in this way?
> Thanks alot.
> Powered by www.kitware.com
> Visit other Kitware open-source projects at
> Please keep messages on-topic and check the VTK FAQ at:
> Search the list archives at: http://markmail.org/search/?q=vtkusers
> Follow this link to subscribe/unsubscribe:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the vtkusers