Re: [Matplotlib-users] Two circles with “exponential decay” coloring, and alpha < 1, having trouble with color mixing?

2015-11-23 Thread Thomas Caswell
The way we do the alpha blending, the output value is (alpha * v1) + ((alpha-1) * v2). All of the artists are compsited down on top of a white background so the compositing is not commutative. (a * .5) + (.5 * (b * .5 + .5)) =/= (b * .5) + (.5 * (a * .5 + .5)) On Mon, Nov 23, 2015 at 1:55 PM

Re: [Matplotlib-users] Two circles with “exponential decay” coloring, and alpha < 1, having trouble with color mixing?

2015-11-23 Thread Sterling Smith
Maybe the issue is with the colormap not having an alpha? Does this http://stackoverflow.com/questions/10127284/overlay-imshow-plots-in-matplotlib help? Otherwise, you might file a bug at https://github.com/matplotlib/matplotlib/issues/new -Sterling On Nov 20, 2015, at 4:46PM, Brian Merchant

[Matplotlib-users] Two circles with “exponential decay” coloring, and alpha < 1, having trouble with color mixing?

2015-11-20 Thread Brian Merchant
Hi all, In order to get circles such that their coloring is radially symmetric, with center being the darkest, and exponential decay in color as one moves farther away from the center along the radius, I used imshow with clip_path using Circle patches. Here's a toy script that overlaps two such