Hello, I am attempting to overlay a filled contour over a custom image.
I have managed to get something basic working, but i have encountered a problem: When the contourf plot is set to semi-transparent there are visible lines joining the bottom of the plot and the filled contour edges. I have attached an image of the plot. http://img232.imageshack.us/my.php?image=spambs6.png spam.png The code i have used is below; please bear in mind I am not a programmer, so if the code seems botched, that's because it is. ############################### import matplotlib.pyplot as plt from pylab import * try: import Image except ImportError, exc: raise SystemExit("PIL must be installed to run this example") lena = Image.open('lena.jpg') dpi = rcParams['figure.dpi'] figsize = lena.size[0]/dpi, lena.size[1]/dpi fig = plt.figure(figsize=figsize) #fig.patch.set_alpha(0.5) ax = fig.add_subplot(111) #ax.patch.set_alpha(0.5) ax.imshow(lena, origin='lower') ax.contourf(z2,[10,15,20,25,30,35,40,45,50,55,60,65],alpha=0.7) show() ############################ Can anyone help me with this problem? Thanks for reading, Pete. -- View this message in context: http://www.nabble.com/Filled-contour-transparency-issue-tp18850187p18850187.html Sent from the matplotlib - users mailing list archive at Nabble.com. ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users