(plt, pts, weights, total_area)
Plot a circles at quadrature points according to weights.
Plot a circles at quadrature points according to weights.
Plot a circles at quadrature points according to weights .
def plot_disks(plt, pts, weights, total_area):
    """Plot a circles at quadrature points according to weights."""
    flt = np.vectorize(float)
    pts = flt(pts)
    weights = flt(weights)
    radii = np.sqrt(abs(weights) / math.fsum(weights) * total_area / math.pi)
    colors = [
        # use matplotlib 2.0's color scheme
        "tab:blue" if weight >= 0 else "tab:red"
        for weight in weights
    ]
    _plot_disks_helpers(plt, pts, radii, colors)
def plot_disks ( plt , pts , weights , total_area ) : flt = np . vectorize ( float ) pts = flt ( pts ) weights = flt ( weights ) radii = np . sqrt ( abs ( weights ) / math . fsum ( weights ) * total_area / math . pi ) colors = [ # use matplotlib 2.0's color scheme "tab:blue" if weight >= 0 else "tab:red" for weight in weights ] _plot_disks_helpers ( plt , pts , radii , colors )