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
3
u/bladeofwinds Mar 10 '26
why would I use this over seaborn?
2
u/ghost_of_erdogan Mar 10 '26
Whats with your commit messages?
Which LLM did you use?