Check range in setup_plot