MATPLOTLIB 3D PLOTS including Scatter 3D and Surface Plots for Matplotlib Python || Matplotlib Tips

Published: 19 April 2021
on channel: Kimberly Fessel
45,982
1k

Learn how to build matplotlib 3D plots in this Matplotlib Tips video including 3D scatter plots, 3D line plots, surface plots, and wireframes. I begin by showing you how to set up your 3D axes using the projection keyword. Then we plot 3D scatter plot data with matplotlib Python's scatter3D command and label the x, y, and z axes. I also show you how to rotate the view angle of the 3D plot in matplotlib using view_init. Next I show you an example of the 3D line plot in matplotlib using plot3D. We then move on to plot surfaces using a function for z and a meshgrid for x and y. And I also demonstrate how to create a 3-dimensional wireframe with matplotlib and how your grid effects your mesh size. Finally, we use the Jupyter magic command "% matplotlib notebook" to make our 3D plots interactive. You can use your mouse to drag the plot around and rotate it to look at different angles.

0:00 Introduction
0:12 3D Scatter Plot
2:42 Rotate Plot Angle
3:58 3D Line Plot
4:58 Surface Plots
8:19 Wireframes
9:35 Interactive 3D Plots
10:58 DANCE PARTY!

GitHub Code:
https://github.com/kimfetti/Videos/bl...

Related Videos:
Change Matplotlib Figure Size:    • How to change the matplotlib figure s...  
Full Matplotlib Tips PLAYLIST:    • Matplotlib Tips  

#matplotlib #dataviz


Watch video MATPLOTLIB 3D PLOTS including Scatter 3D and Surface Plots for Matplotlib Python || Matplotlib Tips online without registration, duration hours minute second in high quality. This video was added by user Kimberly Fessel 19 April 2021, don't forget to share it with your friends and acquaintances, it has been viewed on our site 45,982 once and liked it 1 thousand people.