|
From: Xavier G. <gn...@ob...> - 2006-12-16 18:42:54
|
Hi, Each time I'm working on C++ codes using vector or valarray, I would like to be able to plot them. The problem is that there is no straitforward way to do that in C++. My goal is not to code a QT or GTK application but only to be able to plot 1D and 2D things from one given large C++ code without having to add lots of lines of codes in my code (let say it is intend to be used in debug phase). Questions : Is there a way to call pylab plot and imshow from a C++ code ? In this case, I do not care if we have to copy the array and it can be sl= ow. It would be a so nice feature to debug C++ image processing codes. Any example of code is welcome even they are not calling matplotlib but anthing else in python. Xavier. ps : In my codes, 2D images are stored as in a class derived from valarray (1D array) adding the size of the image along the 2 directions as private members. --=20 ############################################ Xavier Gnata CRAL - Observatoire de Lyon 9, avenue Charles Andr=E9 69561 Saint Genis Laval cedex Phone: +33 4 78 86 85 28 Fax: +33 4 78 86 83 86 E-mail: gn...@ob... ############################################=20 |