From: Dragan T. <dr...@us...> - 2004-12-07 01:45:26
|
Update of /cvsroot/octaviz/octaviz/Scripts In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19807 Modified Files: vtk_figure.m Log Message: Changed axes display to improve readibility: tick marks are now positioned at round values. Index: vtk_figure.m =================================================================== RCS file: /cvsroot/octaviz/octaviz/Scripts/vtk_figure.m,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- vtk_figure.m 28 Nov 2004 03:25:18 -0000 1.5 +++ vtk_figure.m 7 Dec 2004 01:45:16 -0000 1.6 @@ -162,13 +162,18 @@ axes = vtkCubeAxesActor2D; axes.SetCamera(renderer.GetActiveCamera()); - axes.SetLabelFormat("%4.2f"); + axes.SetLabelFormat("%1.2g"); axes.SetFlyModeToOuterEdges(); axes.SetFontFactor(1.0); axes.SetNumberOfLabels(5); axes.SetAxisTitleTextProperty(tprop); axes.SetAxisLabelTextProperty(tprop); axes.SetProp( outline_actor ); + axes.GetXAxisActor2D().AdjustLabelsOn(); + axes.GetYAxisActor2D().AdjustLabelsOn(); + axes.GetZAxisActor2D().AdjustLabelsOn(); + axes.SetInertia(10); + axes.ScalingOn(); renderer.AddProp(axes); ren_win = vtkRenderWindow; |