Adjusted HW0 plotting part with python