a macro to plot the efficiency graphs