pastas.plotting.plots.TrackSolve.initialize_figure#

pastas.plotting.plots.TrackSolve.initialize_figure(figsize: tuple[int] = (10, 8), dpi: int = 100) pastas.typing.Figure#

Initialize figure for plotting optimization progress.

Parameters:
  • figsize (tuple, optional) – figure size, passed to plt.subplots(), by default (10, 8).

  • dpi (int, optional) – dpi of the figure passed to plt.subplots(), by default 100.

Returns:

fig – handle to the figure.

Return type:

matplotlib.pyplot.Figure