# \`vtkCubeAxesActor2D\` show Y and X axes at both sides

**URL:** https://discourse.vtk.org/t/vtkcubeaxesactor2d-show-y-and-x-axes-at-both-sides/6505
**Category:** Support
**Created:** [August 30, 2021, 6:23pm UTC](https://discourse.vtk.org/t/vtkcubeaxesactor2d-show-y-and-x-axes-at-both-sides/6505 "2021-08-30T18:23:08Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![kerim](https://discourse.vtk.org/user_avatar/discourse.vtk.org/kerim/32/1175_2.png) [@kerim](https://discourse.vtk.org/u/kerim)
#### Post date: [August 30, 2021, 6:23pm UTC](https://discourse.vtk.org/t/vtkcubeaxesactor2d-show-y-and-x-axes-at-both-sides/6505/1 "2021-08-30T18:23:08Z")

</div>

Hi,

I can’t find a way to display X-axis at both sides: bottom and top. The same I need to do with Y-axis.

```cpp
  // Cube axes
  vtkNew<vtkCubeAxesActor2D> cubeAxesActor;
  cubeAxesActor->SetCamera(renderer->GetActiveCamera());
  cubeAxesActor->SetZAxisVisibility(0);
  cubeAxesActor->SetInputConnection(glyph2D->GetOutputPort());

```

For now I can only see one axis of each type:

 ![image](https://discourse.vtk.org/uploads/default/original/2X/8/8c3697e7c07495f570efd9e4fe2db4ceca59c7b9.png)
