| ▲ | jstanley 3 hours ago | |
Using operator overloading of "+" to configure the plot is... a choice. | ||
| ▲ | bittumenEntity a few seconds ago | parent | next [-] | |
It is! And that's kinda the point. Like others mention, this is inspired by ggplot2, a Grammar of Graphics library. The whole idea is graphics are composed by adding "layers", not like layers on a canvas, but like pouring paint into a pot, then the library understands the content and paints it to the canvas. Layers might be pure data, geometry to plot, annotations, styles, axis, etc. When you get familiar with it, it's much more natural way of describing plots, better composition and easier exploration | ||
| ▲ | jamessb 3 hours ago | parent | prev [-] | |
Plotnine is heavily inspired by the ggplot2 library, which uses the + operator in the same way: https://ggplot2.tidyverse.org/#usage | ||