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 Наука
Really love these tutorials you do about scientific programming. Thank you :)
Same 🤙
Great! I was just trying to making sense of np.meshgrid, for a project. Thank you for the best explanation!
Thank you for the tutorial! I needed to get my head around meshgrid for my machine learning course and this helped quite a lot.
I have used this function many times, but never really understood it. Thanks for a very helpful video.
Love Your Videos. You have no idea how much you have helped me during my exam days.
Best explanation in the whole site. Thank you so much!
Yet another great tutorial. These tutorials help me a lot conquering python.
Simply awesome...More on p.functions please...Really essential.
Best meshgrid explanation!
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)
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.
Deeply love this series. Thank you so much! Keep going.
A série on python functions Amazing idea !
Thankyou so much, you're a life saver!!
Fabulous. Thanks!
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!
I want to get the value of f when i put mouse on the graph, is there any function for doing that?
you talk with your hands like a physicst (not like italians!) I love that, thx for the contents!
Really a good video. 👍
How are you expanding & collapsing the code cells? Or is this just vid editing?
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.
It was mind-blowing...
Very explanation!
Thank You! Finally I got it!
I didn't know about pcolormesh... will try this out
What theme is that used in the notebook?
Could you show how to plot 3D graphs ? And thanks for your content, it help me a lot!
Thanks
does anyone know how to plot using data file?
helpful 👍
how to plot from data file
thanks
np.arange(10) does the same thing as np.arange(0,10,1)
👏👏💪
you get what you f*cking deserve, a sub :)
can you solve my P?
Too small to slove Leorio
@@justarandomcatwithmoustache let mr.P check first ;)