added options for log scaling and reference lines to scatter_vars