This is a code to show how quicksort works on n(log(n)) for these is that required to graph the code using matplotlibcpp and is running on visual studio code for using requried the .h file on the same folder as is show and on the task.json create required on the args site next steps:
"-I",
"<path to your include of python version example: python<n>/include>",
"-I",
"<path to your include of numpy _core version example: python<n>/site_packages/numpy/_core/include>",
"-I",
"<the folder where is the matplotlibcpp.h file>",
"-L",
"<path to your python libs example: python<n>/libs>",
"-lPython<n>"
Been n the number is on your folder of python installation.