We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 58e8b94 commit 95b5671Copy full SHA for 95b5671
lib/matplotlib/colors.py
@@ -394,9 +394,8 @@ def to_hex(c, keep_alpha=False):
394
----------
395
c : :doc:`color </tutorials/colors/colors>` or ``np.ma.masked``
396
397
- keep_alpha: bool, optional
398
- Uses the ``#rrggbb`` format if *keep_alpha* is False (the default),
399
- otherwise uses ``#rrggbbaa``.
+ keep_alpha: bool, default: False
+ If False, use the ``#rrggbb`` format, otherwise use ``#rrggbbaa``.
400
401
Returns
402
-------
0 commit comments