updated script to plot in semilogx scale