Plot voltage curve