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 (
Array) – samples from the source measuretarget (
Array) – samples from the target measuresamples (
Optional[Array]) – extra samples to transport, eithersource(ifforward) ortarget(if notforward) by default.forward (
bool) – use the forward map from the potentials ifTrue, otherwise use the inverse map.scatter_kwargs (
Optional[Dict[str,Any]]) – additional kwargs passed intoscatter()legend_kwargs (
Optional[Dict[str,Any]]) – additional kwargs passed intolegend()
- Return type:
- Returns:
Figure and axes.