smart scalebar adjustment