Modded header file while allows to store plot figure directly to memory buffer such that it can be viewed by OpenCV - Raj-Uddin/matplotlib-cpp-direct-to-buffer ...
Since a python interpreter is opened internally, it is necessary to link against libpython in order to user matplotlib-cpp. Most versions should work, although python likes to randomly break ...