From 8ea3504c3bfe9c9440982f8ad0d172a240d54aff Mon Sep 17 00:00:00 2001 From: RĂ©mi Flamary Date: Fri, 1 Sep 2017 17:55:32 +0200 Subject: good notebook format generated by sphinx gallery --- docs/source/auto_examples/plot_otda_color_images.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'docs/source/auto_examples/plot_otda_color_images.py') diff --git a/docs/source/auto_examples/plot_otda_color_images.py b/docs/source/auto_examples/plot_otda_color_images.py index f1df9d9..e77aec0 100644 --- a/docs/source/auto_examples/plot_otda_color_images.py +++ b/docs/source/auto_examples/plot_otda_color_images.py @@ -42,7 +42,7 @@ def minmax(I): ############################################################################## # Generate data -############################################################################## +# ------------- # Loading images I1 = ndimage.imread('../data/ocean_day.jpg').astype(np.float64) / 256 @@ -62,7 +62,7 @@ Xt = X2[idx2, :] ############################################################################## # Plot original image -############################################################################## +# ------------------- pl.figure(1, figsize=(6.4, 3)) @@ -79,7 +79,7 @@ pl.title('Image 2') ############################################################################## # Scatter plot of colors -############################################################################## +# ---------------------- pl.figure(2, figsize=(6.4, 3)) @@ -101,7 +101,7 @@ pl.tight_layout() ############################################################################## # Instantiate the different transport algorithms and fit them -############################################################################## +# ----------------------------------------------------------- # EMDTransport ot_emd = ot.da.EMDTransport() @@ -127,7 +127,7 @@ I2te = minmax(mat2im(transp_Xt_sinkhorn, I2.shape)) ############################################################################## # Plot new images -############################################################################## +# --------------- pl.figure(3, figsize=(8, 4)) -- cgit v1.2.3