Scripts : Fix bug in scaling of terrain offset state plot