gray() sets the default colormap for raster-based plot commands like imshow(), matshow() and figimage(). For scatter(), you need to set the colors of plot elements invidually. Setting the facecolor in the scatter() command will work for the example you tried:
scatter(x,y,s=area, marker='^', facecolor=(.7,.7,.7), c='r') Gary R. lotrpy wrote: > Hello, Sorry for my broken english. I copy the source code from > http://matplotlib.sourceforge.net/examples/pylab_examples/scatter_demo.html > > Just Insert one line "gray()" before the last line "show()". > But the picture is sitll colorful. not a gray picture. > It there somethig I missed. Thanks in advance. ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users