From: Manuel M. <mm...@as...> - 2007-10-19 07:57:38
|
Now that alpha works with screen output, I recognized a problem with the eps output. This is my little test script: 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', edgecolor='red', s=50, alpha=0) pylab.savefig('alpha.png') pylab.savefig('alpha.eps') pylab.show() The resulting figures are attached. The problem occurs in the eps output where the edgecolors are not correctly reproduced, only the first marker symbol has a red edge, the others don't. I used the latest svn for this test. Manuel John Hunter wrote: > On 10/18/07, John Hunter <jd...@gm...> wrote: > >> 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. > > This is now fixed in svn, so you can use facecolor as well. Note that > for constant size and color markers, plot will be significantly faster > > ax.plot(x, x+0.5, mfc='blue', alpha=0.5, ms=20) > > JDH |