CallbackShowConvergence

class odl.solvers.util.callback.CallbackShowConvergence(functional, title='convergence', logx=False, logy=False, **kwargs)[source]

Bases: Callback

Displays a convergence plot.

__init__(functional, title='convergence', logx=False, logy=False, **kwargs)[source]

Initialize a new instance.

Parameters

functionalcallable

Function that is called with the current iterate and returns the function value.

titlestr, optional

Title of the plot.

logxbool, optional

If true, the x axis is logarithmic.

logxbool, optional

If true, the y axis is logarithmic.

Other Parameters

kwargs :

Additional parameters passed to the scatter-plotting function.