Re: [Matplotlib-users] query on weighted matrix example

2011-09-26 Thread Bala subramanian
Friends, I have solved the problem by myself. I gave if w < 2.0: color = 'red' if 2.1 < w > 4.0: color='blue' So wherever the value there is a value like 2.03 or 2.05, the color was shown as black instead of red/blue. Thanks, Bala On Mon, Sep 26, 2011 at 9:25 AM, Bala subramanian wrote: > Frie

[Matplotlib-users] query on weighted matrix example

2011-09-26 Thread Bala subramanian
Friends, In the mpl site, i found the an example code called hinton_demo to plot weighted matrix in the following link. http://matplotlib.sourceforge.net/examples/api/hinton_demo.html?highlight=hinton I used the same script (attached test.py) making a slight modification in the following section