From: <jd...@us...> - 2008-06-22 15:08:12
|
Revision: 5630 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=5630&view=rev Author: jdh2358 Date: 2008-06-22 08:08:05 -0700 (Sun, 22 Jun 2008) Log Message: ----------- removed axes3d; fixed an alpha bug on backend draw collections Modified Paths: -------------- trunk/matplotlib/examples/pylab_examples/scatter_demo2.py trunk/matplotlib/lib/matplotlib/backend_bases.py Modified: trunk/matplotlib/examples/pylab_examples/scatter_demo2.py =================================================================== --- trunk/matplotlib/examples/pylab_examples/scatter_demo2.py 2008-06-22 13:52:43 UTC (rev 5629) +++ trunk/matplotlib/examples/pylab_examples/scatter_demo2.py 2008-06-22 15:08:05 UTC (rev 5630) @@ -15,7 +15,7 @@ ylabel(r'$\Delta_{i+1}$', size='x-large') title(r'Volume and percent change') grid(True) -#savefig('scatter_demo2') +savefig('scatter_demo2') colorbar() show() Modified: trunk/matplotlib/lib/matplotlib/backend_bases.py =================================================================== --- trunk/matplotlib/lib/matplotlib/backend_bases.py 2008-06-22 13:52:43 UTC (rev 5629) +++ trunk/matplotlib/lib/matplotlib/backend_bases.py 2008-06-22 15:08:05 UTC (rev 5630) @@ -262,6 +262,9 @@ gc.set_linewidth(linewidths[i % Nlinewidths]) if Nlinestyles: gc.set_dashes(*linestyles[i % Nlinestyles]) + if len(rgbFace)==4: + gc.set_alpha(rgbFace[-1]) + rgbFace = rgbFace[:3] gc.set_antialiased(antialiaseds[i % Naa]) yield xo, yo, path_id, gc, rgbFace This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |