Does OpenCV provide a function on how to draw and plot a graph?
I found this link by Shervin Emami http://www.shervinemami.info/graphs.html which was created by him
you can try this: https://code.google.com/p/cvplot/
Matlab style plot functions for OpenCV, based on highgui. By the way, it's for C++ only.
It's open source.