title: Pandas Matplotlib: How to change shape and size of the legend in scatter plot?
body: <p>I have a scatter plot :</p>
  
  <pre><code>fig,ax = plt.subplots(figsize=(6,5),dpi=200)
  
  ax.scatter(df1['id'],df1['resellers'],c='red',s=df1['ips']/80,label='AS Size = IPs seen in dnsdb')
  ax.set_xticks([1,2,4,6,8,10,12,14,16,18,20])
  ax.set_xlim(-1,22)
  ax.legend(
         scatterpoints=1,
     loc='best',
     ncol=1,
     fontsize=12)
  </code></pre>
  
  <p>I am wondering how can I change the shape and size of the bubble in the legend to rectangular and smaller size. Can anybody help?<img src="https://i.stack.imgur.com/BZXMn.jpg" alt="enter image description here"></p>