psychopy.org | Reference | Downloads | Github

Limit on TextStim height in v1.85.2


#1

There seems to be a strange limit on the height of a visual.TextStim() that will be displayed in PsychoPy 1.85.2.

Here’s an example:

from psychopy import core, visual

win = visual.Window([1920, 1080], fullscr=True, allowGUI= False, units = "height")

# make the text
t1 = visual.TextStim(win, text = "0.02", height = 0.02, pos = [-0.2,0], color = "black")
t2 = visual.TextStim(win, text = "0.04", height = 0.04, pos = [-0.1,0], color = "black")
t3 = visual.TextStim(win, text = "0.06", height = 0.06, pos = [0.1,0], color = "black")
# this last one doesn't display
t4 = visual.TextStim(win, text = "0.08", height = 0.08, pos = [0.3,0], color = "black")

#draw the text
t1.draw()
t2.draw()
t3.draw()
t4.draw()

# flip the window
win.flip()

# wait 2s
core.wait(2)

When I run this the final TextStim (“0.08”) doesn’t display. These issues started after I updated from 1.84.2. My OS is Win7, if that’s relevant.

Everything displays fine on my Linux Mint 18.1 machine running PsychoPy 1.83.04

UPDATE: I’ve now posted an issue on Github as I’m pretty sure that this is a genuine ‘bug’ and not just me.


visual.TextStim are not visible when using height other than 0.1 on laptop running Windows 7
#2

I agree it’s a genuine bug. I’m not sure yet whether it’s our bug or a problem in pyglet (I have a feeling it’s the latter)


#3

Update: this looks like an issue in the pyglet library. Upgrading that to 1.3.0b1 has been reported to solve the problem:

https://github.com/psychopy/psychopy/issues/1385


#4

im using the latest version of pyglet (1.4.0a1), but still cant use height over 100…
any ideas?


#5

No, I don’t know. Last time it was a problem with pyglet and my guess is that it still is, but it was working fine on version 1.3.0b1 so I suggest you install that. Let us know if it’s still a problem afterwards.