Skip to content

Commit 9a344e1

Browse files
committed
updated gmm bar colours
1 parent 6f47b29 commit 9a344e1

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

examples/barycenters/plot_gmm_barycenter.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,12 +132,14 @@ def draw_gmm(ms, Cs, ws, color=None, nstd=0.5, alpha=1, label=None, ax=None):
132132

133133
# %%
134134
# Plot the results
135+
c_list = ["#7ED321", "#4A90E2", "#9013FE", "#F5A623"]
136+
c_bar = "#D0021B"
135137
fig, ax = plt.subplots(figsize=(6, 6))
136138
axis = [-4, 4, -2, 6]
137139
ax.set_title("Fixed Point Barycenter (3 Iterations)", fontsize=16)
138140
for k in range(K):
139-
draw_gmm(means_list[k], covs_list[k], w_list[k], color="C0", ax=ax)
140-
draw_gmm(means_bar, covs_bar, ot.unif(n), color="C1", ax=ax)
141+
draw_gmm(means_list[k], covs_list[k], w_list[k], color=c_list[k], ax=ax)
142+
draw_gmm(means_bar, covs_bar, ot.unif(n), color=c_bar, ax=ax)
141143
ax.axis(axis)
142144
ax.axis("off")
143145

0 commit comments

Comments
 (0)