Separate code for all plots