How to use NUMPY MESHGRID and Contour Plots in Python
Vložit
- čas přidán 26. 10. 2023
- This is for future Rhett (when he forgets how to do this). Here is a super quick tutorial on meshgrids and 3d plotting.
If you need my other python cheat sheet, here it is.
• These are the numpy py...
Thanks, that was helpful !
This was nice and simple, clearly explained the reasoning behind n+1 number of elements, showcased how the meshgrids look like. Could you do a similar idea but with vectorfields? Like electric field around a stationary charge... It is more difficult since each (x,y) coordinate is no longer a number that is part of a scalar field, instead its a vector part of a vector field.
Yes, it's more difficult - here's an older video that might address your issue
czcams.com/video/_Iub8f-RBJw/video.html
I import numpy as plt 🤣
I respect the choice (but it's crazy)
@@DotPhysicsI don’t actually but like you said it’s a funny joke
😂😂
When I write plot.contour(X,Y,f)
It say matplotlib.pyplot has no that attribute why?
Did you import matplotlib.pyplot as plt?
Excellent explanation so plain really!
thanks! Glad you liked it.