import matplotlib.pyplot as plt
from sklearn.datasets import make_blobs
# Generate a random dataset
X, y = make_blobs(n_samples=100, centers=4, n_features=2, random_state=42)
# Create a bubble plot with a bubble size based on a third variable
plt.scatter(X[:, 0], X[:, 1], s=y*20)
# Set the title and axis labels
plt.title('Bubble Chart')
plt.xlabel('X Axis')
plt.ylabel('Y Axis')
# Show the plot
plt.show()