INNER CODE UNIT · Python

base_blog_triangle

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

    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,
    )
    ax.add_patch(diss)
    ax.add_patch(blog)

    for s, y_pos in zip(labels_diss, y_positions):
        ax.annotate(txtwrp.fill(s, 20), (start_x, y_pos + 0.05), ha="center")

    for s, y_pos in zip(labels_blog, y_positions_blog):
        ax.annotate(txtwrp.fill(s, 20), (base_blog_triangle, y_pos + 0.05), ha="center")

    people_x = -3 * start_x

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…