<div dir="ltr"><div>Can you provide a small, compilable example that illustrates the problem?<br><br></div>Bill<br><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Jun 25, 2013 at 9:46 AM, chasank <span dir="ltr">&lt;<a href="mailto:chasank@gmail.com" target="_blank">chasank@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
In vtk5.10.1 we can arrange label size of vtkScalarBarActor as we want, as<br>
you see below.<br>
<br>
&lt;<a href="http://vtk.1045678.n5.nabble.com/file/n5721585/colorbar_calisan.png" target="_blank">http://vtk.1045678.n5.nabble.com/file/n5721585/colorbar_calisan.png</a>&gt;<br>
<br>
But after we ported our project from vtk5.10.1 to vtk6.0, we cannot arrange<br>
label size.<br>
<br>
&lt;<a href="http://vtk.1045678.n5.nabble.com/file/n5721585/colorbar_calismayan.png" target="_blank">http://vtk.1045678.n5.nabble.com/file/n5721585/colorbar_calismayan.png</a>&gt;<br>
<br>
Code we wrote for this operation is below.<br>
<br>
    this-&gt;colorBar = vtkSmartPointer &lt; vtkScalarBarActor&gt; :: New();<br>
    this-&gt;colorBar-&gt;SetMaximumNumberOfColors(256);<br>
    this-&gt;colorBar-&gt;SetLookupTable(this-&gt;lookupTable);<br>
    this-&gt;colorBar-&gt;SetHeight(0.10);<br>
    this-&gt;colorBar-&gt;SetWidth(0.90);<br>
    this-&gt;colorBar-&gt;SetPosition(0.04, 0.02);<br>
    this-&gt;colorBar-&gt;SetOrientationToHorizontal();<br>
    this-&gt;colorBar-&gt;SetNumberOfLabels(3);<br>
    this-&gt;colorBar-&gt;SetLabelFormat(&quot;%.4g&quot;);<br>
    this-&gt;colorBar-&gt;VisibilityOn();<br>
<br>
We ask your help to size label as we wish. Which method(s) do we need to<br>
use?<br>
<br>
Sincerely.<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://vtk.1045678.n5.nabble.com/VTK6-0-label-size-problem-of-vtkScalarBarActor-tp5721585.html" target="_blank">http://vtk.1045678.n5.nabble.com/VTK6-0-label-size-problem-of-vtkScalarBarActor-tp5721585.html</a><br>

Sent from the VTK - Users mailing list archive at Nabble.com.<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>Unpaid intern in BillsBasement at noware dot com<br>
</div>