Hi, When drawing a patch, the alpha value of its edgeolor is ignored. The following command draw a circle whose edgecolor has alpha=1, instead of 0.1.
gca().add_patch(Circle((0.5, 0.5), 0.3, ec=(1,0,0,0.1), fc="none")) Attached is a little test script and its output. It seems that the edgecolor always has an alpha value of the face color. I'm not sure if this behavior is intended, but I personally think this is a bug. Regards, -JJ
import matplotlib.pyplot as plt from matplotlib.patches import Circle #plot([1,2], alpha=0.1) plt.clf() plt.text(0.2, 0.6, "(a)\nec=1,0,0,0.1\nfc=none\nalpha=1", bbox=dict(ec=(1,0,0,0.1), fc="none", alpha=1., lw=5),) plt.text(0.2, 0.4, "(b)\nec=1,0,0,1\nfc=none\nalpha=0.1", bbox=dict(ec=(1,0,0,1), fc="none", alpha=0.1, lw=5),) plt.text(0.2, 0.2, "(c)\nec=1,0,0,0.1\nfc=none\nalpha=0.1", bbox=dict(ec=(1,0,0,0.1), fc="none", alpha=0.1, lw=5),) plt.text(0.6, 0.6, "(d)\nec=1,0,0,0.1\nfc=1,0,0,1\nalpha=1", bbox=dict(ec=(1,0,0,0.1), fc=(1,0,0,1), alpha=1, lw=5),) plt.text(0.6, 0.4, "(e)\nec=1,0,0,1\nfc=1,0,0,0.1\nalpha=0.1", bbox=dict(ec=(1,0,0,1), fc=(1,0,0,0.1), alpha=1, lw=5),) plt.text(0.6, 0.2, "(f)\nec=1,0,0,1\nfc=1,0,0,0.1\nalpha=0.1", bbox=dict(ec=(1,0,0,1), fc=(1,0,0,0.1), alpha=0.1, lw=5),) plt.savefig("path-alpha_test.png") plt.savefig("path-alpha_test.pdf") plt.show()
<<attachment: path-alpha_test.png>>
------------------------------------------------------------------------------ Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel