How to use NUMPY MESHGRID and Contour Plots in Python

preview_player
Показать описание
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.
Рекомендации по теме
Комментарии
Автор

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.

purpurwax
Автор

When I write plot.contour(X, Y, f)
It say matplotlib.pyplot has no that attribute why?

MudiJr-hddq
Автор

Excellent explanation so plain really!

godphysics
welcome to shbcf.ru