SubplotBase.addFigure

Add a figure to the subplot using the default layout, which is as follows:

1. Slots will be searched left-to-right, top-to-bottom, rows first. If an empty one is found, the figure will be added there.

2. If no empty slots are found and nColumns <= nRows, then another column will be added. The N existing figures will be moved such that they are the first N figures in left-to-right, top-to-bottom, rows first order and their ordering according to this predicate does not change. The figure to be added will be the last figure according to this predicate.

3. If no empty slots are found and nColumns > nRows, a new row will be created and the figure will be stored as the first element in that row.

Notes: If you add figures with the overload that allows explicit row and column specification, and then call this overload, the coordinates of previously added figures may be changed.

If you pass multiple figures, they are simply added iteratively according to these rules.

  1. This addFigure(FigureBase fig, uint row, uint col)
  2. This addFigure(FigureBase[] toAdd...)
  3. This addFigure(F[] toAdd)
    class SubplotBase
    This
    addFigure
    (
    this This
    F
    )
    (
    F[] toAdd
    )
    if (
    is(F : FigureBase) &&
    !is(F == FigureBase)
    )

Meta