Professional 3D Plotting in Matplotlib

Sdílet
Vložit
  • čas přidán 22. 07. 2024
  • In this video we learn how to visualize 3D plots in Matplotlib.
    ◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾
    📚 Programming Books & Merch 📚
    🐍 The Python Bible Book: www.neuralnine.com/books/
    💻 The Algorithm Bible Book: www.neuralnine.com/books/
    👕 Programming Merch: www.neuralnine.com/shop
    🌐 Social Media & Contact 🌐
    📱 Website: www.neuralnine.com/
    📷 Instagram: / neuralnine
    🐦 Twitter: / neuralnine
    🤵 LinkedIn: / neuralnine
    📁 GitHub: github.com/NeuralNine
    🎙 Discord: / discord
    🎵 Outro Music From: www.bensound.com/
    Timestamps:
    (0:00) Intro
    (1:40) Scatter Plots 3D
    (6:03) Line Charts 3D
    (9:30) Surface Plots 3D
    (15:16) Azimuth & Elevation
    (16:50) Outro
  • Věda a technologie

Komentáře • 75

  • @antikoerper256
    @antikoerper256 Před 5 měsíci +8

    I just got into programming, I wanted to do a basic project with some graphics, even tried it on turtle not knowing it wont be interactive. This is golden, really shows how much fo a difference matplotlib does.

  • @SumandeepSinghRanamem
    @SumandeepSinghRanamem Před rokem +1

    Thank you a lot. I was struggling with this for many days. finally i was able to plot 3d surface with simple 3-4 lines of code.

  • @hackingchampion
    @hackingchampion Před 2 lety +4

    You deserve much more likes and views! Basically teaching some python aspects in like 20 minutes.

  • @abins641
    @abins641 Před 2 lety +9

    Before watching the video I'm very confused about doing 3d plots in python, after watching I got a very good idea . Thank you very much.

  • @antonknoner7924
    @antonknoner7924 Před 8 měsíci +1

    Holy moly. Fantastic video!! It helped me a lot, gaining an overview of the basic plot funktions. Thx

  • @AsBi1
    @AsBi1 Před 15 dny

    very helpful.. now i know why i couldn't plot 3d the way i wanted "similar to my calculator" so here i need to make a grid for that.

  • @jhogs
    @jhogs Před 2 lety +2

    This is a great video! Building up feature by feature is a great way to introduce new visualization tools.

  • @gopalrathi901
    @gopalrathi901 Před 2 lety +1

    Wanted this video Thank you. Btw Congraturations for 103k

  • @ecemgungor6208
    @ecemgungor6208 Před rokem +1

    Thanks for the videos. I have a question about multivariate data. I have three independent variables and would like to see their occurrences by coloring the data based on their probability densities (plot type can be contour, surf etc.) Which function should I use? Could you please help me with this?

  • @TheSpedfire
    @TheSpedfire Před rokem

    That was super useful, thank you! I have a quick question though, is there a way that the program calculates de azimuth and elevation required to set the view perpendicular to a certain plotted plane?

  • @mikemurphy1896
    @mikemurphy1896 Před 2 lety +1

    Absolutely great ! Thanks. Really fun.

  • @user-vi9dz4ix8v
    @user-vi9dz4ix8v Před 11 měsíci

    Thank you so so much for such a great explanation and coverage of topics.

  • @taylormayhew369
    @taylormayhew369 Před 2 měsíci

    How do I take that chart and have the values of a magnetic field show the shape of a metal object as a surface?

  • @code2compass
    @code2compass Před 9 měsíci

    Is there anyway to setup vscode to open multiple figure windows at the same time?

  • @SIRENSCINEMATIC-SCOTLAND

    Really loved this helped me so much on my current project, what you advise if I wanted to run live lidar data in similar way? Thanks

  • @Olaf2745
    @Olaf2745 Před rokem

    Hey, thank you for that video.
    Is it possible to make a 3D plot like your scatter plot example but have a colorbar for the plot and each dot has a value that will be displayed with a related Color. Basically like a 3D imshow?
    Cheers

  • @AndreaManna85
    @AndreaManna85 Před 2 lety

    Like usual, the best! 💪

  • @najninmansuri9346
    @najninmansuri9346 Před 2 lety

    If I have any data which is in the format of 3D image like say any XRD image than how we can plot that image

  • @markkennedy9767
    @markkennedy9767 Před 8 měsíci

    Could you comment on how multiplying the array X by the array Y gives the value Z that we are looking for on the surface. I can't see how multiplying a 499 by 499 grid of values by another 499 by 499 grid of values gives the values we need for Z. How is the computer processing these arrays.
    Edit: OK so you're combining the respective entries only of the two arrays X and Y which gives tuples for all possible x and y values in the original x_data and y_data arrays. I suppose the Z is then given when the function acts on all these possible tuples (X,Y).

  • @ladanavelayati2621
    @ladanavelayati2621 Před 2 lety +1

    Very well explained!

  • @markkennedy9767
    @markkennedy9767 Před 8 měsíci

    Thanks for this.
    At 4:45, can you explain why you inputted a tuple as the third argument for np.random.randint() if the array is going to be 1D. I put an integer (scalar) in as the third argument and it works fine. The type of x_data is still a numpy.ndarray if you use a scalar.
    Does this make any material difference with 1D numpy arrays.
    Also, I understand that arguments are sometimes entered as keyword arguments when using np.random.randint(). What are the differences between using positional arguments as you have here and using keyword arguments e.g. low =, high =, size = with np.random.randint()

  • @vinitagarwal9631
    @vinitagarwal9631 Před 3 měsíci

    I have arrays where shape of x is (0,13), shape of y is (27,0), and shape of z is (13,27) how do I make a surface plot of it

  • @reubenthomas1033
    @reubenthomas1033 Před 2 lety +2

    Hey Neural! Could you make a video on exactly how we can set up Pycharm the way you have in this video? With Tabnine and Vim...
    Also showing us how we can make us of having vim bound to Pycharm would be sweet. Thanks!

  • @ProfBeckmann
    @ProfBeckmann Před 2 lety

    thanks bro, you da man, keep it up. I liked, subscribed and commented!

  • @shelememosisa585
    @shelememosisa585 Před rokem

    Great could you help me for deveop tools that medel anasimulate Dynamic system?

  • @bennyheikki
    @bennyheikki Před 2 lety

    Brilliant video, thank you.

  • @cawkcheck
    @cawkcheck Před 2 lety +1

    congrats for 100k!

  • @alpcetinkaya3656
    @alpcetinkaya3656 Před 2 lety +1

    Your contents are great. Thank you.

  • @dikshasharma.437
    @dikshasharma.437 Před rokem

    Can you tell me which app i download to conduct these queries..

  • @drewfrench8784
    @drewfrench8784 Před rokem

    great, simple explanation

  • @HolyPiyush
    @HolyPiyush Před 8 měsíci

    Nice tutorial Sir....
    Can you tell that if we can use the same when making a GUI using Tkinter?
    Thank you

  • @samarthsoni4267
    @samarthsoni4267 Před 2 lety

    Great video!
    I would really really love to see you using Deep Reinforcement Learning in Stock Market Prediction...
    And even other RL Applications for that matter!

  • @smivl7694
    @smivl7694 Před 2 lety +17

    Great video! Could you possibly do a video where you show how to open/view 3d models using python and look around on the model, kinda like the 3d Viewer app?

  • @MajewskiMarcin
    @MajewskiMarcin Před 8 měsíci

    Great video. It is very helpfull. I am very glad that I discovered your channel.

  • @gedtoon6451
    @gedtoon6451 Před 2 lety

    What does the artist say at the start of your video intro?

  • @user-sf1zf7yt4q
    @user-sf1zf7yt4q Před rokem

    Can you tell me function for 3D Pie Chart

  • @catschad
    @catschad Před měsícem

    amazing man

  • @harshplayz31882
    @harshplayz31882 Před rokem +1

    it was interesting, nice video🙂

  • @yyxx9309
    @yyxx9309 Před 2 lety

    Man this is sooooo damn cool thank you so much!!!

  • @jansagichnicht3500
    @jansagichnicht3500 Před 8 měsíci

    Thats what the world needs thx

  • @hadjelandaloussi2445
    @hadjelandaloussi2445 Před 6 měsíci

    Nice job, thanks a lot !!!

  • @shravaninagraj6805
    @shravaninagraj6805 Před 4 měsíci

    why it is not working in jupyter notebook

  • @joswadsouza8362
    @joswadsouza8362 Před 2 lety

    Cool concept loved it 🔥

  • @PeterParker-pr9en
    @PeterParker-pr9en Před 11 měsíci

    Thanks Brother for this Knowledge..........................

  • @rayanebradjou4396
    @rayanebradjou4396 Před rokem +1

    Before watching the video I think that making 3D plots is impossible, but thanks❤👍

  • @collinsakasiugwu3162
    @collinsakasiugwu3162 Před 10 měsíci

    Awesome

  • @devinfreedom2005
    @devinfreedom2005 Před 10 měsíci

    Thank you very much!

  • @asaanmath1006
    @asaanmath1006 Před rokem

    Thank you sir learned alott today

  • @yavarjn2055
    @yavarjn2055 Před rokem

    How can you project, for example a circle constraint, on the surface in case of solving constraint optimization?

    • @Ruthless_entertainment
      @Ruthless_entertainment Před rokem

      you can give values to x and then indicate y=sqrt(R**2-x**2); this will work for a circle

  • @Francesco_Luligo
    @Francesco_Luligo Před rokem

    Now how to animate this?

  • @danielwalker5682
    @danielwalker5682 Před rokem

    Excellent.

  • @munteanionut3993
    @munteanionut3993 Před 2 lety

    how come you don't use jupyter / jupyter_lab? Also, thanks very much for the video! :D

  • @khanalimphdpe172
    @khanalimphdpe172 Před rokem

    Great video. If you have any video that shows how to read data from csv file and plot, let me know.

  • @svoper3338
    @svoper3338 Před 2 lety +1

    nice tutorial

  • @samratsudeepchoudhary256
    @samratsudeepchoudhary256 Před 2 lety +2

    Please continue the Finance playlist!
    Really appreciate your work!

    • @NeuralNine
      @NeuralNine  Před 2 lety

      Is there any specific topic you want to see?

    • @GasimovTV
      @GasimovTV Před 2 lety

      @@NeuralNine Can you make A.I. snake game?

    • @samarthsoni4267
      @samarthsoni4267 Před 2 lety

      @@NeuralNine I would really really love to see you using Deep Reinforcement Learning in Stock Market Prediction...

  • @kristanbottjer8001
    @kristanbottjer8001 Před 2 lety +1

    can you make a 3d Plot where x and y have a diffrent length? And another Question I have is if you can change the axis eg. use x a y axis (just visualy)?

    • @Ruthless_entertainment
      @Ruthless_entertainment Před rokem

      to your first question, I am not sure but I know matplotlib gives an error "value error: x and y must be the same size"; if sizes of dimensions differ, you may get an error to get round the error, just make them equal. to your second question, oh yeah. you can put any name you like

  • @tedsheridan8725
    @tedsheridan8725 Před rokem

    Great video. Is there a way to change the plot dynamically while viewing it? The way you might in Geogebra where you can change a parameter with a slider and watch the plot change in real time? Thanks :)

    • @abcxyz5806
      @abcxyz5806 Před rokem +1

      I am currently exploring plotly with dash for this purpose. Looks like a good solution. It spawns a small web server which reloads automatically when you save your source file. There are also value sliders you can use. I was also searching for a geogebra 3d replacement 😀

  • @mhsohan2769
    @mhsohan2769 Před 2 lety

    Can you please provide me the code?

  • @vanessaarangomarin5536

    Great video, could you please make one video about ternary diagrams plotted with python? best, Vane

  • @dard09
    @dard09 Před 4 dny

    thanks vaas from farcry 3

  • @amandeepsaha
    @amandeepsaha Před rokem

    Thankyou sir

  • @holthuizenoemoet591
    @holthuizenoemoet591 Před rokem

    anyone tried this for GIS data?

  • @Borolad116
    @Borolad116 Před rokem

    This is all great but how can these charts actually be used with real data? Random numbers are pretty useless if you are trying to build one of these graphs that is actually usable.