How to use NUMPY MESHGRID and Contour Plots in Python
HTML-код
- Опубликовано: 22 авг 2024
- 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
ruclips.net/video/_Iub8f-RBJw/видео.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.