how to properly write subplots