vendredi 21 octobre 2016

How to plot an histogram with C++?

I have this code in Python :

import matplotlib.pyplot as plt
import numpy as np
numpy_hist = plt.figure()
plt.hist([0.4,1.2,2.65,.15,1.45,1.345,1.565,1.6523,1.1,1.23351,1, 2, 1])
plt.show()

and i would like to create a function in C++ which allows to call a function which plot this histogram instead of doing this in Python.

I found this library :

matplotlibcpp

but i can't plot hist with this.

Thank you a lot for your help :)

Aucun commentaire:

Enregistrer un commentaire