I have a number of plots that appear as shaded squares on a grid:

The plots (apart from the rogue squares to the leftmost part of each plot) resemble $a\zeta(bx+c)-dx$, where $a$,$b$,$c$ & $d$ are constants (as shown on the left plot) but not exactly. I am looking for the function that generates each plot. Is there any way I can improve the fitting function, other than by trial & error?
