Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 15c43ed

Browse files
committed
Added alpha support to contour; the kwarg had been allowed, but it
was not being used. svn path=/trunk/matplotlib/; revision=2092
1 parent 47e743b commit 15c43ed

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

CHANGELOG

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1-
2006-02-22 Fixed gtk main quit bug when quit was called befoer
1+
2006-02-24 Implemented alpha support in contour and contourf - EF
2+
3+
2006-02-22 Fixed gtk main quit bug when quit was called before
24
mainloop. - JDH
35

4-
2006-02-22 Small change to colors.py to workaround apparent
6+
2006-02-22 Small change to colors.py to workaround apparent
57
bug in numpy masked array module - JW
68

79
2006-02-22 Fixed bug in ScalarMappable.to_rgba() reported by

lib/matplotlib/contour.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,8 @@ def __init__(self, ax, *args, **kwargs):
471471

472472

473473
def changed(self):
474-
tcolors = [ (tuple(rgba),) for rgba in self.to_rgba(self.cvalues)]
474+
tcolors = [ (tuple(rgba),) for rgba in
475+
self.to_rgba(self.cvalues, alpha=self.alpha)]
475476
self.tcolors = tcolors
476477
contourNum = 0
477478
for color, collection in zip(tcolors, self.collections):

0 commit comments

Comments
 (0)