numeraire_graphics.plot_frontier#

numeraire_graphics.plot_frontier(frontier: DataFrame, *, points: DataFrame | None = None) plotnine.ggplot[source]#

A mean-variance efficient frontier, optionally overlaid with named portfolios.

Consumes a caller-supplied risk-return frame with columns risk and return (a frontier trace — from an optimizer, or from mean_variance_frontier()), drawn as the frontier curve (geom_line + geom_point). The frontier is not a framework result object, so this is a family-B plotter. points optionally overlays individual portfolios (1/N, GMV, tangency) as labelled markers: a frame with risk, return and — for the labels — an optional label column. Both frames raise if they lack risk/return.