Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我知道您可以在 Psychopy 中自定义评分量表上的 tickHeight。我想要两个不同的tickHeights。这是一个粗略的草图:
这可能吗?如果是这样,我该怎么做?
这是我到目前为止的评级量表代码:
myRatingScale = visual.RatingScale(myWin, precision=10, showValue=True, low = 1, high = 10, scale ="", tickHeight=5)
这是可能的,但并不容易。如果您有这样的评分量表rs:
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)
然后才绘制评级量表。我没有对此进行测试,但认为它会起作用(或类似的东西)。