|
From: John H. <jd...@gm...> - 2007-11-29 15:21:58
|
On Nov 29, 2007 7:34 AM, hjc520070 <jia...@16...> wrote: > > I just want to show a matplotlib.image.AxesImage on a figure. But It can't > work properly. Can somebody help me? The code are following: when I run it > , It just show a white figure. But I Set it cm.Greens .It doesn't work . AxesImage is not meant to be instantiated directly, but to be created via ax.imshow, so I suggest you do that. imshow will return and AxesImage instance to you. But it looks like your problem is you did not add the image to the axes via ax.images.append. For future reference, this type of question is probably best directed to matplotlib-users, since the devel list is for matplotlib development rather than usage. Thanks, JDH |