Skip to content

nitingit7/Matplotlibcpp.h

Repository files navigation

Matplotlibcpp.h

Plotting graphs using matplotlib in c++ in windows machine.

First install latest version of python.

Install numpy and matplotlib using command prompt.

Install minGW G++ for compiling c++ programs (https://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win64/Personal%20Builds/mingw-builds/).

Set virtual environment of mingw\bin in both system and variable path.

Dowload the main.cpp (cpp file name) and matplotlibcpp.h (header file name) from Download_This_Content directory.

Open command prompt and change directry to the directory where you have downloaded main.cpp (cpp file name) and matplotlibcpp.h (REMEMBER BOTH MAIN.CPP[CPP FILE NAME] AND MATPLOTLIBCPP.H SHOULD BE IN SAME DIRECTORY).

Compile the main.cpp (cpp file name) using command prompt and include python, numpy and matplotlib libraries.(for more detail check the "Location" and Example_of_location files)

Then a file .exe will create on same directory where your command prompt set.

Open it using command prompt by typing his named along with extension.

Then a pdf will generated on same location if pdf is not generated then a image will show.

Finally your graph will be in front of your eyes.

For more informations https://matplotlib-cpp.readthedocs.io/en/latest/index.html

Releases

No releases published

Packages

No packages published

Languages