integrating scale bar and tk in the same window as plots