import matplotlib.pyplot as plt import numpy as np np.random.seed(0) x = np.random.rand(8) * 100 y = np.random.rand(8) * 100 sizes = np.random.rand(8) * 100 colors = np.random.rand(8) plt.figure(figsize=(6, 6)) plt.scatter(x, y, s=sizes, c=colors, alpha=0.5, cmap='viridis') plt.title('Sample Bubble Chart') plt.xlabel('X-axis') plt.ylabel('Y-axis') plt.colorbar() plt.show()