added toolbutton to select and save a subset of the data in the plot (e.g. a day)