added plot_datarange feature