python bubble plot

Solutions on MaxInterview for python bubble plot by the best coders in the world

showing results for - "python bubble plot"
Shiloh
10 Sep 2018
1import matplotlib.pyplot as plt
2# scatter plot with scatter() function
3# bubble size with "s"
4# df dataframe contain columns X, Y, Z variables values
5plt.scatter('X', 'Y', s='Z', data=df)
6plt.xlabel("X", size=16)
7plt.ylabel("y", size=16)
8plt.title("Bubble Plot", size=18)
9