Open ricitron opened 4 years ago
This is a known problem referenced in https://github.com/matplotlib/matplotlib/issues/1188 and, I think, more comprehensively in other old matplotlib issues that elude my quick attempt to search for them. We have found no general good solutions.
Update: I figured out how to get the image to show up by using the zorder parameter. The image is zorder=2, the pcolormesh zcolor=1, and only the image can have an alpha value less than 1. Any update on this? I am facing an issue graphing gridded data using pcolormesh, Gouraud shading. When I lower the alpha value from 1, I get lines appearing. ax.pcolormesh(self.mapWindPointsLongitudes, self.mapWindPointsLatitudes, self.mapSpeeds[index], shading='gouraud', vmin=vmin, vmax=vmax, zorder=2)
This is at alpha=1. However the map disappeared : |
When plotting data using pcolormesh on a basemap projection (or a cartopy projection) I notice strange lines appear when I set the alpha value to less than 1.
Example code:
The output shows strange lines appearing:
If I instead set alpha=1 the lines disappear and the behavior is as expected:
Any ideas on what the issue is or how to get pcolormesh to work with a nonzero alpha value?