Thanks, Eric

Ok,
I ran the image_masked.py and all went OK
BUT
if I change line 34 of image_masked.py:
im = imshow(Zm, interpolation='bilinear',
     cmap=palette,
     norm = colors.normalize(vmin = -1.0, vmax = 1.0, clip = False),
     origin='lower', extent=[-3,3,-3,3])

to

im = contourf(Zm,cmap=palette)

I do not get the over/under pointers on the end of the colorbar.

Does this feature not work with contourf - Or am I doing something 
wrong.

--Jim

On Aug 21, 2006, at 5:13 PM, Eric Firing wrote:

> Jim,
>
> Look at examples/image_masked.py.  I think that is the only example 
> with pointed ends, and I think it was present as-is in 0.87.3.
>
> Eric
>
> James Boyle wrote:
>> I am using matplotlib 0.87.3
>> The documentation of colorbar in color.py seems to indicate that one 
>> should be able to create a color bar with pointed ends, the fill 
>> color of the ends corresponding to the over and under colors.
>> I have not been able to get this to work.  I have set the 
>> colormap.set_under and set_over values but no success.
>> If this does work could someone (Eric?) post an example, of how it is 
>> done. I feel that I am missing something simple.
>> Thanks for any help.
>> --Jim


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to