matplotlib graphing two functions