Reducing the buttons in tkplotdataset code with a loop