psychopy/psychopy — pull request #230 by singmann (2012-11-19 11:53:27+00:00)
Title: RatingScale: New arguments tickMarks and labels, new behavior for choices

Hi Jon,

as you perhaps have noticed, I wrote some code for the RatingScale class.
Specifically I (a) added two arguments to allow controlling where tick marks should be placed and how they are labeled for quantitative rating scales, (b) changed the default behavior of how labels for categorical ratings scales (i.e., choices) are displayed (now the labels are also displayed at the tick marks), the old behavior can be restored by setting labels=False, and (c) added argument ticksAboveLine to the class to control where the ticks should be placed.
In addition, I added (d) a check box (oldChoiceBehavior) to the RatingScale component of the builder, to allow to restore the old behavior (for backwards compatibility).

What is still missing is text in the changelog. As I am not sure on which version number to add my changes, I refrained from changing the changelog, here is my suggestion on what to add at the correct positions:

* CHANGED: choices for RatingScales are now per default displayed at the tick marks (instead of above the line). To restore the old behavior set labels=False. The builder component also contains the advanced setting oldChoiceBehavior to restore the old behavior.
* ADDED: arguments tickMarks and labels RatingScale class to control where tick marks (for quantitative rating scales) should be placed at the line and how these should be labeled.
* ADDED: argument ticksAboveLine for RatingScale class. Controls where the tick marks should be plotted.

I hope you like my changes and might merge them into PsychoPy.

Cheers,
Henrik