Easily label line(s) using matplotlib. The code is heavily based on http://stackoverflow.com/questions/16992038/inline-labels-in-matplotlib (original code from ...
matplotlib-cpp with 3D scatter plot is a quick hack code to add following two functions to matplotlib-cpp, which is one of the simplest C++ plotting libraries.