INNER CODE UNIT · Python

plot_pyramid

aeturrell/coding-for-economists · craft_diss_pyramid.py:34

def plot_pyramid():
    fig, ax = plt.subplots(figsize=(8, 3), dpi=200)
    # add a Polygon
    diss = mpatches.RegularPolygon(
        xy=[start_x, start_y],
        numVertices=3,
        radius=height,
        alpha=0.4,
        orientation=np.pi,
    )
    base_blog_triangle = 4 * start_x + delta_blog
    blog = mpatches.RegularPolygon(
        xy=[base_blog_triangle, start_y],
        numVertices=3,
        radius=height,
        orientation=np.pi,
        alpha=0.4,
    )

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…