fig = plt.figure(figsize = (9, 9))
ax = fig.add_subplot(111, xlim = (0, 1), ylim = (0, 1))
#Remove axes and ticks.
for side in ['top', 'right']:
ax.spines[side].set_visible(False)
ax.set_xticks([])
ax.set_yticks([])
for i in range(100):
plt.plot([0, i/100],
[1-i/100, 0],
c = "#55555544")
plt.plot([0, 0.35],
[0.65, 0],
c = "#2A788EFF",
lw = 4)
plt.plot([0, 0.3],
[0.70, 0],
c = "#440154FF",
lw = 4)
plt.scatter([0, 0.35],
[0.65, 0],
c = "#2A788EFF",
lw = 10)
plt.scatter([0, 0.3],
[0.70, 0],
c = "#440154FF",
lw = 10)
plt.scatter([0.105],
[0.455],
c = "#414487FF",
lw = 10)
variables = [("(0, 1-a)", (0.03, 0.65), "#2A788EFF", 'left', 'center'),
("(0, 1-b)", (0.03, 0.7), "#440154FF", 'left', 'center'),
("(a, 0)", (0.36, 0), "#2A788EFF", 'left', 'bottom'),
("(b, 0)", (0.29, 0), "#440154FF", 'right', 'bottom'),
("≈(a², (1-a)²)", (0.12, 0.455), "#414487FF", 'left', 'center')]
for v in variables:
plt.annotate(v[0], v[1], c = v[2],
fontsize = 20,
fontweight = "bold",
ha = v[3],
va = v[4])
fig.savefig("2023.09.08 Fiddler.png")