added log scale option to main plot