autolayout function

Automatic layout for several plots in one figure