# VTKAxisActor color

**URL:** https://discourse.vtk.org/t/vtkaxisactor-color/2644
**Category:** Support
**Created:** [February 17, 2020, 5:14pm UTC](https://discourse.vtk.org/t/vtkaxisactor-color/2644 "2020-02-17T17:14:44Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Nicolas\_Lenoir](https://discourse.vtk.org/user_avatar/discourse.vtk.org/nicolas_lenoir/32/1402_2.png) [@Nicolas\_Lenoir](https://discourse.vtk.org/u/Nicolas_Lenoir)
#### Post date: [February 17, 2020, 5:14pm UTC](https://discourse.vtk.org/t/vtkaxisactor-color/2644/1 "2020-02-17T17:14:45Z")

</div>

Hello, I have a problem with the color change of my VTKAxisActor. I want to make it more visible on my images but when I change the property color, the color is change in memory but I didn’t see any change.  
To make a test i use you vtkAxisActor example and i just add this line.

axis-\>GetProperty()-\>SetColor(1.0, 0.0, 0.0);

---

<div class="post-metadata">

### Author: ![amaclean](https://discourse.vtk.org/user_avatar/discourse.vtk.org/amaclean/32/224_2.png) [@amaclean](https://discourse.vtk.org/u/amaclean)
#### Post date: [February 18, 2020, 5:31am UTC](https://discourse.vtk.org/t/vtkaxisactor-color/2644/2 "2020-02-18T05:31:22Z")

</div>

This example may help, [AxisActor](https://lorensen.github.io/VTKExamples/site/Cxx/Visualization/AxisActor/), here the title and label colours are being set. Also look at [vtkAxisActor Class Reference](https://vtk.org/doc/nightly/html/classvtkAxisActor.html) for other actor properties that you can set.

---

<div class="post-metadata">

### Author: ![Nicolas\_Lenoir](https://discourse.vtk.org/user_avatar/discourse.vtk.org/nicolas_lenoir/32/1402_2.png) [@Nicolas\_Lenoir](https://discourse.vtk.org/u/Nicolas_Lenoir)
#### Post date: [February 18, 2020, 7:33am UTC](https://discourse.vtk.org/t/vtkaxisactor-color/2644/3 "2020-02-18T07:33:34Z")

</div>

Thanks but i want to change the color of the axis and not of the title or label.

---

<div class="post-metadata">

### Author: ![amaclean](https://discourse.vtk.org/user_avatar/discourse.vtk.org/amaclean/32/224_2.png) [@amaclean](https://discourse.vtk.org/u/amaclean)
#### Post date: [February 18, 2020, 10:12am UTC](https://discourse.vtk.org/t/vtkaxisactor-color/2644/4 "2020-02-18T10:12:20Z")

</div>

I’m away from my computer however there should be methods like “GetXAxisShaftProperty()” and " GetXAxisTipProperty()" and you should be able to use “SetColor()” on the properties.

---

<div class="post-metadata">

### Author: ![Nicolas\_Lenoir](https://discourse.vtk.org/user_avatar/discourse.vtk.org/nicolas_lenoir/32/1402_2.png) [@Nicolas\_Lenoir](https://discourse.vtk.org/u/Nicolas_Lenoir)
#### Post date: [February 18, 2020, 10:24am UTC](https://discourse.vtk.org/t/vtkaxisactor-color/2644/5 "2020-02-18T10:24:45Z")

</div>

I can not access to those properties because there are in the vtkAxesActor and not in vtkAxisActor. I tried with the GetAxisMainLineProperty or GetAxisLinesProperty and there is no color change.

---

<div class="post-metadata">

### Author: ![yuhuimoon](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/y/c6cbf5/32.png) [@yuhuimoon](https://discourse.vtk.org/u/yuhuimoon)
#### Post date: [February 14, 2021, 2:16pm UTC](https://discourse.vtk.org/t/vtkaxisactor-color/2644/6 "2021-02-14T14:16:50Z")

</div>

I meet the same problem too. Have you ever solved it?
