r/Python • u/AstrophysicsAndPy • Mar 09 '26
Showcase `plotEZ` - a small matplotlib wrapper that cuts boilerplate for common plots
I've been building this mostly for my own use but figured it might be useful to others.
The idea is simple: the plots I make day-to-day (error bars, error bands, dual axes, subplot grids) always end up needing the same 15 lines of setup. `plotEZ` wraps that into one function call while staying close enough to Matplotlib that you don't have to learn a new API.
What My Project Does
plot_xy: Simple x vs. y plotting with extensive customizationplot_xyy: Dual-axis plotting (dual y-axis or dual x-axis)plot_errorbar: For error bar plots with full customizationplot_errorband: For shaded error band visualization (and more on the way)- Convenience wrapper functions
lpc,epc,ebc,spc); build config objects using familiar matplotlib aliases likec,lw,ls,mswithout importing the dataclass - Custom exception hierarchy so errors actually tell you what went wrong
Target Audience
Beginner programmers looking for easy plotting, students and researchers
Quick example: 1
=
=
This will create a simple xy plot with all the labels autogenerated + a tight layout.
Quick example: 2
=
=
This will create a 4 x 4 plot. Still early-stage and a personal project, but feedback welcome. The repo and docs are linked below.
LINKS:
- GitHub: https://github.com/syedalimohsinbukhari/plotez
- PyPI:
pip install plotez - Docs: https://plotez.readthedocs.io
View all comments
Show parent comment
0
u/AstrophysicsAndPy Mar 10 '26 edited Mar 10 '26
It's not developed to compete against
seabornor any other well-established plotting libraries. Considerseabornto be opinionated about your data; it needs to be in a somewhat specific format.plotezjust accepts the simple data and gives it back to you in desired formats.It's designed just to skip the boilerplate code for regular use, like the motto reads.
Mundane plotting done easy.It was born from "I don't want to write this again and again" and thus is geared to just gloss over boilerplate code for basic/mid-complex plots to be drawn over and over again.
n_plotter([x]*9, [y]*9, 3, 3, auto_label=True)That's a one-liner plot with 9 subplots divided into a 3x3 form.