From the course: Data Visualizations with Plotly

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

3D plotting with Plotly

3D plotting with Plotly - Plotly Tutorial

From the course: Data Visualizations with Plotly

Start my 1-month free trial

3D plotting with Plotly

- [Instructor] One guaranteed way to wow our users with plotly is to create 3D visuals. That's right. Plotly has the ability to simply and efficiently generate interactive 3D visualizations. Let's see how. After importing plotly express as px, we'll import the entire gapminder dataset. True to form for Plotly Express, creating our 3d visual is as simple as calling px.scatter3d. We'll just look at European countries for now and there are three dimensions our GDP per capita, life expectancy and time. We'll also add country to color. After running we're rewarded with a really exciting visual. Interacting with 3D plots is especially fun, as you can rotate the plot until you reach a perspective that you like. As with 2D scatter plots, all we need to turn this into a 3D bubble chart is including size dimension Here, we'll use population. Very cool. Now, if you'd prefer the visual represented as lines, it's as simple…

Contents