PS. It took someone in the comments writing "import plotnine as p9" for me to understand it isn't plotLine.
When a mathematical formalism exists, just use that. Other approaches just reinvent the wheel on an ad-hoc/piecemeal basis and end up making all sorts of unnecessary compromises.