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

Plot data and learned optimal transport map.

  • 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()


Figure and axes.