This is a small collection of functions to make better looking matplotlib plots.
The package has minimal dependencies and fully compatible with standard matplotlib library.
Install the package via pip
pip instsall pimpmyplot
Use the package simply calling its functions after you created a matplotlib plot
import pimpmyplot as pmp
import matplotlib.pyplot as plt
import numpy as np
x = np.linspace(0, 10, 100)
plt.figure(figsize=(8, 3))
plt.plot(x, np.sin(x), label='sin(x)')
plt.plot(x, np.sin(2*x), label='sin(2x)')
plt.plot(x, np.sin(3*x), label='sin(3x)')
# ---------------- Make pimp happen ---------------
pmp.bullet_grid(stepinch=.3) # dotted grid similar to a bullet journal
pmp.remove_axis('top', 'right') # remove axis in a simpler way
pmp.remove_ticks() # remove ticks in a simpler way
pmp.legend(loc='ext lower center', title='Legend title') # same as plt legend but better looking \
and horizontal labels as default
plt.title('Plot title')
For a small interactive demo visit this marimo notebook on molab.

