Skip to content

Commit 4709849

Browse files
Kilian FatrasKilian Fatras
authored andcommitted
corrected typos in barycenter examples
1 parent 5a6b226 commit 4709849

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

examples/plot_barycenter_lp_vs_entropic.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@
102102
problems.append([A, [bary_l2, bary_wass, bary_wass2]])
103103

104104
##############################################################################
105-
# Dirac Data
105+
# Stair Data
106106
# ----------
107107

108108
#%% parameters
@@ -168,6 +168,11 @@
168168
pl.title('Barycenters')
169169
pl.tight_layout()
170170

171+
172+
##############################################################################
173+
# Dirac Data
174+
# ----------
175+
171176
#%% parameters
172177

173178
a1 = np.zeros(n)

examples/plot_free_support_barycenter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
pl.figure(1)
6363
for (x_i, b_i) in zip(measures_locations, measures_weights):
6464
color = np.random.randint(low=1, high=10 * N)
65-
pl.scatter(x_i[:, 0], x_i[:, 1], s=b * 1000, label='input measure')
65+
pl.scatter(x_i[:, 0], x_i[:, 1], s=b_i * 1000, label='input measure')
6666
pl.scatter(X[:, 0], X[:, 1], s=b * 1000, c='black', marker='^', label='2-Wasserstein barycenter')
6767
pl.title('Data measures and their barycenter')
6868
pl.legend(loc=0)

0 commit comments

Comments
 (0)