INNER CODE UNIT · Python
xy
aeturrell/coding-for-economists · craft_diss_pyramid.py:84
xy=(0.5 * (people_x + start_x), -height),
fontsize=12,
ha="center",
)
ax.annotate(
txtwrp.fill("Typical structure of a blog post", 60),
xy=(base_blog_triangle * 0.5 + detail_x * 0.5, -height),
fontsize=12,
ha="center",
)
lims = (-2, 6)
ax.set_xlim(lims)
y_size = 1.2
ax.set_ylim((-y_size, y_size))
plt.axis("off")
plt.tight_layout()