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...

Комментарии • 12

  • @TJBEATSAMV
    @TJBEATSAMV 2 месяца назад +1

    Thanks, that was helpful !

  • @purpurwax9303
    @purpurwax9303 3 месяца назад +1

    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.

    • @DotPhysics
      @DotPhysics  3 месяца назад

      Yes, it's more difficult - here's an older video that might address your issue
      ruclips.net/video/_Iub8f-RBJw/видео.html

  • @dwaynep6174
    @dwaynep6174 10 месяцев назад +9

    I import numpy as plt 🤣

    • @DotPhysics
      @DotPhysics  10 месяцев назад +3

      I respect the choice (but it's crazy)

    • @dwaynep6174
      @dwaynep6174 10 месяцев назад

      @@DotPhysicsI don’t actually but like you said it’s a funny joke

    • @arielgohoury2597
      @arielgohoury2597 7 месяцев назад

      😂😂

  • @MudiJr-hd3dq
    @MudiJr-hd3dq Месяц назад

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

    • @DotPhysics
      @DotPhysics  Месяц назад

      Did you import matplotlib.pyplot as plt?

  • @godphysics2473
    @godphysics2473 9 месяцев назад +1

    Excellent explanation so plain really!

    • @DotPhysics
      @DotPhysics  9 месяцев назад +1

      thanks! Glad you liked it.