graphing improvements, a couple data functions for transforming arrays (usually before graphing)