Skip to content

Commit

Permalink
array_to_image(colormap=) now returns RGBA image
Browse files Browse the repository at this point in the history
  • Loading branch information
dsblank committed May 4, 2018
1 parent 3195297 commit 3630d13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion conx/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -746,7 +746,7 @@ def array_to_image(array, scale=1.0, minmax=None, colormap=None, shape=None):
>>> array_to_image(m, shape=(2, 2, 3)) # doctest: +ELLIPSIS
<PIL.Image.Image image mode=RGB size=2x2 at ...>
>>> array_to_image(m, shape=(2, 2, 3), colormap="bone") # doctest: +ELLIPSIS
<PIL.Image.Image image mode=RGB size=2x2 at ...>
<PIL.Image.Image image mode=RGBA size=2x2 at ...>
"""
from matplotlib import cm
array = np.array(array) # let's make sure
Expand Down

0 comments on commit 3630d13

Please sign in to comment.