ott.problems.linear.potentials.DualPotentials.plot_ot_map

ott.problems.linear.potentials.DualPotentials.plot_ot_map#

DualPotentials.plot_ot_map(source, target, samples=None, forward=True, ax=None, scatter_kwargs=None, legend_kwargs=None)[source]#

Plot data and learned optimal transport map.

Parameters:
  • source – samples from the source measure

  • target – samples from the target measure

  • samples – extra samples to transport, either source (if forward) or target (if not forward) by default.

  • forward – use the forward map from the potentials if True, otherwise use the inverse map.

  • ax – axis to add the plot to

  • scatter_kwargs – additional kwargs passed into scatter()

  • legend_kwargs – additional kwargs passed into legend()

Returns:

Figure and axes.