Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Supported by

How to align text left that is displayed via Canvas.

edited March 2019 in OpenSesame

Hi folks,

This may seem a bit of a daft question but as of typing this I can only see an instruction for 'center = True' when it comes to aligning text.

Is there a way to align the text to the left edge of the display in Canvas, other than inputting x-coordinates?

I can make it work using x-coordinates but I'm just wondering if there is a 'proper' way to do this?



EDIT: I've just noticed that using the x-coordinate (a fixed global variable for all text from a dictionary) approach that the text, while aligning left, doesn't always start at the exact same place. I don't understand why that would be. The shorter the sentence the further right it starts. Any ideas?

Example of how I align left using the x-coordinate:

Question_Stim_Canvas['presented_text'] = Text(var.Question_Presentation[var.Temp_List_Trial_Count], color = var.Txt_Colour, x = var.Align_Left)

var.Align_Left is a global variable that I input a minus value to move left on the x-axis.

The stimuli themselves are pulled from dictionaries.


  • edited March 2019

    To clarify: I want a sentence aligned left, in the centre of the y-axis, and the first character to start at the x-coordinate I input.

    As I said above, while the text is now positioned to the left of centre the first character is not matching the x-coordinate I'm inputting in the canvas. In the example above, I use a global variable for the coordinate. However, when just inputting a number for the x-axis value it still isn't starting the text exactly where I tell it to. There's very noticeable variation. This is confirmed via rect coordinates that I'm saving for purposes of Areas of Interest.

    If the sentence is short its closer to the centre of the display; if the sentence is too long it actually disappears off the screen to the left.

    Any idea why this might be happening?

    Could this be related to a resolution issue? When I input the actual size of the resolution in OpenSesame on this Mac it doesn't display properly. The Eye-tracking calibration stimuli was also "off the screen". I had to half the inputted resolution to get the eye-tracker calibration stimuli to appear where expected. I understand that if OpenSesame is being resized that the terminal should indicate this when using PsychoPy (which I am) but I don't see anything suggesting that is happening (what should it say?).

    I'll keep trying to get to the bottom of it for now and will report back if I figure this out.



    PS: (in case this is somehow related) I always get warnings saying things like "X Coordinate "[Align_Left]" is unknown or variably defined, using display center" when using global variables in the couple of Sketchpads I use. Another - Color "[Txt_Colour]" is unknown or variably defined, using placeholder color." Worth noting in this last example that the instructed colour works perfectly well. Just thought I'd mention it as it's another mystery to me and may be somehow related.

    EDIT: I've tried this paradigm on a Windows 10 PC and have the exact same issues as with the MAC. I've tried to upload the paradigm here but keep getting a "Request failed with status code 500" message so here's a Dropbox link with the file:

    The Letters "z" and "m" will advance screens where responses are allowed. The EyeTracking is set to dummy mode. Change the value "Align_Left" (in the inline_script called 'Attributes_inline_Script") to change the x-coordinate used for test stimuli.

  • Hi folks,

    Sorry for the bump, but any thoughts on my issue above?

    Note: I've linked my paradigm above too.



  • Hi folks,

    I still haven't got to the bottom of this and can't proceed with starting the experiment until I do.

    I'm totally baffled.

    Any insight would be appreciated.



  • Hi Boo,

    Could it be the centered variable of a Text object?

    If you, set it to True the x coordinate corresponds to the center of the string that is passed into Text(), if you set it to False, it corresponds to the left beginning of it. Could this be the issue?

    Can you upload your experiment?


    Buy Me A Coffee

  • Hi @eduard,

    I'll check out your link later today. Thanks.

    Regarding the experiment, I have included a link in a message above to a shared folder in Dropbox that contains the experiment. It won't upload here for some reason, that's why I used Dropbox.



  • Hi again @eduard,

    Your suggestion appears to be the source of the issue!

    Thanks so much, I was slowly going bonkers.

    I have to say you're a hugely valuable member of the community here. Keep up your awesome work.

    Thanks again,


Sign In or Register to comment.

agen judi bola , sportbook, casino, togel, number game, singapore, tangkas, basket, slot, poker, dominoqq, agen bola. Semua permainan bisa dimainkan hanya dengan 1 ID. minimal deposit 50.000 ,- bonus cashback hingga 10% , diskon togel hingga 66% bisa bermain di android dan IOS kapanpun dan dimana pun. poker , bandarq , aduq, domino qq , dominobet. Semua permainan bisa dimainkan hanya dengan 1 ID. minimal deposit 10.000 ,- bonus turnover 0.5% dan bonus referral 20%. Bonus - bonus yang dihadirkan bisa terbilang cukup tinggi dan memuaskan, anda hanya perlu memasang pada situs yang memberikan bursa pasaran terbaik yaitu Bola168. Situs penyedia segala jenis permainan poker online kini semakin banyak ditemukan di Internet, salah satunya TahunQQ merupakan situs Agen Judi Domino66 Dan BandarQ Terpercaya yang mampu memberikan banyak provit bagi bettornya. Permainan Yang Di Sediakan Dewi365 Juga sangat banyak Dan menarik dan Peluang untuk memenangkan Taruhan Judi online ini juga sangat mudah . Mainkan Segera Taruhan Sportbook anda bersama Agen Judi Bola Bersama Dewi365 Kemenangan Anda Berapa pun akan Terbayarkan. Tersedia 9 macam permainan seru yang bisa kamu mainkan hanya di dalam 1 ID saja. Permainan seru yang tersedia seperti Poker, Domino QQ Dan juga BandarQ Online. Semuanya tersedia lengkap hanya di ABGQQ. Situs ABGQQ sangat mudah dimenangkan, kamu juga akan mendapatkan mega bonus dan setiap pemain berhak mendapatkan cashback mingguan. ABGQQ juga telah diakui sebagai Bandar Domino Online yang menjamin sistem FAIR PLAY disetiap permainan yang bisa dimainkan dengan deposit minimal hanya Rp.25.000. DEWI365 adalah Bandar Judi Bola Terpercaya & resmi dan terpercaya di indonesia. Situs judi bola ini menyediakan fasilitas bagi anda untuk dapat bermain memainkan permainan judi bola. Didalam situs ini memiliki berbagai permainan taruhan bola terlengkap seperti Sbobet, yang membuat DEWI365 menjadi situs judi bola terbaik dan terpercaya di Indonesia. Tentunya sebagai situs yang bertugas sebagai Bandar Poker Online pastinya akan berusaha untuk menjaga semua informasi dan keamanan yang terdapat di POKERQQ13. Kotakqq adalah situs Judi Poker Online Terpercayayang menyediakan 9 jenis permainan sakong online, dominoqq, domino99, bandarq, bandar ceme, aduq, poker online, bandar poker, balak66, perang baccarat, dan capsa susun. Dengan minimal deposit withdraw 15.000 Anda sudah bisa memainkan semua permaina pkv games di situs kami. Jackpot besar,Win rate tinggi, Fair play, PKV Games