Re: [Matplotlib-users] plt.gray dont' work with plt.scatter?

2009-09-12 Thread Gary Ruben
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='^',

Re: [Matplotlib-users] plt.gray dont' work with plt.scatter?

2009-09-12 Thread lotrpy
Thanks, work like a charm. On Sat, Sep 12, 2009 at 4:06 PM, Gary Ruben gru...@bigpond.net.au wrote: 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

[Matplotlib-users] plt.gray dont' work with plt.scatter?

2009-09-11 Thread lotrpy
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