Skip to content

Commit 6e242a3

Browse files
committed
Use bold fonts for labelling bold-colours
These end up quite small in the PDF, and do seem a bit hard to read to me, especially the white ones.
1 parent f5e0210 commit 6e242a3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scripts/colors.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
text_color = "black" if luma[i] > 0.5 else "white"
4747
text = str(colors[i]).replace(' ', '')
4848
ax.text((i+0.5)*dx, (ymin+ymax)/2, text, color=text_color, zorder=10,
49-
family="Source Code Pro", size=9, ha="center", va="center")
49+
family="Source Code Pro", weight="bold", size=9, ha="center", va="center")
5050

5151
fig.savefig(ROOT_DIR / f"figures/colors-{name}.pdf")
5252
ax.clear()

0 commit comments

Comments
 (0)