INNER CODE UNIT · Python
top_y_value
aeturrell/coding-for-economists · craft_diss_pyramid.py:24
top_y_value = height + start_y
y_positions = np.linspace(
start_y - height, top_y_value - height + start_y, len(labels_diss)
)
y_positions_blog = np.linspace(
start_y - height, top_y_value - height + start_y, len(labels_blog)
)
delta_blog = 1.2
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,