summaryrefslogtreecommitdiff
path: root/ot/plot.py
diff options
context:
space:
mode:
authorGard Spreemann <gspr@nonempty.org>2021-12-29 19:26:32 +0100
committerGard Spreemann <gspr@nonempty.org>2021-12-29 19:26:32 +0100
commit367366a649f57a147456f11f7e803de12ced3b8f (patch)
treea900af1302f4a6923323d203ae8cc22550b59e8f /ot/plot.py
parent88d850422a838c29d70ef757d04ab57707d7cd26 (diff)
parentedab1c60630f95b38db430017585d06253c92817 (diff)
Merge branch 'dfsg/latest' into debian/sid
Diffstat (limited to 'ot/plot.py')
-rw-r--r--ot/plot.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/ot/plot.py b/ot/plot.py
index 3e3bed7..2208c90 100644
--- a/ot/plot.py
+++ b/ot/plot.py
@@ -18,7 +18,7 @@ from matplotlib import gridspec
def plot1D_mat(a, b, M, title=''):
- """ Plot matrix :math:`\mathbf{M}` with the source and target 1D distribution
+ r""" Plot matrix :math:`\mathbf{M}` with the source and target 1D distribution
Creates a subplot with the source distribution :math:`\mathbf{a}` on the left and
target distribution :math:`\mathbf{b}` on the top. The matrix :math:`\mathbf{M}` is shown in between.
@@ -61,7 +61,7 @@ def plot1D_mat(a, b, M, title=''):
def plot2D_samples_mat(xs, xt, G, thr=1e-8, **kwargs):
- """ Plot matrix :math:`\mathbf{G}` in 2D with lines using alpha values
+ r""" Plot matrix :math:`\mathbf{G}` in 2D with lines using alpha values
Plot lines between source and target 2D samples with a color
proportional to the value of the matrix :math:`\mathbf{G}` between samples.