| Reference | Downloads | Github

Change the labels color on rating scale

Hello Psychopy users!

Is there anyone who knows the code to change the color of the labels just as lineColor or markerColor?


1 Like

The parameter textColor is what you want. Just give the color you want when creating the scale (

If you need more control, you have to dig a little deeper but its still pretty easy. If your rating scale is called rs, all of the labels are in a list: rs.labels. You can set their color, e.g., to black:

for label in rs.labels:
    label.color = 'black'

You can set individual labels to have different colors, e.g., only the last (rightmost) one to be red: