Skip to content

Commit 5bf9b1c

Browse files
committed
Skip edgefix for all objects with transparent 'alpha'
1 parent 01db122 commit 5bf9b1c

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

proplot/axes/plot.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2697,6 +2697,10 @@ def _apply_edgefix(self, obj, edgefix=None, **kwargs):
26972697
return
26982698

26992699
# Skip when cmap has transparency
2700+
if hasattr(obj, 'get_alpha'): # collections and contour sets use singular
2701+
alpha = obj.get_alpha()
2702+
if alpha is not None and alpha < 1:
2703+
return
27002704
if isinstance(obj, mcm.ScalarMappable):
27012705
cmap = obj.cmap
27022706
if not cmap._isinit:

0 commit comments

Comments
 (0)