Hi Soren, I'm not sure I understood well, but maybe you mixed something up and the following works:
On Thursday 08 May 2008 14:09:56 Søren Nielsen wrote: > I've been messing around with it alot now.. but I still can't get a > colorbar on my image plot.. > > I think i got close with this: > > img is an image in a numpy.ndarray > > a = self.fig.gca() # Get the current axes > a.imshow( img, cmap = cm.gray ) image_from_imshow = a.imshow( img, cmap = cm.gray ) > self.fig.colorbar(img) self.fig.colorbar(image_from_imshow) > But that gives me the error "numpy.ndarray doesn't have attribute > autoscale".. > > It does show a colorbar, but it's plain white and goes from 0.0 to 1.0 That's probably the default-behaviour instead of showing no colorbar. regards Matthias ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users