Howdy, Stranger!

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

Supported by

Showing seaborn plot in OpenSesame

Dear everyone,

I am working on an experiment in which I want to show a custom feedback at the end of a sequence for each participant based on their responses in that sequence. Ideally, this feedback is a visual one, e.g., in a plot. For this reason, I have tried using a combination of pandas (for creating dataframes - but perhaps I can use DataMatrix as well) and seaborn (for plotting). Can anyone tell me how to show (seaborn) plots in OpenSesame canvas? Thanks in advance!



  • Hi Wisnu,

    I don't think you can use seaborn or matplotlib to draw on the canvas, but your probably will be able to bypass the problem, by making your plot and saving it as an image on your pc. Then, right after, you can use the canvas.image function to load this image again and draw it on the canvas.

    Does that make sense?


    Buy Me A Coffee

  • Hi Eduard,

    Thanks for your response. Is it possible to create the plot while the experiment is running? I assume your suggestion would be to create a custom function in the inline script to make the plot and save it in the experiment file pool. Am I correct?

    To give a more precise idea, I am building a learning experiment in which participants need to study x-ray images of various lung diseases by blocking (e.g., four exemplars of one disease in one block) and interleaving (e.g., the first four exemplars of four different diseases in one block). At the end of each block, I would like to ask the participants to rate their mental effort they spent for the previous block using a custom form. This part can be arranged relatively straightforwardly in OpenSesame.

    At the end of the experiment, I would like to show mental effort ratings in blocking and interleaving units during the experiment of that particular participant. My idea was to show the ratings in a plot using the variables for mental effort ratings and condition that have been stored in OpenSesame. I thought I could use available python packages to help me do this. However, if there is a more OpenSesame way to achieve what I want, I would be more than happy to try it.


  • Hi Wisnu,

    Is it possible to create the plot while the experiment is running?

    Yes, that is possible (even though effectively the experiment is pausing while the plots are being made, but that's not what you are concerned about, right?)

    I assume your suggestion would be to create a custom function in the inline script to make the plot and save it in the experiment file pool.

    Yes, that is what I mean. You don't necessarily need a function, a simple script would be fine. For example, whatever your data is:

    # pseudocode
    import seaborn as sn
    fig = sn.plot(data)

    In summary, you basically know what to do, it is about time to do it :) Good luck, and if you get stuck, let us know.


    Buy Me A Coffee

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