control "axes grid" properties using python script

Hi, I want to modify “axes grid” properties using python script. It seems that some scripts are working, but some are not working.
For example: the following is working:

>>> renderView = GetActiveView()
>>> axesGrid = renderView.AxesGrid
>>> axesGrid.Visibility = 1  #show the axes grid
>>> axesGrid.XTitle = 'R (m)'  #change the title
>>> axesGrid.XTitleColor = [0, 0, 0.0] #change the color

But some are not working, e.g.

>>> axesGrid.XAxisLabels = [0.2, 0.3, 0.4] #change the labels

Moreover, I also want to change the color of the lables, and could not find the command. I also want to turn off some lables on some boundaries. Such function is achievable via GUI, but I don’t know how to do it in command line. Any idea? Thanks!
Chen

Hi,

You need to set XAxisUseCustomLabels=1 so your XAxisLabels will be taken into account.

For coloration, see the XLabelColor property.

As a more general advise, to find the Python API you can use the Python Trace (Tools / Start Trace), with Fully Trace Supplemental Proxies turned On.

Thanks Nicolas for the clarification. I can control the axis properties with the help of trace tool with fully trace turned on.