matplotlib scatter dot size code example Example: scatter plot python df.plot('x_axis', 'y_axis', kind='scatter')