[vtkusers] Scalar bar with discrete values

Jothybasu Selvaraj jothybasu at gmail.com
Thu Feb 23 04:33:02 EST 2012


You could do that by

//For 10 labels
scalarBar->SetMaximumNumberOfColors(10);
scalarBar->SetNumberOfLabels(10);

Jothy

On Thu, Feb 23, 2012 at 12:10 AM, Karl Merkley <karl at elemtech.com> wrote:

>
> I have a set of discrete values (thicknesses) that I want to describe with
> a scalar bar.   Each color has exactly one value associated with it.   When
> I set up my scalar bar it has a range defined by each color.    Is there a
> way to get a single label drawn at the center of the color range instead of
> labels at the tops and bottoms of each range?
>
>  Thanks,
>     Karl
>
>
>
>
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>



-- 
Jothy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20120223/06ae3b12/attachment.htm>


More information about the vtkusers mailing list