made margin configurable in plot.surf