I can't work out if I'm having a brain block or it really can't be done,
but I'm trying to produce a pcolormesh with alpha without the nasty edges
seen in the attached image


[image: Inline images 1]

The code to reproduce:

import matplotlib.pyplot as plt
import numpy.random

d = numpy.random.random([10, 10])
plt.pcolormesh(d, alpha=0.5, vmin=0, vmax=10)
plt.show()


I've tried several things, including:

   - Setting antialiased=False
   - Fiddling with the returned pcolormesh's _is_stroked attribute
   - Rasterizing
   - Setting the edgecolor to 'face'

Pcolorfast is one option, but I was ideally hoping to achieve this with
pcolormesh.

Any thoughts?

<<figure_1.png>>

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and 
their applications. This 200-page book is written by three acclaimed 
leaders in the field. The early access version is available now. 
Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel

Reply via email to