grouped plot-related code to plot code blocks