On Fri, Apr 23, 2010 at 11:07 AM, Thomas Robitaille <thomas.robitai...@gmail.com> wrote: > Hi, > > I'm having issues with translucent patches. The following code > > import matplotlib > matplotlib.use('Agg') > import matplotlib.pyplot as mpl > from matplotlib.patches import Circle > > fig = mpl.figure() > ax = fig.add_subplot(111) > c = Circle((0.25,0.5), radius=0.2, facecolor='none', edgecolor='green', > alpha=0.2) > ax.add_patch(c) > c = Circle((0.75,0.5), radius=0.2, facecolor='blue', edgecolor='green', > alpha=0.2) > ax.add_patch(c) > fig.savefig('test_alpha.png') > > Produces a plot where the two circles have different borders - the left > circle has a border with alpha=1.0 and the right circle has a border with > alpha=0.2. Should I submit this as a bug report? >
This is kind of a known bug. http://old.nabble.com/patches-have-incorrect-alpha-values-td22667217.html#a22667217 But, please go ahead and file a bug report. Fixing this requires some changes in backend api, and I'm not sure if this will be fixed soon. Regards, -JJ ------------------------------------------------------------------------------ _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users