Psychopy 评分量表上的两个不同的 tickHeights
Two different tickHeights on a rating scale in Psychopy
我知道您可以在 Psychopy 中自定义评分量表的 tickHeight。我想要两个不同的 tickHeights。这是一个粗略的草图:
这可能吗?如果可以,我该怎么做?
这是我目前拥有的评分量表代码:
myRatingScale = visual.RatingScale(myWin, precision=10, showValue=True, low = 1, high = 10, scale ="", tickHeight=5)
这是可能的,但并不容易。如果您的评分等级 rs
是这样的:
rs = visual.RatingScale( ... lots of parameters here ...)
你可以用任何刻度线作为一组顶点创建一条新线,然后做
newVertices = [ [x1,y1], .... [xn,yn] ] # many x,y points -- all up to you
rs.line.setVertices(newVertices)
然后才绘制等级量表。我没有对此进行测试,但认为它会起作用(或类似的东西)。
我知道您可以在 Psychopy 中自定义评分量表的 tickHeight。我想要两个不同的 tickHeights。这是一个粗略的草图:
这可能吗?如果可以,我该怎么做?
这是我目前拥有的评分量表代码:
myRatingScale = visual.RatingScale(myWin, precision=10, showValue=True, low = 1, high = 10, scale ="", tickHeight=5)
这是可能的,但并不容易。如果您的评分等级 rs
是这样的:
rs = visual.RatingScale( ... lots of parameters here ...)
你可以用任何刻度线作为一组顶点创建一条新线,然后做
newVertices = [ [x1,y1], .... [xn,yn] ] # many x,y points -- all up to you
rs.line.setVertices(newVertices)
然后才绘制等级量表。我没有对此进行测试,但认为它会起作用(或类似的东西)。