tick mark attributes

Hello, I am trying to change the size and color of tick marks but I'm
having trouble.

Here's how I do it:

#tickmark attributes

setAttr(axes.xaxis.get_major_ticks(), size=2, color='g', visible=True)

I get an error indicating that size and color are not keywords. How can
I fix this? Thanks!

Jeff