problem boost::python::import

2008-05-22 Thread Frédéric Degraeve
Hello, I tried this code with vs7-8 and boost1.34.1-1.35.0 and my python is a 2.4. The call to Cpython works well but boost::python doesn't work. I've got an exception about an access violation reading location 0x. help, please? thank you. Frédéric #include stdafx.h #include

Re: Using Python for programming algorithms

2008-05-21 Thread Frédéric Degraeve
By the way, is it possible (and easy) to call a C function from a Python program?? Use SWIG. It's easy, smart and beautiful. After that, you can call C/C+ + from a lot of scripting languages such as python, R, etc A lot of open sources projects already use it.

Re: Using Python for programming algorithms

2008-05-21 Thread Frédéric Degraeve
I reply to myself! Boost.Python is also very known (but never tested by myself). http://www.boost.org/doc/libs/1_35_0/libs/python/doc/tutorial/doc/html/index.html here the example. I know that it has been made to simplify the CPython's use and this is based on CPython. Frédéric --

matplotlib / legend of x-axis

2008-03-26 Thread Frédéric Degraeve
Hi everybody, I've got a problem concerning matplotlib/pylab. I use it to represent curves. I will use these pictures in a report. However, it writes me a string 'date' on the bottom of my x-axis. I use this to produce my date axis (x-axis): mondays = WeekdayLocator(MONDAY)# every