Nikolai Hlubek wrote:
> Hi everyone
> 
> First of all I'd like to thank you for all your work
> since many bugs which I found to be quite annoying have been
> fixed in the latest version.
> 
> But I ran into trouble with the new colorbar. As you can see in the
> attached picture horizontal lines are drawn.
> 
> The plot was generated with the following python code:
> 
> from pylab import *
> from RandomArray import *
> 
> z=random((200,100))
> imshow(z, interpolation='nearest', cmap=cm.hot)
> colorbar(drawedges=False)
> colorbar(drawedges=True)
> show()


Nikolai,

Your example code has two calls to colorbar, but your sample png file 
has only the result of the second.  If I do this:

from pylab import *
from RandomArray import *

z=random((200,100))
imshow(z, interpolation='nearest', cmap=cm.hot)
colorbar(drawedges=False)
show()

I don't get the lines when the Agg backend is making the png.  You don't 
even need the drawedges kwarg; the default is False.

What backends are you using?  Some backends still need work to make them 
support this behavior.  Agg, ps, and svg should be fine.

Eric


_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to