Plot.toFigure

Convenience method that instantiates a Figure object with this plot. Useful for creating single-plot figures w/o a lot of boilerplate.

class Plot
toFigure
(
)

Examples

auto hist = Histogram([1,2,3,4,5], 3).toFigure;
hist.showAsMain();

Meta