Dear all,<div><br></div><div>I want to visualize only  X and Z axis in my plot. Following is my python code:</div><div><br></div><div><div># Read image data from a file</div><div>reader1 = vtk.vtkExodusIIReader()</div><div>

reader1.SetFileName(&quot;py_noair.e&quot;)</div><div>reader.Update()</div><div><br></div><div>geom1 = vtk.vtkCompositeDataGeometryFilter()</div><div>geom1.SetInputConnection(reader1.GetOutputPort())</div><div><br></div>
<div>
mapper1 = vtk.vtkPolyDataMapper()</div><div>mapper1.SetInputConnection(geom1.GetOutputPort())</div><div>mapper.ImmediateModeRenderingOff()</div><div><br></div><div>actor1 = vtk.vtkActor()</div><div>actor1.SetMapper(mapper1)</div>

<div>actor1.GetProperty().SetColor(0,0,0)</div><div>actor1.GetProperty().SetLineWidth(1.0)</div><div>actor1.GetProperty().SetRepresentationToWireframe()</div><div><br></div><div># Create a text property for both cube axes</div>

<div>tprop = vtk.vtkTextProperty()</div><div>tprop.SetColor(0.0, 0.0, 0.0)</div><div>tprop.ShadowOff()</div><div>tprop.SetFontSize(8)</div><div> </div><div>ren.AddActor(actor1)</div><div>ren.SetBackground(1.0, 1.0, 1.0)</div>

<div><br></div><div>ren.ResetCamera()</div><div><br></div><div>cam=vtk.vtkCamera()</div><div>cam.SetFocalPoint(0.0,0.0,0.0)</div><div>cam.SetPosition(0.0,-1,0.0)</div><div>ren.SetActiveCamera(cam)</div><div>ren.ResetCamera()</div>

<div><br></div><div>outline = vtk.vtkOutlineFilter()</div><div>outline.SetInputConnection(geom1.GetOutputPort())</div><div>outline.Update() # This is required to execute following line</div><div><br></div><div># Create a vtkCubeAxesActor2D.  Use the outer edges of the bounding box to</div>

<div># draw the axes</div><div>axes = vtk.vtkCubeAxesActor2D()</div><div>axes.GetProperty().SetColor(0,0,0)</div><div>axes.YAxisVisibilityOff()</div><div>axes.SetCamera(ren.GetActiveCamera())</div><div>axes.SetLabelFormat(&quot;%6.3f&quot;)</div>

<div>axes.SetFlyModeToOuterEdges()</div><div>axes.SetShowActualBounds(1)</div><div>axes.SetCornerOffset(0.0)</div><div>axes.GetXAxisActor2D().SetNumberOfMinorTicks(5)</div><div>axes.GetZAxisActor2D().SetNumberOfMinorTicks(5)</div>

<div>axes.SetFontFactor(1.8)</div><div>axes.SetAxisTitleTextProperty(tprop)</div><div>axes.SetAxisLabelTextProperty(tprop)</div><div>axes.SetXLabel(&quot;X (m)&quot;)</div><div>axes.SetZLabel(&quot;Z (m)&quot;)</div><div>

axes.SetNumberOfLabels(7)</div><div>ren.AddViewProp(axes)</div><div><br></div><div># Save the window to a png file</div><div>image = vtk.vtkWindowToImageFilter()</div><div>image.SetInput(renWin)</div><div>writer = vtk.vtkPNGWriter()</div>

<div>writer.SetInputConnection(image.GetOutputPort())</div><div>writer.SetFileName(&quot;test.png&quot;)</div><div>writer.Write()</div><div><br></div><div>iren.Initialize()</div><div>renWin.Render()</div><div>iren.Start()</div>

<div><br></div><div>Because my image is in ZX plane I was trying to plot only the X and Z axis. But I get only the X axes and some part of Y axes (very strange) as in the attached figure. Am I doing something wrong?</div>

<div><br></div><div>I would be grateful for the suggestion.</div><div><br></div><div>Thanks,</div><div>Hom nath</div><div><br></div></div>