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

Skip to content

Commit 95b5671

Browse files
story645timhoffm
andauthored
Update lib/matplotlib/colors.py
Co-authored-by: Tim Hoffmann <[email protected]>
1 parent 58e8b94 commit 95b5671

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lib/matplotlib/colors.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -394,9 +394,8 @@ def to_hex(c, keep_alpha=False):
394394
----------
395395
c : :doc:`color </tutorials/colors/colors>` or ``np.ma.masked``
396396
397-
keep_alpha: bool, optional
398-
Uses the ``#rrggbb`` format if *keep_alpha* is False (the default),
399-
otherwise uses ``#rrggbbaa``.
397+
keep_alpha: bool, default: False
398+
If False, use the ``#rrggbb`` format, otherwise use ``#rrggbbaa``.
400399
401400
Returns
402401
-------

0 commit comments

Comments
 (0)