Principles of Plotly
Understand the basics of Plotly and visualize your data with interactive plots
Plotly is one of the leading data visualization libraries for Python. It consists of unique functionalities and ships with over 30 chart types including scientific charts, 3D charts, statistical charts, and more. It contains a great API including one for Python. It also has contour plots, which is not very common in other libraries.
We shall learn how to create a few different interactive plots using Plotly over the course of this article.
Make sure you’ve the following libraries installed in your system.
Using conda:
conda install plotly
conda install pandas
conda install numpy
Using pip:
pip install plotly
pip install pandas
pip install numpy
The dataset that we will be using can be found here.
The same dataset was used in the previous visualizations article, Plotting charts with Seaborn. We will be creating similar plots in this article as well. The difference is that these plots will be interactive because of the Plotly library and it’s functionalities.
import plotly.express as px
import pandas as pd
import numpy as np