8000 Add comment to get_alpha · matplotlib/matplotlib@3d11b3f · GitHub
[go: up one dir, main page]

Skip to content

Commit 3d11b3f

Browse files
committed
Add comment to get_alpha
1 parent 142ff28 commit 3d11b3f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/matplotlib/cm.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ def _generate_cmap(name, lutsize):
9292
else:
9393
return colors.LinearSegmentedColormap.from_list(name, spec, lutsize)
9494

95+
9596
LUTSIZE = mpl.rcParams['image.lut']
9697

9798
# Generate the reversed specifications (all at once, to avoid
@@ -332,6 +333,7 @@ def get_alpha(self):
332333
alpha : float
333334
Always returns 1.
334335
"""
336+
# This method is intended to be overridden by Artist sub-classes
335337
return 1.
336338

337339
def set_cmap(self, cmap):

0 commit comments

Comments
 (0)
0