<div dir="ltr"><div>David,<br><br></div>The problem I have had with those methods is that the label format will be reset internally whenever the axis range changes since the label precision is recomputed in the private AdjustRange method. This is true even when automatic power scaling (via SetLabelScaling) is turned off. For my application I wanted to just set the label format to "%g" (with the power scaling off) and not need to reset it, so I ended up making a custom version of the class that includes a flag to disable this automatic adjustment of the label precision in AdjustRange.<br>
<br>Leif<br><div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jan 17, 2014 at 7:01 AM, David Cole <span dir="ltr"><<a href="mailto:dlrdave@aol.com" target="_blank">dlrdave@aol.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><font color="black" face="Arial, Helvetica, sans-serif">Have y<font>ou tried SetXLabelFormat and its Y & Z friends?<br>
<br>
Documented here:<br>
<br>
<a href="http://www.vtk.org/doc/nightly/html/classvtkCubeAxesActor.html" target="_blank">http://www.vtk.org/doc/nightly/html/classvtkCubeAxesActor.html</a><br>
<br>
<a href="http://www.vtk.org/doc/nightly/html/classvtkCubeAxesActor.html#ad19d12f8754ebc7c47489957eae51911" target="_blank">http://www.vtk.org/doc/nightly/html/classvtkCubeAxesActor.html#ad19d12f8754ebc7c47489957eae51911</a><br>
<br>
<br>
HTH,<br>
David<br>
</font><div><div class="h5">
<div> <br>
</div>
<div> <br>
</div>
<div> <br>
</div>
<div style="font-size:10pt;font-family:arial,helvetica">-----Original Message-----<br>
From: madz <<a href="mailto:madaramh@gmail.com" target="_blank">madaramh@gmail.com</a>><br>
To: vtkusers <<a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a>><br>
Sent: Fri, Jan 17, 2014 12:32 am<br>
Subject: [vtkusers] vtkCubeAxesActor axis label problem<br>
<br>
<div style="font-size:12px;font-family:Tahoma,Verdana,Arial,Sans-Serif;margin:0px">
<pre style="font-size:9pt"><tt>When using the vtkCubeAxesActor I noticed that for some data sets the axis
labels are displayed differently.
<<a href="http://vtk.1045678.n5.nabble.com/file/n5725464/Untitled.png" target="_blank">http://vtk.1045678.n5.nabble.com/file/n5725464/Untitled.png</a>>
As the above image displays, one axis has two decimal points while the other
two only has one. How do I fix this bug.
Thank you.
--
View this message in context: <a href="http://vtk.1045678.n5.nabble.com/vtkCubeAxesActor-axis-label-problem-tp5725464.html" target="_blank">http://vtk.1045678.n5.nabble.com/vtkCubeAxesActor-axis-label-problem-tp5725464.html</a>
Sent from the VTK - Users mailing list archive at Nabble.com.
_______________________________________________
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a>
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>
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>
Follow this link to subscribe/unsubscribe:
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a>
</tt></pre>
</div>
</div>
</div></div></font><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>
<br></blockquote></div><br></div></div></div></div></div>