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