<div dir="ltr">You could do that by<br><br>//For 10 labels<br><span style="color:rgb(0,128,0)">scalarBar->SetMaximumNumberOfColors(10);<br></span><span style="color:#008000">scalarBar->SetNumberOfLabels(10);</span><br>
<br>Jothy<br><br><div class="gmail_quote">On Thu, Feb 23, 2012 at 12:10 AM, Karl Merkley <span dir="ltr"><<a href="mailto:karl@elemtech.com">karl@elemtech.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
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?<br>
<br>
Thanks,<br>
Karl<br>
<br>
<br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
</blockquote></div><br><br clear="all"><br>-- <br><div dir="ltr">Jothy<br></div><br>
</div>