This is a small wrapper around the plotnine library for creating ggplots from the command line.
pip3 install .
Save as png:
p9 plot 'ggplot(mtcars, aes("wt", "mpg"))+ geom_point()' > cars.png
Display in terminal (kitty):
p9 plot 'ggplot(mtcars, aes("wt", "mpg"))+ geom_point()' | timg -p kitty -
CSV or JSON data from stdin:
cat data.csv | p9 plot -f - 'ggplot(df, ...)
