change vertical plot to horizontal plot