📅  最后修改于: 2022-03-11 14:47:08.886000             🧑  作者: Mango
import matplotlib.pyplot as plt
# scatter plot with scatter() function
# bubble size with "s"
# df dataframe contain columns X, Y, Z variables values
plt.scatter('X', 'Y', s='Z', data=df)
plt.xlabel("X", size=16)
plt.ylabel("y", size=16)
plt.title("Bubble Plot", size=18)