grplotยถ

Publication-ready statistical plots: one function, zero boilerplate.

PyPI Version License Anaconda-Server Badge PyPI Downloads Coverage Badge

from grplot import plot2d
import grplot_seaborn as gs

gs.set_theme(context='notebook', style='darkgrid', palette='deep')

tips = gs.load_dataset('tips')
ax = plot2d(plot={'[1,1]': 'histplot', '[1,2]': 'ecdfplot',
                  '[2,1]': 'treemapsplot', '[2,2]': 'pieplot',
                  '[3,1]': 'paretoplot', '[3,2]': 'boxplot+stripplot'},
            Nx=2, Ny=3, df=tips, filter=(tips['total_bill'] > 10),
            kde=True)  # see Dashboard-Like for the full, annotated call
Six-panel statistical dashboard generated by a single plot2d call

A histogram with KDE and summary statistics, an ECDF, a treemap, a pie chart, a Pareto chart, and an annotated box + strip plot: six different chart families, fully annotated, produced by one plot2d call. See grplot vs. Matplotlib/Seaborn for the equivalent Matplotlib/Seaborn code side by side, Dashboard-Like for this exampleโ€™s full write-up, and Plot Types for a worked example of every individual chart type.

  • ๐Ÿ“ Smart figure sizing & multi-panel layout

  • ๐Ÿ’ฑ Thousand separators & currency symbols

  • ๐Ÿ“Š 20+ plot types: scatter, box, violin & more

  • ๐Ÿท๏ธ Automatic bar labels & point annotations

  • ๐Ÿ“ˆ On-plot statistical summaries

  • ๐Ÿ”„ Tick rotation & unit labels

  • ๐Ÿ–ผ๏ธ Dashboard-style multi-subplot figures

  • ๐Ÿ’พ Export PNG / PDF / SVG / EPS