Skip to content

Commit 88fdd8e

Browse files
authored
Update generate_map.py
1 parent 26a5448 commit 88fdd8e

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/generate_map.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,14 @@ def build_choropleth(percent_by_iso):
102102
color_continuous_scale="Greens",
103103
range_color=(0, max(vals) if vals else 1),
104104
)
105-
fig.update_layout(
106-
coloraxis_colorbar={"title": "% stargazers"},
105+
fig.update_layout(
106+
    coloraxis_colorbar=dict(
107+
        title="% stargazers",
108+
        len=0.5,
109+
        thickness=15,
110+
        x=0.95,
111+
        y=0.5,
112+
    ),
107113
margin=dict(l=0, r=0, t=0, b=0),
108114
)
109115
PNG_PATH.parent.mkdir(parents=True, exist_ok=True)

0 commit comments

Comments
 (0)