[Matplotlib-users] how to create a collections.LineCollection instance?

2012-04-28 Thread Chao YUE
Dear all, I want to make an example of collections.LineCollection instance. So I have In [150]: line Out[150]: [(0, 0), (0, 1), (1, 1), (1, 0)] but I use whatever the following I meet with an Assertion Error: mat.collections.LineCollection(np.array(line)) mat.collections.LineCollection(tuple(li

Re: [Matplotlib-users] Matplotlib and Cpp

2012-04-28 Thread julien tayon
First cpp stands for C Pre Processor, this tool usually does macro substitution in c, objective c, c++. Hence Cpp in the object is pretty much confusing when it seems to be talking about C++. 2012/4/27 Benjamin Root : > > > On Fri, Apr 13, 2012 at 4:24 PM, Ignas Anikevicius > wrote: >> >> Dear a

Re: [Matplotlib-users] Matplotlib and Cpp

2012-04-28 Thread francesco oteri
Hi, if I understand well, you have a program producing data which usually are stored in a file, then you load such file into a matplotlib script. Your goal is trasfering data from your program to matplotlib. If this is the case you can follow two routes: 1) Modify the progam in order to print th