[Matplotlib-users] mark invalid pixels in image

2009-12-10 Thread markus . proeller
Hello, let's say I have given an image of distance values, which I display with the jet colormap. Now if there are invalid pixels within the image they have the value -1 or -2. Is there a way to display just the "valid" image with the jet colorbar and the -1 pixels as white pixels and the -2 pi

[Matplotlib-users] Antwort: Re: Import pylab fails from c-code

2009-11-16 Thread markus . proeller
John Hunter schrieb am 16.11.2009 15:14:31: > On Mon, Nov 16, 2009 at 6:16 AM, wrote: > > > > Hello everyone, > > > > I use the following C-Code in visual studio 2005 (I start the program with > > "Release" configuration): > > > > #include > > #include > > using namespace std; > > > > void m

[Matplotlib-users] Import pylab fails from c-code

2009-11-16 Thread markus . proeller
Hello everyone, I use the following C-Code in visual studio 2005 (I start the program with "Release" configuration): #include #include using namespace std; void main() { Py_Initialize(); while (1) { char test[100] = {}; cout<<">>> ";