improved zooming algorithm
improved zooming algorithm and var setting for EnvPlotData