Max number of buttons, button bounds, draw graph when 0 values (clear plot)