A bubble plot is drawn using the same plt.scatter() method. It is a manifestation of the scatter plot, where each point on the graph is shown as a bubble. Each of these bubbles can be displayed with a different color, size, and appearance.
Bubble plot
Getting ready
Import the required libraries. We will use pandas to read the Excel file:
import matplotlib.pyplot as plt
import pandas as pd
How to do it...
The following code block plots a bubble plot, for which we have seen a scatter plot earlier:
- Load the Iris dataset:
iris = pd.read_csv('iris_dataset.csv',...