Easy way to get 15 free YouTube views, likes and subscribers
Get Free YouTube Subscribers, Views and Likes

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

Follow
Kimberly Fessel

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 3dimensional 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

posted by aznstar15ro