lamberthub.plotting.iterations

Holds plotting utilities related with required number of iterations

Module Contents

Classes

IterationsPlotter

A class for plotting solvers number of iterations as functions of the

class lamberthub.plotting.iterations.IterationsPlotter(ax=None, fig=None)

Bases: lamberthub.plotting._base.TauThetaPlotter

A class for plotting solvers number of iterations as functions of the transfer angle and the non-dimensional time of flight.

_get_iterations(self, solver, theta_span, tau_span)

Returns a meshgrid holding the number of iterations for each one of the different evaluated points.

plot_performance(self, solver, maxiter=10, step=1, cmap=sunshine_9lev)

Returns a graphical representation on the iteration performance for a particular solver.

Parameters
  • solver (function) – The solver who’s performance is to be assessed.

  • maxiter (int) – The maximum number of iterations.

  • step (float) – Step for drawing the colorbar ticks.

  • cmap (matplotlib.colors.Colormap) – The map for colouring the grid.

Notes

The method does not accept neither a transfer angle nor time of flight span vectors. This is to force a common basis when addressing the performance from the number of iterations point of view. Only figure customization options are valid as input parameters.