(
        self,
        triangle=np.array([[-0.5, 0.0], [+0.5, 0.0], [0, 0.5 * (np.sqrt(3))]]),
        show_axes: bool = False,
    )
Shows the quadrature points on a given triangle. The size of the circles
        around the points coincides with their weights.
Shows the quadrature points on a given triangle. The size of the circles
        around the points coincides with their weights.
Shows the quadrature points on a given triangle . The size of the circles around the points coincides with their weights .
def plot(
        self,
        triangle=np.array([[-0.5, 0.0], [+0.5, 0.0], [0, 0.5 * (np.sqrt(3))]]),
        show_axes: bool = False,
    ):
        """Shows the quadrature points on a given triangle. The size of the circles
        around the points coincides with their weights.
        """
        from matplotlib import pyplot as plt

        plt.plot(triangle[:, 0], triangle[:, 1], "-k")
        plt.plot(
            [triangle[-1, 0], triangle[0, 0]], [triangle[-1, 1], triangle[0, 1]], "-k"
        )

        if not show_axes:
            plt.gca().set_axis_off()

        transformed_pts = transform(self.points, triangle.T).T

        vol = get_vol(triangle)
        plot_disks(plt, transformed_pts, self.weights, vol)

        plt.axis("equal")
def plot ( self , triangle = np . array ( [ [ - 0.5 , 0.0 ] , [ + 0.5 , 0.0 ] , [ 0 , 0.5 * ( np . sqrt ( 3 ) ) ] ] ) , show_axes : bool = False , ) : from matplotlib import pyplot as plt plt . plot ( triangle [ : , 0 ] , triangle [ : , 1 ] , "-k" ) plt . plot ( [ triangle [ - 1 , 0 ] , triangle [ 0 , 0 ] ] , [ triangle [ - 1 , 1 ] , triangle [ 0 , 1 ] ] , "-k" ) if not show_axes : plt . gca ( ) . set_axis_off ( ) transformed_pts = transform ( self . points , triangle . T ) . T vol = get_vol ( triangle ) plot_disks ( plt , transformed_pts , self . weights , vol ) plt . axis ( "equal" )