moscot.backends.ott.OTTOutput.plot_costs¶
- OTTOutput.plot_costs(last=None, title=None, return_fig=False, ax=None, figsize=None, dpi=None, save=None, **kwargs)[source]¶
Plot regularized OT costs during the iterations.
- Parameters:
last (
Optional[int]) – How many of the last steps of the algorithm to plot. IfNone, plot the full curve.title (
Optional[str]) – Title of the plot. IfNone, it is determined automatically.return_fig (
bool) – Whether to return the figure.figsize (
Optional[Tuple[float,float]]) – Size of the figure.kwargs (
Any) – Keyword arguments formatplotlib.axes.Axes.plot().
- Return type:
- Returns:
: If
return_fig = True, return the figure.