When I use the following code ,some problems happened.

I just don't need the straight line in the middle,but I don't kown how to correct it,and the following picture is my code:

And it's my first time to use matplotlibcpp, so I ask some help to handle the problem.