Corrected loop order.

I switched m and n at the for loops that create the pseudo 3d function.
Reset ranges to automatic mode:

The scripts sets the ranges from 0 to 4096. Resetting this values will
avoid confusion at subsequent plotting.