Publication quality line plots in python

แชร์
ฝัง
  • เผยแพร่เมื่อ 6 ก.ย. 2024
  • I go over making high quality line plots in python using matplotlib and seaborn. I also show how to calculate p values using scipy and display them on the plot.
    Notebook:
    github.com/mou...

ความคิดเห็น • 13

  • @gustavojuantorena
    @gustavojuantorena 2 หลายเดือนก่อน

    Grrat tutorial. About the significance marker, do you have another video o has a recommendation for plotting brackets and stars between boxplots? I dont get a simple way to do it

  • @m.a.k5940
    @m.a.k5940 ปีที่แล้ว

    the best available on youtube! Thank you.

  • @justinasmus1190
    @justinasmus1190 2 ปีที่แล้ว

    This was a pretty cool vid, enjoyed the quality of the graph you could produce. Do you have a computer science background or are you self-taught regarding your programming skills? Basically asking if you started out from a biological science background and learnt the programming as you went along and if so do you have any tips for someone in the same boat trying to pick up programming now?

    • @sanbomics
      @sanbomics  2 ปีที่แล้ว +1

      Great question. I was just like you! My background was in biochemistry. I had a little transient CS experience over the years. But in no way do I think that contributed to when I actually decided to start learning CS/bioinformatics--I think it more so just let me know that it was an option. What really helped me start is I started doing CS stuff that was relevant to my work. You should definitely make it relevant: try to automate things that you currently have to do on the computer. For example, anything you have to do in excel on a regular basis.
      Knowing your way around linux is very useful. You can make an AWS free tier account or buy a 30 dollar raspberry pi to get started. I started linux on an raspberry pi back in the day before I had the courage to use the actual HPC we had at work.
      I wanted to make videos for people just starting out. But those videos have a grand total of like 30 views so I lost motivation (my linux tutorials).
      In summary, just start using it and you will pick it up. I remember a time where it would take me hours to make and troubleshoot a simple python script (not all that long ago!). Now I feel like my grasp on python is on par with my grasp of the english language haha.

  • @tenzintseten8928
    @tenzintseten8928 ปีที่แล้ว

    Great video. Can you explain bit more on the command used for making triplicates. Thanks

    • @sanbomics
      @sanbomics  ปีที่แล้ว

      Sure, I just made up random ordered values in triplicate then zipped the lists together with a label for the weeks. For weeks i just looped from 1-8 weeks and made a new list with [1,1,1] + [2,2,2] + .... + [8,8,8] = [1,1,1,2,2,2,...,8,8,8]. So when they were zipped together in the same order the labels matched the values.

    • @tenzintseten8928
      @tenzintseten8928 ปีที่แล้ว

      Thanks a lot. Your video was really helpful. 👍👍

  • @emtiazhossainhritan3439
    @emtiazhossainhritan3439 ปีที่แล้ว

    Thanks a lot!

    • @sanbomics
      @sanbomics  ปีที่แล้ว +1

      You are welcome!

  • @ibrahimalotaibi2399
    @ibrahimalotaibi2399 ปีที่แล้ว

    The plot at 1:55 looks prettier.

    • @sanbomics
      @sanbomics  ปีที่แล้ว

      I would disagree but it is a matter of opinion xD

    • @ibrahimalotaibi2399
      @ibrahimalotaibi2399 ปีที่แล้ว

      @@sanbomics Thanks for the effort. ANW.