moscot.backends.ott.GraphOTTOutput.plot_costs¶
- GraphOTTOutput.plot_costs(last=None, title=None, return_fig=False, ax=None, figsize=None, dpi=None, save=None, **kwargs)¶
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.