script compelte for plots