Skip to content

Commit 117e05f

Browse files
committed
Save alpha channel by default
1 parent 88a0342 commit 117e05f

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

proplot/styletools.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -714,7 +714,7 @@ def make_mapping_array(N, data, gamma=1.0, inverse=False):
714714

715715
class _Colormap(object):
716716
"""Mixin class used to add some helper methods."""
717-
def _get_data(self, ext, alpha=False):
717+
def _get_data(self, ext, alpha=True):
718718
"""
719719
Return a string containing the colormap colors for saving.
720720
@@ -1003,7 +1003,7 @@ def func_r(x):
10031003
kwargs[key] = gamma[::-1]
10041004
return self.updated(name, segmentdata, **kwargs)
10051005

1006-
def save(self, path=None, alpha=False):
1006+
def save(self, path=None, alpha=True):
10071007
"""
10081008
Save the colormap data to a file.
10091009
@@ -1357,7 +1357,7 @@ def concatenate(self, *args, name=None, N=None, **kwargs):
13571357
colors = [color for cmap in cmaps for color in cmap.colors]
13581358
return self.updated(colors, name, N or len(colors), **kwargs)
13591359

1360-
def save(self, path=None, alpha=False):
1360+
def save(self, path=None, alpha=True):
13611361
"""
13621362
Save the colormap data to a file.
13631363

0 commit comments

Comments
 (0)