From eccb1386eea52b94b82456d126bd20cbe3198e05 Mon Sep 17 00:00:00 2001 From: RĂ©mi Flamary Date: Thu, 21 Apr 2022 16:34:01 +0200 Subject: [MRG] Release 8.2 (#365) * release text and number * add examples in release fil build wheels * switch gallery to release * add much needed contributors file * debug circleci * une line of logos * working logo * back to stable sphinx galery --- examples/others/plot_logo.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'examples') diff --git a/examples/others/plot_logo.py b/examples/others/plot_logo.py index 9414371..bb4f640 100644 --- a/examples/others/plot_logo.py +++ b/examples/others/plot_logo.py @@ -18,7 +18,7 @@ matplotlib and ploting teh solution of the EMD solver from POT. # sphinx_gallery_thumbnail_number = 1 -# %% +# %% Load modules import numpy as np import matplotlib.pyplot as pl import ot @@ -36,21 +36,21 @@ p2 = np.array([[1.5, 6], [2, 4], [2, 5], [1.5, 3], [0.5, 2], [.5, 1], ]) o1 = np.array([[0, 6.], [-1, 5], [-1.5, 4], [-1.5, 3], [-1, 2], [0, 1], ]) o2 = np.array([[1, 6.], [2, 5], [2.5, 4], [2.5, 3], [2, 2], [1, 1], ]) -# scaling and translation for letter O +# Scaling and translation for letter O o1[:, 0] += 6.4 o2[:, 0] += 6.4 o1[:, 0] *= 0.6 o2[:, 0] *= 0.6 -# letter T +# Letter T t1 = np.array([[-1, 6.], [-1, 5], [0, 4], [0, 3], [0, 2], [0, 1], ]) t2 = np.array([[1.5, 6.], [1.5, 5], [0.5, 4], [0.5, 3], [0.5, 2], [0.5, 1], ]) -# translatin the T +# Translating the T t1[:, 0] += 7.1 t2[:, 0] += 7.1 -# Cocatenate all letters +# Concatenate all letters x1 = np.concatenate((p1, o1, t1), axis=0) x2 = np.concatenate((p2, o2, t2), axis=0) -- cgit v1.2.3