minor improvements to plot_with_sem