实现类 importmatplotlib.pyplotaspltimportnumpyasnpclassBubbleChart:def__init__(self,area,bubble_spacing=0):"""Setup for bubble collapse.Parameters---area : array-likeArea of the bubbles.bubble_spacing : float, default: 0Minimal spacing between bubbles after collapsing.Notes---If "area" is sor...