The Python Function You NEED For 2D Data

Поделиться
HTML-код
  • Опубликовано: 5 авг 2024
  • Check out my course on UDEMY: learn the skills you need for coding in STEM:
    www.udemy.com/course/python-s...
    This video covers the numpy.meshgrid function:
    numpy.org/doc/stable/referenc...
    Code:
    github.com/lukepolson/youtube...
    Discord:
    / discord
  • НаукаНаука

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

  • @MrPinknumber
    @MrPinknumber 2 года назад +25

    Really love these tutorials you do about scientific programming. Thank you :)

  • @sagsolyukariasagi
    @sagsolyukariasagi 2 года назад +6

    Great! I was just trying to making sense of np.meshgrid, for a project. Thank you for the best explanation!

  • @tommychong4prez
    @tommychong4prez 11 месяцев назад

    Thank you for the tutorial! I needed to get my head around meshgrid for my machine learning course and this helped quite a lot.

  • @EarlWallaceNYC
    @EarlWallaceNYC Год назад +2

    I have used this function many times, but never really understood it. Thanks for a very helpful video.

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

    Love Your Videos. You have no idea how much you have helped me during my exam days.

  • @dan_pal
    @dan_pal 6 месяцев назад +1

    Best explanation in the whole site. Thank you so much!

  • @prietjepruck
    @prietjepruck Год назад +1

    Yet another great tutorial. These tutorials help me a lot conquering python.

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

    Simply awesome...More on p.functions please...Really essential.

  • @okiesumos
    @okiesumos 5 месяцев назад +1

    Best meshgrid explanation!

  • @sehbanomer8151
    @sehbanomer8151 2 года назад +5

    Great tutorial!
    alternatively, you can take advantage of numpy broadcasting semantics
    x = np.linspace(-5, 5, 500)
    f = (x[:, None] ** 2 + x[None, :] ** 2 < 1).astype(float)

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

      You might also find that .astype(float) may be omitted in the instruction and a slightly crisper-looking yellow circle thus be obtained.
      Which left one with the conclusion that plt.pcolormer(xv, yv, f) is quite happy processing expressions intrinsically boolean without requiring any floating-point analog.

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

    Deeply love this series. Thank you so much! Keep going.

  • @Louis-ml1zr
    @Louis-ml1zr 2 года назад

    A série on python functions Amazing idea !

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

    Thankyou so much, you're a life saver!!

  • @ahrampark5150
    @ahrampark5150 6 месяцев назад

    Fabulous. Thanks!

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

    Could this be used for calculating numerical solutions of, e.g. solutions of Poisson/Laplace equation with masked boundary conditions? That would make an awesome video!

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

    I want to get the value of f when i put mouse on the graph, is there any function for doing that?

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

    you talk with your hands like a physicst (not like italians!) I love that, thx for the contents!

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

    Really a good video. 👍

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

    How are you expanding & collapsing the code cells? Or is this just vid editing?

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

    Try omitting .astype(float)
    and be as surprised as this one was,
    that passing a boolean array `f` as argument to plt.pcolormesh(xv, yv, f)
    is not only perfectly legal but also affords us a sharper outline of the yellow circle.

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

    It was mind-blowing...

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

    Very explanation!

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

    Thank You! Finally I got it!

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

    I didn't know about pcolormesh... will try this out

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

    What theme is that used in the notebook?

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

    Could you show how to plot 3D graphs ? And thanks for your content, it help me a lot!

  • @tilkesh
    @tilkesh 10 месяцев назад

    Thanks

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

    does anyone know how to plot using data file?

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

    helpful 👍

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

    how to plot from data file

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

    thanks

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

    np.arange(10) does the same thing as np.arange(0,10,1)

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

    👏👏💪

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

    you get what you f*cking deserve, a sub :)

  • @harp-692
    @harp-692 2 года назад

    can you solve my P?