Change index vars to avoid collision, initialize all plot options, and set grid options to make more obvious if uninitialized.