Improve graphing function
Changing wording to lower/upper case