Hi John

Here's a test script that gives the wrongly exported SVG image. I'm 
viewing with EOG. When I edit to add "style="opacity:0.15"" it works 
fine, so there's no prob with EOG.

from pylab import *
import matplotlib.numerix.ma as ma
from matplotlib.colors import ListedColormap

A = flipud(array([[1,2,3,4,5],[1,3,4,5,6],[1,1,4,5,7]]))

M = where(A==1,1,0)

B = ma.array(A,mask=M)

C = ListedColormap(['r','#FF00FF','y','g','b','#FFFF00'])
x = [0,5,10,15,20]
y = [0,5,10]
X,Y = meshgrid(x,y)
X = ma.array(X,mask=B.mask())
Y = ma.array(Y,mask=B.mask())

figure()
pcolor(X,Y,B,alpha=0.15,shading='flat',cmap=C)
hold(True)
contour(x,y,B)
xlabel('something')
ylabel('else')

Cheers
JP

John Hunter wrote:
>>>>>> "John" == John Pye <[EMAIL PROTECTED]> writes:
>>>>>>             
>
>     John> issues: 1. When exporting the following image, which is a
>     John> pcolor plot with alpha=0.15 and contours on top, I get no
>     John> alpha channel in the resulting output, regard of whether I
>     John> export as EPS or SVG. Is exporting with alpha channel not
>     John> supported in those formats?  2. In the titles, which are
>
>
> For some reason I did not get the sample image, but could you provide
> some example code that replicates the alpha problem on the SVG
> backend?  As others have noted, PS doesn't have an alpha channel so
> there is nothing we can do there, but SVG *should* work.  Are you sure
> it's not your SVG viewer?
>
> JDH
>
>
> _______________________________________________
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
>   

-- 
John Pye
Department of Mechanical and Manufacturing Engineering
University of New South Wales, Sydney, Australia
http://pye.dyndns.org/



_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to