On 10/18/07, Manuel Metz <[EMAIL PROTECTED]> wrote:
> It seems that the keywords facecolor (or color) and alpha can not be
> used simultaniously when using "scatter":
>
>
> import pylab
>
> x = pylab.npy.arange(0,10)
> pylab.scatter(x,x, s=50, alpha=0.5)
> pylab.scatter(x,x+0.5, facecolor='blue', s=50, alpha=0.5)
> pylab.show()
>
>
> The alpha value of the second call is not set correctly, but kept fix at
> alpha=1.0. Any idea ???

You should use the "c" argument for scatter -- this controls the facecolor.

scatter(x,x+0.5, c='blue', s=50, alpha=0.5)

This is a bit of an anachronism from matlab compatibility.

JDH

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to