Python Tutorial for Beginners #13 - Plotting Graphs in Python (matplotlib)

Поделиться
HTML-код
  • Опубликовано: 13 дек 2024

Комментарии • 40

  • @keithkwaramba1494
    @keithkwaramba1494 9 месяцев назад

    Very well explained and straight to the point. Love it!

  • @Martyna-rw3ut
    @Martyna-rw3ut 4 года назад +4

    That was very helpful, thx for all

  • @kelvinfoo8151
    @kelvinfoo8151 4 года назад +4

    This is very useful!

  • @manojreddy312
    @manojreddy312 4 года назад +1

    This is really cool and informative. Thank you a lot ellie for sharing this with us !

  • @ziyadmt5467
    @ziyadmt5467 Год назад

    Very helpful thank you!

  • @jassicalawrence818
    @jassicalawrence818 8 месяцев назад

    useful I am going to try this . Simple and effective for my PhD graphs

  • @aymanouladassafi5345
    @aymanouladassafi5345 2 года назад +1

    you are the best

  • @gingercholo
    @gingercholo 3 года назад +1

    exactly what I was looking for! simple and basic, yet exotic... you seent them markers?!

  • @Toawsome2care
    @Toawsome2care 2 года назад +2

    I’ve tried installing matplotlib as you commented someone else do but I’m still getting the error “no module named matplotlib”. Any suggestions? On a Mac btw

  • @ketosand.3030
    @ketosand.3030 Месяц назад

    Great thank you ma'am

  • @Tech-du2bg
    @Tech-du2bg 2 года назад

    x and y must have same first dimension, but have shapes (30, 30) and (1,) can you help me how I can solve this problem?

  • @wellnessbynaomi
    @wellnessbynaomi 3 года назад +1

    pycharm is telling me the module 'matplotlib' isn't found.. someone please help!

  • @Kig_Ama
    @Kig_Ama 3 года назад

    16:58 Why is the code still running and hasn't been fully executed?

    • @CodeoftheFuture
      @CodeoftheFuture  3 года назад +1

      Because the plot is still showing :) your python code will only stop running once you have crossed off the plot!

    • @Kig_Ama
      @Kig_Ama 3 года назад

      @@CodeoftheFuture Understood, ty!

  • @vijaykerai6920
    @vijaykerai6920 28 дней назад

    How to create a module

  • @SurendraSingh-bd5wc
    @SurendraSingh-bd5wc 10 месяцев назад

    Could anyone tell me how to import the code into my computer

  • @yenref4
    @yenref4 4 года назад

    ¿Disculpame como hago para cambiar la dimensión de la venta del plot?

    • @CodeoftheFuture
      @CodeoftheFuture  4 года назад +2

      I think you're asking how to change the dimension of the scale of the plot. But just incase you mean something else, here's a few things you can do:
      Changing axes limits:
      plt.ylim(a, b)
      plt.xlim(c, d)
      where a and b are your upper and lower limits for the y axes and c and d are the upper and lower limits of the x axes. You assign your own a, b, c and d.
      If you want to change the size of the figures drawn:
      Before asking python to plot (plt.plot(x,y)), write this,
      plt.figure(figsize=(6,6))
      Here you can change 6,6 to any number you want but make sure it's not too small or too large because that will mean your plot will be!
      If neither of those responses help you, comment back and I'll try understand what it is you're wanting! 😊

    • @yenref4
      @yenref4 4 года назад

      @@CodeoftheFuture Muchas gracias la verdad me sirvió mucho lo que me dijiste

    • @CodeoftheFuture
      @CodeoftheFuture  4 года назад

      @@yenref4 I'm glad it was helpful! I'm not too sure what you're asking but if you rephrase it differently, I may be able to help! 😊

  • @Kig_Ama
    @Kig_Ama 3 года назад

    Do we actually need the R Project anymore, if Python is so powerful?

    • @CodeoftheFuture
      @CodeoftheFuture  3 года назад +1

      Good question! R is built as a statistical language and so suits better for statistical learning! Personally, I prefer python but all statistical modules at university are taught using R!

    • @Kig_Ama
      @Kig_Ama 3 года назад

      @@CodeoftheFuture Yes, that is also my level of knowledge, but since I've been dealing with Python, I've got the feeling that there is a package for Python for every problem, so that you actually don't need an R anymore. Ty.

  • @deepikasinghal3530
    @deepikasinghal3530 4 года назад +1

    somehow I am getting an error "ModuleNotFoundError: No module named 'matplotlib'"

    • @CodeoftheFuture
      @CodeoftheFuture  4 года назад +2

      I think that's because you have to install it! There's a link below that might help! What computer are you using? Windows, mac...? :)
      matplotlib.org/3.3.3/users/installing.html

    • @deepikasinghal3530
      @deepikasinghal3530 4 года назад +1

      @@CodeoftheFuture I am using mac

    • @CodeoftheFuture
      @CodeoftheFuture  4 года назад +2

      ​@@deepikasinghal3530 Okay perfect, you can actually install it for the given project you're working on! Go to where it says Pycharm at the top left of your screen, click preferences, click project, then python interpreter and there should be a little + sign. Click that and search for matplotlib, then you can download it! If you're still stuck, I explain how to download a module in this video (around 3:37):
      ruclips.net/video/JdWeR9bHqTc/видео.html

    • @deepikasinghal3530
      @deepikasinghal3530 4 года назад +1

      @@CodeoftheFuture It worked!!! thank you so much :)

    • @CodeoftheFuture
      @CodeoftheFuture  4 года назад +3

      @@deepikasinghal3530 no problem at all! Happy to help☺️

  • @snehalshilvant7046
    @snehalshilvant7046 3 года назад

    but i am getting error that matplotlib.pyplot has no "plot" attribute why?

    • @CodeoftheFuture
      @CodeoftheFuture  3 года назад

      It might be an error with the installation. Have you installed matplotlib correctly? :)

  • @dawg6408
    @dawg6408 9 месяцев назад

    here is the name of the video that solves your problem guys: FIXED: "ModuleNotFoundError: No module named 'numpy'" | How To Install NumPy In PyCharm

  • @sannansalabat
    @sannansalabat 2 года назад

    This is really cool and informative. Thank you a lot ellie for sharing this with us !