# Change color of vtkCubeAxesActor

**URL:** https://discourse.vtk.org/t/change-color-of-vtkcubeaxesactor/10584
**Category:** Support
**Created:** [February 1, 2023, 5:28pm UTC](https://discourse.vtk.org/t/change-color-of-vtkcubeaxesactor/10584 "2023-02-01T17:28:38Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![BlueKnight7](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/b/838e76/32.png) [@BlueKnight7](https://discourse.vtk.org/u/BlueKnight7)
#### Post date: [February 1, 2023, 5:28pm UTC](https://discourse.vtk.org/t/change-color-of-vtkcubeaxesactor/10584/1 "2023-02-01T17:28:38Z")

</div>

Referring to example:  
[https://kitware.github.io/vtk-examples/site/Cxx/Utilities/DetermineActorType/](https://kitware.github.io/vtk-examples/site/Cxx/Utilities/DetermineActorType/)

Notice that with this example the axes and axes labels are in white.

After looking at the on-line documentation and the class header file, I can’t determine how to change the color of the axes and their tick marks. I can change the color of the labels. I can draw grid lines in any color I choose. But, so far have not found how to change the color of the axes and the tic marks. How can I do this?

---

<div class="post-metadata">

### Author: ![rexthor](https://discourse.vtk.org/user_avatar/discourse.vtk.org/rexthor/32/6481_2.png) [@rexthor](https://discourse.vtk.org/u/rexthor)
#### Post date: [February 2, 2023, 6:47pm UTC](https://discourse.vtk.org/t/change-color-of-vtkcubeaxesactor/10584/2 "2023-02-02T18:47:12Z")

</div>

I didn’t compile the example, but perhaps `vtkCubeAxesActor::GetXAxesLinesProperty` and `vtkCubeAxesActor::SetXAxesLinesProperty`? These work with `vtkProperty` …

---

<div class="post-metadata">

### Author: ![BlueKnight7](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/b/838e76/32.png) [@BlueKnight7](https://discourse.vtk.org/u/BlueKnight7)
#### Post date: [February 2, 2023, 7:56pm UTC](https://discourse.vtk.org/t/change-color-of-vtkcubeaxesactor/10584/3 "2023-02-02T19:56:20Z")

</div>

Thanks. That worked.

I don’t know how I missed it, probably because there were so many functions listed on the webpage and I wasn’t sure what I was looking for.
