minor bug correction in param setting
new function plotyy for time series